diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-10-27 07:11:46 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-10-27 07:11:46 +0000 |
commit | ceb38f111fa09c0089c6e5abd83d28511a8ac01b (patch) | |
tree | 3d2cb4df59130d51efea751cb75ea1d9a20c6b29 /net-irc | |
parent | Change `` to $(), fix quotes and add die messages. (diff) | |
download | historical-ceb38f111fa09c0089c6e5abd83d28511a8ac01b.tar.gz historical-ceb38f111fa09c0089c6e5abd83d28511a8ac01b.tar.bz2 historical-ceb38f111fa09c0089c6e5abd83d28511a8ac01b.zip |
Version bump and cleanup
Package-Manager: portage-2.1.2_pre3-r9
Diffstat (limited to 'net-irc')
-rw-r--r-- | net-irc/ptlink-ircd/ChangeLog | 13 | ||||
-rw-r--r-- | net-irc/ptlink-ircd/files/digest-ptlink-ircd-6.19.6 | 3 | ||||
-rw-r--r-- | net-irc/ptlink-ircd/files/ptlink-ircd.confd | 6 | ||||
-rw-r--r-- | net-irc/ptlink-ircd/files/ptlink-ircd.initd | 24 | ||||
-rw-r--r-- | net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild | 10 | ||||
-rw-r--r-- | net-irc/ptlink-ircd/ptlink-ircd-6.19.6.ebuild | 86 |
6 files changed, 135 insertions, 7 deletions
diff --git a/net-irc/ptlink-ircd/ChangeLog b/net-irc/ptlink-ircd/ChangeLog index 89fcd3f6abfc..72d26607757f 100644 --- a/net-irc/ptlink-ircd/ChangeLog +++ b/net-irc/ptlink-ircd/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-irc/ptlink-ircd -# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ChangeLog,v 1.9 2005/01/30 12:49:18 swegener Exp $ +# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ChangeLog,v 1.10 2006/10/27 07:11:46 jokey Exp $ + +*ptlink-ircd-6.19.6 (27 Oct 2006) + + 27 Oct 2006; Markus Ullmann <jokey@gentoo.org> -files/ptlink-ircd.conf.d, + +files/ptlink-ircd.confd, -files/ptlink-ircd.init.d, + +files/ptlink-ircd.initd, -ptlink-ircd-6.19.1.ebuild, + -ptlink-ircd-6.19.2.ebuild, ptlink-ircd-6.19.3.ebuild, + +ptlink-ircd-6.19.6.ebuild: + Version bump and cleanup *ptlink-ircd-6.19.3 (30 Jan 2005) diff --git a/net-irc/ptlink-ircd/files/digest-ptlink-ircd-6.19.6 b/net-irc/ptlink-ircd/files/digest-ptlink-ircd-6.19.6 new file mode 100644 index 000000000000..f623c86fe755 --- /dev/null +++ b/net-irc/ptlink-ircd/files/digest-ptlink-ircd-6.19.6 @@ -0,0 +1,3 @@ +MD5 d585bd03ec0cce559de466abe1a3dcc3 PTlink6.19.6.tar.gz 799388 +RMD160 1b83b3449a4409c41e206181d831b42a5bb64ffe PTlink6.19.6.tar.gz 799388 +SHA256 80a9100b0f0c41c914dda6c576207721fa05bb4a0ccf77c6337d6740d1ce0131 PTlink6.19.6.tar.gz 799388 diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.confd b/net-irc/ptlink-ircd/files/ptlink-ircd.confd new file mode 100644 index 000000000000..da54da116f1a --- /dev/null +++ b/net-irc/ptlink-ircd/files/ptlink-ircd.confd @@ -0,0 +1,6 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/files/ptlink-ircd.confd,v 1.1 2006/10/27 07:11:46 jokey Exp $ + +# User to run ptlink-ircd as +PTLINKIRCD_USER="ptlink-ircd" diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.initd b/net-irc/ptlink-ircd/files/ptlink-ircd.initd new file mode 100644 index 000000000000..639a688b3e10 --- /dev/null +++ b/net-irc/ptlink-ircd/files/ptlink-ircd.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/files/ptlink-ircd.initd,v 1.1 2006/10/27 07:11:46 jokey Exp $ + +depend() { + need net + use dns + provide ircd +} + +start() { + ebegin "Starting ptlink-ircd" + start-stop-daemon --start --quiet --exec /usr/bin/ptlink-ircd \ + --chuid ${PTLINKIRCD_USER} -- -l /var/lib/ptlink-ircd \ + -e /etc/ptlink-ircd >/dev/null + eend $? +} + +stop() { + ebegin "Shutting down ptlink-ircd" + start-stop-daemon --stop --pidfile /var/lib/ptlink-ircd/ircd.pid + eend $? +} diff --git a/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild b/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild index 82d1b52175b1..1dfacb1320b6 100644 --- a/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild +++ b/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2005 Gentoo Foundation +# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild,v 1.1 2005/01/30 12:49:18 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ptlink-ircd-6.19.3.ebuild,v 1.2 2006/10/27 07:11:46 jokey Exp $ inherit eutils ssl-cert @@ -21,7 +21,7 @@ S=${WORKDIR}/${MY_P} src_unpack() { unpack ${A} - find ${S} -type d -name CVS -print0 2>/dev/null | xargs -0r rm -rf + find "${S}" -type d -name CVS -print0 2>/dev/null | xargs -0r rm -rf } src_compile() { @@ -55,8 +55,8 @@ src_install() { keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd || die "keepdir failed" dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log || die "dosym failed" - newinitd ${FILESDIR}/ptlink-ircd.init.d ptlink-ircd || die "newinitd failed" - newconfd ${FILESDIR}/ptlink-ircd.conf.d ptlink-ircd || die "newconfd failed" + newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd || die "newinitd failed" + newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd || die "newconfd failed" use ssl && ( insinto /etc/ptlink-ircd diff --git a/net-irc/ptlink-ircd/ptlink-ircd-6.19.6.ebuild b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6.ebuild new file mode 100644 index 000000000000..a922c8cbe25b --- /dev/null +++ b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ptlink-ircd-6.19.6.ebuild,v 1.1 2006/10/27 07:11:46 jokey Exp $ + +inherit eutils ssl-cert + +MY_P="PTlink${PV}" + +DESCRIPTION="PTlink IRCd is a secure IRC daemon with many advanced features." +HOMEPAGE="http://www.ptlink.net/" +SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ircd/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc" + +IUSE="ssl" +DEPEND="sys-libs/zlib + ssl? ( dev-libs/openssl )" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + find "${S}" -type d -name CVS -print0 2>/dev/null | xargs -0r rm -rf +} + +src_compile() { + econf \ + --disable-ipv6 \ + $(use_with ssl ssl openssl) \ + || die "econf failed" + emake CFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + newbin src/ircd ptlink-ircd || die "newbin failed" + newbin tools/fixklines ptlink-ircd-fixklines || die "newbin failed" + newbin tools/mkpasswd ptlink-ircd-mkpasswd || die "newbin failed" + + insinto /etc/ptlink-ircd + fperms 700 /etc/ptlink-ircd || die "fperms failed" + doins samples/{kline.conf,{opers,ptlink}.motd,help.{admin,oper,user}} || die "newins failed" + newins samples/example.conf.short ircd.conf || die "newins failed" + newins samples/example.conf.trillian ircd.conf.trillian || die "newins failed" + newins samples/main.dconf.sample main.dconf || die "newins failed" + newins samples/network.dconf.sample network.dconf || die "newins failed" + + insinto /usr/share/ptlink-ircd/codepage + doins src/codepage/*.enc || die "doins failed" + dosym /usr/share/ptlink-ircd/codepage /etc/ptlink-ircd/codepage || die "dosym failed" + + rm -rf doc/old + dodoc doc/* doc_hybrid6/* ircdcron/* CHANGES README || die "dodoc failed" + + keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd || die "keepdir failed" + dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log || die "dosym failed" + + newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd || die "newinitd failed" + newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd || die "newconfd failed" + + use ssl && ( + insinto /etc/ptlink-ircd + docert server || die "docert failed" + mv ${D}/etc/ptlink-ircd/server.crt ${D}/etc/ptlink-ircd/server.cert.pem + mv ${D}/etc/ptlink-ircd/server.csr ${D}/etc/ptlink-ircd/server.req.pem + mv ${D}/etc/ptlink-ircd/server.key ${D}/etc/ptlink-ircd/server.key.pem + ) +} + +pkg_postinst() { + enewuser ptlink-ircd + + chown ptlink-ircd \ + ${ROOT}/{etc,var/{log,lib}}/ptlink-ircd \ + ${ROOT}/etc/ptlink-ircd/server.key.pem + + einfo + einfo "PTlink IRCd will run without configuration, although this is strongly" + einfo "advised against." + einfo + einfo "You can find example cron scripts here:" + einfo " /usr/share/doc/${PF}/ircd.cron.gz" + einfo + einfo "You can also use /etc/init.d/ptlink-ircd to start at boot" + einfo +} |