summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-12-19 01:23:15 +0000
committerSven Wegener <swegener@gentoo.org>2004-12-19 01:23:15 +0000
commiteab61421bdf6aff799394b8b653fe57599524493 (patch)
tree2db468518c414f153d1752186b5aa6d2dbe6e39b /net-news
parentFixed broken Manifest. (Manifest recommit) (diff)
downloadgentoo-2-eab61421bdf6aff799394b8b653fe57599524493.tar.gz
gentoo-2-eab61421bdf6aff799394b8b653fe57599524493.tar.bz2
gentoo-2-eab61421bdf6aff799394b8b653fe57599524493.zip
Added example local.groups and moderators files. Fixed /var/spool/news permissions. Thanks to Daniel Webert <rockoo@rockoo.homelinux.org> in bug #74845.
Diffstat (limited to 'net-news')
-rw-r--r--net-news/leafnode/ChangeLog8
-rw-r--r--net-news/leafnode/files/local.groups2
-rw-r--r--net-news/leafnode/files/moderators1
-rw-r--r--net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild33
4 files changed, 28 insertions, 16 deletions
diff --git a/net-news/leafnode/ChangeLog b/net-news/leafnode/ChangeLog
index 8ecdc8ceb65e..03eac41fd562 100644
--- a/net-news/leafnode/ChangeLog
+++ b/net-news/leafnode/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-news/leafnode
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-news/leafnode/ChangeLog,v 1.43 2004/12/18 01:25:01 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-news/leafnode/ChangeLog,v 1.44 2004/12/19 01:23:15 swegener Exp $
+
+ 19 Dec 2004; Sven Wegener <swegener@gentoo.org> +files/local.groups,
+ +files/moderators, leafnode-2.0.0_alpha20041215.ebuild:
+ Added example local.groups and moderators files. Fixed /var/spool/news
+ permissions. Thanks to Daniel Webert <rockoo@rockoo.homelinux.org> in bug
+ #74845.
*leafnode-2.0.0_alpha20041215 (18 Dec 2004)
diff --git a/net-news/leafnode/files/local.groups b/net-news/leafnode/files/local.groups
new file mode 100644
index 000000000000..8d1fd9ff2680
--- /dev/null
+++ b/net-news/leafnode/files/local.groups
@@ -0,0 +1,2 @@
+local.testing y local group for testing
+local.special m local group with moderator
diff --git a/net-news/leafnode/files/moderators b/net-news/leafnode/files/moderators
new file mode 100644
index 000000000000..a0c9f1ea9148
--- /dev/null
+++ b/net-news/leafnode/files/moderators
@@ -0,0 +1 @@
+local.special:root@localhost
diff --git a/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild b/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild
index c21a967ee02c..b2e4122d9663 100644
--- a/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild
+++ b/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild,v 1.1 2004/12/18 01:25:01 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-news/leafnode/leafnode-2.0.0_alpha20041215.ebuild,v 1.2 2004/12/19 01:23:15 swegener Exp $
+
+inherit flag-o-matic
MY_P=${P/_/.}a
@@ -19,6 +21,8 @@ RDEPEND="${DEPEND}
S="${WORKDIR}/${MY_P}"
src_compile() {
+ append-ldflags -Wl,-z,now
+
econf \
--sysconfdir=/etc/leafnode \
--with-runas-user=news \
@@ -32,35 +36,34 @@ src_compile() {
src_install() {
make DESTDIR=${D} install || die "make install failed"
- # remove the spool dirs -- put them back in during pkg_postinst, so that
- # they don't get removed during an unmerge or upgrade
rm -rf ${D}/var/spool
-
- # add .keep file to /var/lock/news to avoid ebuild to ignore the empty dir
keepdir /var/lock/news
- # ... and keep texpire from complaining about missing dir
- keepdir /etc/leafnode/local.groups
+
+ insinto /etc/leafnode
+ doins ${FILESDIR}/{local.groups,moderators} || die "doins failed"
insinto /etc/xinetd.d
- newins ${FILESDIR}/leafnode.xinetd leafnode-nntp
+ newins ${FILESDIR}/leafnode.xinetd leafnode-nntp || die "newins failed"
exeinto /etc/cron.hourly
- doexe ${FILESDIR}/fetchnews.cron
+ doexe ${FILESDIR}/fetchnews.cron || die "doexe failed"
exeinto /etc/cron.daily
- doexe ${FILESDIR}/texpire.cron
+ doexe ${FILESDIR}/texpire.cron || die "doexe failed"
dodoc \
AUTHORS COPYING* CREDITS ChangeLog DEBUGGING ENVIRONMENT FAQ \
- INSTALL NEWS TODO README README_FIRST UPDATING
- dohtml README.html
+ INSTALL NEWS TODO README README_FIRST UPDATING || die "dodoc failed"
+ dohtml README.html || die "dohtml failed"
}
pkg_postinst() {
- dodir ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
- dodir ${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}
+ mkdir -p ${ROOT}/var/spool/news/{leaf.node,failed.postings,interesting.groups,out.going}
+ 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}
+
chown -R news:news ${ROOT}/var/spool/news
+ find ${ROOT}/var/spool/news -type d -exec chmod 02775 {} \;
- zcat ${ROOT}/usr/share/doc/${PF}/README_FIRST.gz | while read line ;
+ zcat ${ROOT}/usr/share/doc/${PF}/README_FIRST.gz | while read line
do
einfo $line
done