summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-05-02 18:41:33 -0500
committerAustin English <wizardedit@gentoo.org>2016-05-02 18:41:33 -0500
commit5d0378800e15be9d0738ec308552239ddff469fc (patch)
tree78df562a5dced1edd6d574bc53211276e7f6292e /net-irc
parentnet-irc/irc-server: remove old versions (diff)
downloadgentoo-5d0378800e15be9d0738ec308552239ddff469fc.tar.gz
gentoo-5d0378800e15be9d0738ec308552239ddff469fc.tar.bz2
gentoo-5d0378800e15be9d0738ec308552239ddff469fc.zip
net-irc/ptlink-ircd: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ptlink-ircd/files/ptlink-ircd.initd4
-rw-r--r--net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild95
2 files changed, 97 insertions, 2 deletions
diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.initd b/net-irc/ptlink-ircd/files/ptlink-ircd.initd
index 6822cd69eee7..6f050a846626 100644
--- a/net-irc/ptlink-ircd/files/ptlink-ircd.initd
+++ b/net-irc/ptlink-ircd/files/ptlink-ircd.initd
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
diff --git a/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild
new file mode 100644
index 000000000000..5f44a7659d8e
--- /dev/null
+++ b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils ssl-cert user
+
+MY_P="PTlink${PV}"
+
+DESCRIPTION="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="~ppc ~sparc ~x86"
+IUSE="ssl"
+
+DEPEND="
+ sys-libs/zlib
+ ssl? ( dev-libs/openssl:0= )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ ecvs_clean
+
+ default
+}
+
+src_configure() {
+ econf \
+ --disable-ipv6 \
+ $(use_with ssl ssl openssl)
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ newbin src/ircd ptlink-ircd
+ newbin tools/fixklines ptlink-ircd-fixklines
+ newbin tools/mkpasswd ptlink-ircd-mkpasswd
+
+ insinto /etc/ptlink-ircd
+ fperms 700 /etc/ptlink-ircd
+ doins samples/{kline.conf,{opers,ptlink}.motd,help.{admin,oper,user}}
+ newins samples/example.conf.short ircd.conf
+ newins samples/example.conf.trillian ircd.conf.trillian
+ newins samples/main.dconf.sample main.dconf
+ newins samples/network.dconf.sample network.dconf
+
+ insinto /usr/share/ptlink-ircd/codepage
+ doins src/codepage/*.enc
+ dosym /usr/share/ptlink-ircd/codepage /etc/ptlink-ircd/codepage
+
+ rm -rf doc/old
+ dodoc doc/* doc_hybrid6/* ircdcron/* CHANGES README
+
+ keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd
+ dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log
+
+ newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd
+ newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd
+}
+
+pkg_postinst() {
+ # Move docert from src_install() to install_cert for bug #201678
+ use ssl && (
+ if [[ ! -f "${ROOT}"/etc/ptlink-ircd/server.key.pem ]]; then
+ install_cert /etc/ptlink-ircd/server || die "install_cert failed"
+ mv "${ROOT}"/etc/ptlink-ircd/server.{crt,cert.pem}
+ mv "${ROOT}"/etc/ptlink-ircd/server.{csr,req.pem}
+ mv "${ROOT}"/etc/ptlink-ircd/server.key{,.pem}
+ fi
+ )
+
+ enewuser ptlink-ircd
+
+ chown ptlink-ircd \
+ "${ROOT}"/{etc,var/{log,lib}}/ptlink-ircd \
+ "${ROOT}"/etc/ptlink-ircd/server.key.pem
+
+ echo
+ elog "PTlink IRCd will run without configuration, although this is strongly"
+ elog "advised against."
+ echo
+ elog "You can find example cron script ircd.cron here:"
+ elog " /usr/share/doc/${PF}"
+ echo
+ elog "You can also use /etc/init.d/ptlink-ircd to start at boot"
+ echo
+}