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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 17 03:44:43 2005 UTC (13 years, 4 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.51.16)

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_alpha20041227.ebuild,v 1.1 2005/01/17 19:52:35 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
17 DEPEND=">=dev-libs/libpcre-3.9
18 pam? ( sys-libs/pam )"
19 RDEPEND="${DEPEND}
20 virtual/inetd"
21
22 S="${WORKDIR}/${MY_P}"
23
24 src_compile() {
25 append-ldflags -Wl,-z,now
26
27 econf \
28 --sysconfdir=/etc/leafnode \
29 --with-runas-user=news \
30 --localstatedir=/var \
31 --with-spooldir=/var/spool/news \
32 $(use_with ipv6) \
33 $(use_with pam) \
34 || die "./configure failed"
35 emake || die "emake failed"
36 }
37
38 src_install() {
39 make DESTDIR=${D} install || die "make install failed"
40
41 rm -rf ${D}/var/spool
42 keepdir /var/lock/news
43
44 insinto /etc/leafnode
45 doins ${FILESDIR}/{local.groups,moderators} || die "doins failed"
46
47 insinto /etc/xinetd.d
48 newins ${FILESDIR}/leafnode.xinetd leafnode-nntp || die "newins failed"
49
50 exeinto /etc/cron.hourly
51 doexe ${FILESDIR}/fetchnews.cron || die "doexe failed"
52 exeinto /etc/cron.daily
53 doexe ${FILESDIR}/texpire.cron || die "doexe failed"
54
55 dodoc \
56 AUTHORS COPYING* CREDITS ChangeLog DEBUGGING ENVIRONMENT FAQ \
57 INSTALL NEWS TODO README README_FIRST UPDATING || die "dodoc failed"
58 dohtml README.html || die "dohtml failed"
59 }
60
61 pkg_postinst() {
62 mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
63 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}
64
65 chown -R news:news ${ROOT}/var/spool/news
66 find ${ROOT}/var/spool/news -type d -exec chmod 02775 {} \;
67
68 zcat ${ROOT}/usr/share/doc/${PF}/README_FIRST.gz | while read line
69 do
70 einfo $line
71 done
72
73 einfo
74 einfo "DO MAKE SURE THAT YOU RUN texpire -r IF YOU HAVE ARTICLES IN THE SPOOL"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20