/[gentoo-x86]/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r1.ebuild
Gentoo

Contents of /net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 6 14:58:30 2009 UTC (5 years, 3 months ago) by ssuominen
Branch: MAIN
Changes since 1.1: +4 -4 lines
Don't hardcode ecompress --suffix in postinst msg wrt #272934, thanks to Victor Ostorga.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/ptlink-ircd-6.19.6-r1.ebuild,v 1.1 2007/12/16 17:48:04 cla Exp $
4
5 inherit eutils ssl-cert
6
7 MY_P="PTlink${PV}"
8
9 DESCRIPTION="PTlink IRCd is a secure IRC daemon with many advanced features."
10 HOMEPAGE="http://www.ptlink.net/"
11 SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ircd/${MY_P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~ppc ~sparc ~x86"
15
16 IUSE="ssl"
17 DEPEND="sys-libs/zlib
18 ssl? ( dev-libs/openssl )"
19
20 S=${WORKDIR}/${MY_P}
21
22 src_unpack() {
23 unpack ${A}
24 find "${S}" -type d -name CVS -print0 2>/dev/null | xargs -0r rm -rf
25 }
26
27 src_compile() {
28 econf \
29 --disable-ipv6 \
30 $(use_with ssl ssl openssl) \
31 || die "econf failed"
32 emake CFLAGS="${CFLAGS}" || die "emake failed"
33 }
34
35 src_install() {
36 newbin src/ircd ptlink-ircd || die "newbin failed"
37 newbin tools/fixklines ptlink-ircd-fixklines || die "newbin failed"
38 newbin tools/mkpasswd ptlink-ircd-mkpasswd || die "newbin failed"
39
40 insinto /etc/ptlink-ircd
41 fperms 700 /etc/ptlink-ircd || die "fperms failed"
42 doins samples/{kline.conf,{opers,ptlink}.motd,help.{admin,oper,user}} || die "newins failed"
43 newins samples/example.conf.short ircd.conf || die "newins failed"
44 newins samples/example.conf.trillian ircd.conf.trillian || die "newins failed"
45 newins samples/main.dconf.sample main.dconf || die "newins failed"
46 newins samples/network.dconf.sample network.dconf || die "newins failed"
47
48 insinto /usr/share/ptlink-ircd/codepage
49 doins src/codepage/*.enc || die "doins failed"
50 dosym /usr/share/ptlink-ircd/codepage /etc/ptlink-ircd/codepage || die "dosym failed"
51
52 rm -rf doc/old
53 dodoc doc/* doc_hybrid6/* ircdcron/* CHANGES README || die "dodoc failed"
54
55 keepdir /var/log/ptlink-ircd /var/lib/ptlink-ircd || die "keepdir failed"
56 dosym /var/log/ptlink-ircd /var/lib/ptlink-ircd/log || die "dosym failed"
57
58 newinitd "${FILESDIR}/ptlink-ircd.initd" ptlink-ircd || die "newinitd failed"
59 newconfd "${FILESDIR}/ptlink-ircd.confd" ptlink-ircd || die "newconfd failed"
60 }
61
62 pkg_postinst() {
63 # Move docert from src_install() to install_cert for bug #201678
64 use ssl && (
65 if [[ ! -f "${ROOT}"/etc/ptlink-ircd/server.key.pem ]]; then
66 install_cert /etc/ptlink-ircd/server || die "install_cert failed"
67 mv "${ROOT}"/etc/ptlink-ircd/server.crt "${ROOT}"/etc/ptlink-ircd/server.cert.pem
68 mv "${ROOT}"/etc/ptlink-ircd/server.csr "${ROOT}"/etc/ptlink-ircd/server.req.pem
69 mv "${ROOT}"/etc/ptlink-ircd/server.key "${ROOT}"/etc/ptlink-ircd/server.key.pem
70 fi
71 )
72
73 enewuser ptlink-ircd
74
75 chown ptlink-ircd \
76 "${ROOT}"/{etc,var/{log,lib}}/ptlink-ircd \
77 "${ROOT}"/etc/ptlink-ircd/server.key.pem
78
79 elog
80 elog "PTlink IRCd will run without configuration, although this is strongly"
81 elog "advised against."
82 elog
83 elog "You can find example cron script ircd.cron here:"
84 elog " /usr/share/doc/${PF}"
85 elog
86 elog "You can also use /etc/init.d/ptlink-ircd to start at boot"
87 elog
88 }

  ViewVC Help
Powered by ViewVC 1.1.20