Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/ptlink-ircd/, net-irc/ptlink-ircd/files/
Date: Tue, 03 May 2016 00:02:33
Message-Id: 1462232493.5d0378800e15be9d0738ec308552239ddff469fc.wizardedit@gentoo
1 commit: 5d0378800e15be9d0738ec308552239ddff469fc
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 23:41:33 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 23:41:33 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d037880
7
8 net-irc/ptlink-ircd: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-irc/ptlink-ircd/files/ptlink-ircd.initd | 4 +-
15 net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild | 95 ++++++++++++++++++++++++
16 2 files changed, 97 insertions(+), 2 deletions(-)
17
18 diff --git a/net-irc/ptlink-ircd/files/ptlink-ircd.initd b/net-irc/ptlink-ircd/files/ptlink-ircd.initd
19 index 6822cd6..6f050a8 100644
20 --- a/net-irc/ptlink-ircd/files/ptlink-ircd.initd
21 +++ b/net-irc/ptlink-ircd/files/ptlink-ircd.initd
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2005 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30
31 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
32 new file mode 100644
33 index 0000000..5f44a76
34 --- /dev/null
35 +++ b/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r3.ebuild
36 @@ -0,0 +1,95 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +inherit eutils ssl-cert user
44 +
45 +MY_P="PTlink${PV}"
46 +
47 +DESCRIPTION="Secure IRC daemon with many advanced features"
48 +HOMEPAGE="http://www.ptlink.net/"
49 +SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ircd/${MY_P}.tar.gz"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +KEYWORDS="~ppc ~sparc ~x86"
54 +IUSE="ssl"
55 +
56 +DEPEND="
57 + sys-libs/zlib
58 + ssl? ( dev-libs/openssl:0= )"
59 +
60 +S=${WORKDIR}/${MY_P}
61 +
62 +src_prepare() {
63 + ecvs_clean
64 +
65 + default
66 +}
67 +
68 +src_configure() {
69 + econf \
70 + --disable-ipv6 \
71 + $(use_with ssl ssl openssl)
72 +}
73 +
74 +src_compile() {
75 + emake CFLAGS="${CFLAGS}"
76 +}
77 +
78 +src_install() {
79 + newbin src/ircd ptlink-ircd
80 + newbin tools/fixklines ptlink-ircd-fixklines
81 + newbin tools/mkpasswd ptlink-ircd-mkpasswd
82 +
83 + insinto /etc/ptlink-ircd
84 + fperms 700 /etc/ptlink-ircd
85 + doins samples/{kline.conf,{opers,ptlink}.motd,help.{admin,oper,user}}
86 + newins samples/example.conf.short ircd.conf
87 + newins samples/example.conf.trillian ircd.conf.trillian
88 + newins samples/main.dconf.sample main.dconf
89 + newins samples/network.dconf.sample network.dconf
90 +
91 + insinto /usr/share/ptlink-ircd/codepage
92 + doins src/codepage/*.enc
93 + dosym /usr/share/ptlink-ircd/codepage /etc/ptlink-ircd/codepage
94 +
95 + rm -rf doc/old
96 + dodoc doc/* doc_hybrid6/* ircdcron/* CHANGES README
97 +
98 + keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd
99 + dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log
100 +
101 + newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd
102 + newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd
103 +}
104 +
105 +pkg_postinst() {
106 + # Move docert from src_install() to install_cert for bug #201678
107 + use ssl && (
108 + if [[ ! -f "${ROOT}"/etc/ptlink-ircd/server.key.pem ]]; then
109 + install_cert /etc/ptlink-ircd/server || die "install_cert failed"
110 + mv "${ROOT}"/etc/ptlink-ircd/server.{crt,cert.pem}
111 + mv "${ROOT}"/etc/ptlink-ircd/server.{csr,req.pem}
112 + mv "${ROOT}"/etc/ptlink-ircd/server.key{,.pem}
113 + fi
114 + )
115 +
116 + enewuser ptlink-ircd
117 +
118 + chown ptlink-ircd \
119 + "${ROOT}"/{etc,var/{log,lib}}/ptlink-ircd \
120 + "${ROOT}"/etc/ptlink-ircd/server.key.pem
121 +
122 + echo
123 + elog "PTlink IRCd will run without configuration, although this is strongly"
124 + elog "advised against."
125 + echo
126 + elog "You can find example cron script ircd.cron here:"
127 + elog " /usr/share/doc/${PF}"
128 + echo
129 + elog "You can also use /etc/init.d/ptlink-ircd to start at boot"
130 + echo
131 +}