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

Contents of /net-nntp/leafnode/leafnode-1.10.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jan 17 19:52:35 2005 UTC (13 years, 7 months ago) by swegener
Branch: MAIN
Moved from net-news/leafnode to net-nntp/leafnode.

1 swegener 1.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-news/leafnode/leafnode-1.10.6.ebuild,v 1.2 2004/11/12 23:59:41 swegener Exp $
4    
5     MY_P=${P}.rel
6    
7     DESCRIPTION="A USENET software package designed for small sites"
8     SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
9     HOMEPAGE="http://leafnode.sourceforge.net/"
10     LICENSE="GPL-2"
11     SLOT="0"
12     KEYWORDS="x86 ~ppc ~sparc"
13     IUSE="ipv6"
14    
15     DEPEND=">=dev-libs/libpcre-3.9"
16     RDEPEND="${DEPEND}
17     virtual/inetd"
18    
19     S=${WORKDIR}/${MY_P}
20    
21     src_compile() {
22     econf \
23     --sysconfdir=/etc/leafnode \
24     --localstatedir=/var \
25     --with-spooldir=/var/spool/news \
26     $(use_with ipv6) \
27     || die "econf failed"
28     emake || die "emake failed"
29     }
30    
31     src_install() {
32     make DESTDIR=${D} install || die "make install failed"
33    
34     # remove the spool dirs -- put them back in during pkg_postinst, so that
35     # they don't get removed during an unmerge or upgrade
36     rm -rf ${D}/var/spool
37    
38     # add .keep file to /var/lock/news to avoid ebuild to ignore the empty dir
39     keepdir /var/lock/news
40    
41     insinto /etc/xinetd.d
42     newins ${FILESDIR}/leafnode.xinetd leafnode-nntp
43    
44     exeinto /etc/cron.hourly
45     doexe ${FILESDIR}/fetchnews.cron
46     exeinto /etc/cron.daily
47     doexe ${FILESDIR}/texpire.cron
48    
49     dodoc \
50     COPYING* CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS \
51     TODO README.FIRST README-daemontools UNINSTALL-daemontools \
52     README README-MAINTAINER README-FQDN
53     dohtml FAQ.html FAQ.xml README-FQDN.html
54     }
55    
56     pkg_postinst() {
57     mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
58     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}
59     chown -R news:news ${ROOT}/var/spool/news
60    
61     mkdir -p ${ROOT}/var/lib/news
62     chown -R news:news ${ROOT}/var/lib/news
63    
64     zcat ${ROOT}/usr/share/doc/${PF}/README.FIRST.gz | while read line ;
65     do
66     einfo $line
67     done
68     }

  ViewVC Help
Powered by ViewVC 1.1.20