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
commit4ab01affb5dca1bea9e30f987d420d0edf006084 (patch)
tree13adf037aae12f5c83991b754959a3c4d35e1a2e /net-news
parentFixed broken Manifest. (diff)
downloadhistorical-4ab01affb5dca1bea9e30f987d420d0edf006084.tar.gz
historical-4ab01affb5dca1bea9e30f987d420d0edf006084.tar.bz2
historical-4ab01affb5dca1bea9e30f987d420d0edf006084.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/Manifest12
-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
5 files changed, 35 insertions, 21 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/Manifest b/net-news/leafnode/Manifest
index 92de4088e40d..f4a76d1396ae 100644
--- a/net-news/leafnode/Manifest
+++ b/net-news/leafnode/Manifest
@@ -1,21 +1,23 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 e2e9ba98de9a85e44bcb0a038c540d6a leafnode-2.0.0_alpha20041215.ebuild 2058
+MD5 18c914321e69728d0bbb43ce53d94f1c leafnode-2.0.0_alpha20041215.ebuild 2076
MD5 4d469a9f2a17556e35ff6ef2b369308a leafnode-1.10.7.ebuild 1915
MD5 21c07786ccc5dd31fe8a9be1fd6d2d38 leafnode-1.10.6.ebuild 1914
-MD5 1a90e0071dd609f0980df1e26396a7c1 ChangeLog 8748
+MD5 2d10743fb1bc1f10ba7bc0d6477ac1b8 ChangeLog 9037
MD5 d4764f5c17f5e0b416f7ddf271c77d71 metadata.xml 161
+MD5 dbc24acfe37122337d045dc7045c6dd7 files/local.groups 83
MD5 510836c882c3365d0441ba7d8854ba6b files/leafnode.xinetd 230
MD5 5909cb0566e88e7694e85246c78fe4ff files/fetchnews.cron 177
MD5 6124341facdbd0739add2a9fb4f7decc files/digest-leafnode-1.10.6 72
MD5 b6d88ee397baea66413c839681c4e717 files/digest-leafnode-1.10.7 72
+MD5 c26d4b571aa7c3964a7e9fa0a10a3c90 files/moderators 29
MD5 89c01c5fa083717fb2ca962de1079c72 files/digest-leafnode-2.0.0_alpha20041215 82
MD5 72cc5e849b413ec0cf288a65980dd3b5 files/texpire.cron 158
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.9.10 (GNU/Linux)
-iD8DBQFBw4bzI1lqEGTUzyQRAuwGAJ4xQd7snkfI3vOiTlZJB6kKojTz/gCgtMab
-Ox0LbMZVGs7OKtTvEtJtmfE=
-=Va4N
+iD8DBQFBxNgJI1lqEGTUzyQRAhUAAKCrIiJIVX9D6lthMcWgQ/fQ5XprDwCgswy8
+y4vfe0ia+j8jkW8u1lP0psI=
+=IJro
-----END PGP SIGNATURE-----
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