Lines 1-8
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-nntp/inn/inn-2.4.1.ebuild,v 1.5 2005/12/26 06:56:18 mr_bones_ Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit fixheadtails ssl-cert eutils libtool flag-o-matic |
5 |
WANT_AUTOCONF="2.1" |
|
|
6 |
|
7 |
inherit fixheadtails ssl-cert eutils libtool flag-o-matic autotools |
6 |
|
8 |
|
7 |
DESCRIPTION="The Internet News daemon, fully featured NNTP server" |
9 |
DESCRIPTION="The Internet News daemon, fully featured NNTP server" |
8 |
HOMEPAGE="http://www.isc.org/products/INN" |
10 |
HOMEPAGE="http://www.isc.org/products/INN" |
Lines 19-42
Link Here
|
19 |
ssl? ( dev-libs/openssl ) |
21 |
ssl? ( dev-libs/openssl ) |
20 |
perl? ( dev-lang/perl ) |
22 |
perl? ( dev-lang/perl ) |
21 |
python? ( dev-lang/python ) |
23 |
python? ( dev-lang/python ) |
22 |
berkdb? ( sys-libs/db ) |
24 |
berkdb? ( sys-libs/db )" |
23 |
virtual/gzip" |
25 |
DEPEND="${RDEPEND}" |
24 |
DEPEND="${RDEPEND} |
|
|
25 |
>=sys-devel/autoconf-2.13 |
26 |
sys-devel/libtool |
27 |
>=sys-apps/sed-4" |
28 |
|
26 |
|
29 |
src_unpack() { |
27 |
src_unpack() { |
30 |
unpack ${A} |
28 |
unpack ${A} |
31 |
cd ${S} |
29 |
cd "${S}" |
32 |
|
30 |
|
33 |
epatch ${FILESDIR}/2.4.1-berkdb.patch |
31 |
epatch "${FILESDIR}"/2.4.1-berkdb.patch |
34 |
epatch ${WORKDIR}/db_patch.patch |
32 |
epatch "${WORKDIR}"/db_patch.patch |
35 |
|
33 |
|
36 |
ht_fix_file configure.in support/fixscript.in |
34 |
ht_fix_file configure.in support/fixscript.in |
37 |
|
35 |
|
38 |
export WANT_AUTOCONF="2.1" |
36 |
eautoconf || die "autoconf failed" |
39 |
autoconf || die "autoconf failed" |
|
|
40 |
|
37 |
|
41 |
sed -i \ |
38 |
sed -i \ |
42 |
-e "s/ -B .OLD//" \ |
39 |
-e "s/ -B .OLD//" \ |
Lines 82-103
Link Here
|
82 |
} |
79 |
} |
83 |
|
80 |
|
84 |
src_install() { |
81 |
src_install() { |
85 |
make DESTDIR=${D} P="" install || die "make install failed" |
82 |
make DESTDIR="${D}" P="" install || die "make install failed" |
86 |
|
83 |
|
87 |
chown -R root:0 ${D}/usr/{lib/news/{lib,include},share/{doc,man}} |
84 |
chown -R root:0 "${D}"/usr/{lib/news/{lib,include},share/{doc,man}} |
88 |
chmod 644 ${D}/etc/news/* |
85 |
chmod 644 "${D}"/etc/news/* |
89 |
for file in control.ctl expire.ctl incoming.conf nntpsend.ctl passwd.nntp readers.conf |
86 |
for file in control.ctl expire.ctl incoming.conf nntpsend.ctl passwd.nntp readers.conf |
90 |
do |
87 |
do |
91 |
chmod 640 ${D}/etc/news/${file} |
88 |
chmod 640 "${D}"/etc/news/${file} |
92 |
done |
89 |
done |
93 |
|
90 |
|
94 |
# Prevent old db/* files from being overwritten |
91 |
# Prevent old db/* files from being overwritten |
95 |
dodir /usr/share/doc/${PF}/dbexamples |
92 |
dodir /usr/share/doc/${PF}/dbexamples |
96 |
for db_file in active active.times distributions history newsgroups |
93 |
for db_file in active active.times distributions history newsgroups |
97 |
do |
94 |
do |
98 |
if [ -f ${D}/var/spool/news/db/${db_file} ] |
95 |
if [ -f "${D}"/var/spool/news/db/${db_file} ] |
99 |
then |
96 |
then |
100 |
mv ${D}/var/spool/news/db/${db_file} ${D}/usr/share/doc/${PF}/dbexamples |
97 |
mv "${D}"/var/spool/news/db/${db_file} "${D}"/usr/share/doc/${PF}/dbexamples |
101 |
fi |
98 |
fi |
102 |
done |
99 |
done |
103 |
|
100 |
|
Lines 113-119
Link Here
|
113 |
doins include/*.h |
110 |
doins include/*.h |
114 |
|
111 |
|
115 |
exeinto /etc/init.d |
112 |
exeinto /etc/init.d |
116 |
doexe ${FILESDIR}/innd innd |
113 |
doexe "${FILESDIR}"/innd innd |
117 |
|
114 |
|
118 |
if use ssl |
115 |
if use ssl |
119 |
then |
116 |
then |
Lines 143-173
Link Here
|
143 |
|
140 |
|
144 |
chown -R news:news ${ROOT}/var/{log,spool}/news |
141 |
chown -R news:news ${ROOT}/var/{log,spool}/news |
145 |
|
142 |
|
146 |
einfo "Do not forget to update your cron entries, and also run" |
143 |
elog "Do not forget to update your cron entries, and also run" |
147 |
einfo "makedbz if you need to. If this is a first-time installation" |
144 |
elog "makedbz if you need to. If this is a first-time installation" |
148 |
einfo "a minimal active file has been installed. You will need to" |
145 |
elog "a minimal active file has been installed. You will need to" |
149 |
einfo "touch history and run 'makedbz -i' to initialize the history" |
146 |
elog "touch history and run 'makedbz -i' to initialize the history" |
150 |
einfo "database. See INSTALL for more information." |
147 |
elog "database. See INSTALL for more information." |
151 |
einfo |
148 |
elog |
152 |
einfo "You need to assign a real shell to the news user, or else" |
149 |
elog "You need to assign a real shell to the news user, or else" |
153 |
einfo "starting inn will fail. You can use 'usermod -s /bin/bash news'" |
150 |
elog "starting inn will fail. You can use 'usermod -s /bin/bash news'" |
154 |
einfo "for this." |
151 |
elog "for this." |
155 |
|
152 |
|
156 |
if use ssl |
153 |
if use ssl |
157 |
then |
154 |
then |
158 |
einfo |
155 |
elog |
159 |
einfo "You may want to start nnrpd manually for native ssl support." |
156 |
elog "You may want to start nnrpd manually for native ssl support." |
160 |
einfo "If you choose to do so, automating this with a bootscript might" |
157 |
elog "If you choose to do so, automating this with a bootscript might" |
161 |
einfo "also be a good choice." |
158 |
elog "also be a good choice." |
162 |
einfo "Have a look at man nnrpd for valid parameters." |
159 |
elog "Have a look at man nnrpd for valid parameters." |
163 |
fi |
160 |
fi |
164 |
} |
161 |
} |
165 |
|
162 |
|
166 |
pkg_postrm() { |
163 |
pkg_postrm() { |
167 |
einfo |
164 |
elog |
168 |
einfo "If you want your newsspool or altered configuration files" |
165 |
elog "If you want your newsspool or altered configuration files" |
169 |
einfo "to be removed, please do so now manually." |
166 |
elog "to be removed, please do so now manually." |
170 |
einfo |
167 |
elog |
171 |
} |
168 |
} |
172 |
|
169 |
|
173 |
pkg_config() { |
170 |
pkg_config() { |