/[gentoo-x86]/net-nntp/leafnode/leafnode-2.0.0_alpha20050514.ebuild
Gentoo

Contents of /net-nntp/leafnode/leafnode-2.0.0_alpha20050514.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 25 13:48:26 2005 UTC (12 years, 6 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump in the development series.
(Portage version: 2.0.52-r1)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nntp/leafnode/leafnode-2.0.0_alpha20050514.ebuild,v 1.1 2005/06/11 14:18:08 swegener Exp $
4
5 inherit flag-o-matic
6
7 MY_P=${P/_/.}a
8
9 DESCRIPTION="A USENET software package designed for small sites"
10 SRC_URI="http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/${MY_P}.tar.bz2"
11 HOMEPAGE="http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/"
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc ~sparc"
15 IUSE="ipv6 pam"
16 RESTRICT="nomirror"
17
18 DEPEND=">=dev-libs/libpcre-3.9
19 pam? ( sys-libs/pam )"
20 RDEPEND="${DEPEND}
21 virtual/inetd"
22
23 S="${WORKDIR}/${MY_P}"
24
25 src_compile() {
26 append-ldflags -Wl,-z,now
27
28 econf \
29 --sysconfdir=/etc/leafnode \
30 --with-runas-user=news \
31 --localstatedir=/var \
32 --with-spooldir=/var/spool/news \
33 $(use_with ipv6) \
34 $(use_with pam) \
35 || die "./configure failed"
36 emake || die "emake failed"
37 }
38
39 src_install() {
40 make DESTDIR="${D}" install || die "make install failed"
41
42 rm -rf "${D}"/var/spool
43 keepdir /var/lock/news
44
45 insinto /etc/leafnode
46 doins "${FILESDIR}"/{local.groups,moderators} || die "doins failed"
47
48 insinto /etc/xinetd.d
49 newins "${FILESDIR}"/leafnode.xinetd leafnode-nntp || die "newins failed"
50
51 exeinto /etc/cron.hourly
52 doexe "${FILESDIR}"/fetchnews.cron || die "doexe failed"
53 exeinto /etc/cron.daily
54 doexe "${FILESDIR}"/texpire.cron || die "doexe failed"
55
56 dodoc \
57 AUTHORS COPYING* CREDITS ChangeLog DEBUGGING ENVIRONMENT FAQ \
58 INSTALL NEWS TODO README || die "dodoc failed"
59 dohtml README.html || die "dohtml failed"
60 }
61
62 pkg_postinst() {
63 mkdir -p "${ROOT}"/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
64 mkdir -p "${ROOT}"/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
65
66 chown -R news:news "${ROOT}"/var/spool/news
67 find "${ROOT}"/var/spool/news -type d -exec chmod 02775 {} \;
68
69 zcat "${ROOT}"/usr/share/doc/${PF}/README_FIRST.gz | while read line
70 do
71 einfo "${line}"
72 done
73
74 einfo
75 einfo "DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL"
76 }

  ViewVC Help
Powered by ViewVC 1.1.20