summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2004-07-27 21:19:13 +0000
committerTuan Van <langthang@gentoo.org>2004-07-27 21:19:13 +0000
commitb66c82bef271765bdac2ce2da960491e7c5cf219 (patch)
tree8cdea7b5d30011f38587f74202f2157251ae86ec /net-mail
parentAdd ~amd64 closes bug #57551 (diff)
downloadhistorical-b66c82bef271765bdac2ce2da960491e7c5cf219.tar.gz
historical-b66c82bef271765bdac2ce2da960491e7c5cf219.tar.bz2
historical-b66c82bef271765bdac2ce2da960491e7c5cf219.zip
switch to enew{group,user}, add enew{group/user} to pkg_postinst wrt bug #58526.
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailman/ChangeLog6
-rw-r--r--net-mail/mailman/Manifest4
-rw-r--r--net-mail/mailman/mailman-2.1.5-r1.ebuild18
3 files changed, 16 insertions, 12 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index 2655100320d4..fc95fd2f82cd 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.41 2004/07/22 18:42:18 langthang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.42 2004/07/27 21:19:13 langthang Exp $
+
+ 27 Jul 2004; Tuan Van <langthang@gentoo.org> mailman-2.1.5-r1.ebuild:
+ switch to enew{group,user}.
+ add enew{group/user} to pkg_postinst wrt bug #58526.
22 Jul 2004; Tuan Van <langthang@gentoo.org> mailman-2.1.5-r1.ebuild:
stable on x86.
diff --git a/net-mail/mailman/Manifest b/net-mail/mailman/Manifest
index 9eb29c1353a2..4dc448abbc1e 100644
--- a/net-mail/mailman/Manifest
+++ b/net-mail/mailman/Manifest
@@ -1,6 +1,6 @@
-MD5 8fdeba222cdd6e9058824792fd9bf0b8 mailman-2.1.5-r1.ebuild 3931
+MD5 daee86d054df325d64fc98757d131e6b mailman-2.1.5-r1.ebuild 4028
MD5 2c755e431914dc9ef5acd2b2cdc47f5e mailman-2.1.5.ebuild 3764
-MD5 bc07c6f1a5ec4902bdaf91eea267cbd4 ChangeLog 5685
+MD5 e7a93267bf90b556ae85af5d51e33c08 ChangeLog 5843
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
MD5 ea0c850a55a563d90a520ab52809112f files/README.gentoo 4963
MD5 1c839f4abbbe57c6ffc915fc8dc3018c files/mailman-2.1.5-directory-check.patch 641
diff --git a/net-mail/mailman/mailman-2.1.5-r1.ebuild b/net-mail/mailman/mailman-2.1.5-r1.ebuild
index 2b531027c729..4712957ce947 100644
--- a/net-mail/mailman/mailman-2.1.5-r1.ebuild
+++ b/net-mail/mailman/mailman-2.1.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.5-r1.ebuild,v 1.3 2004/07/22 18:42:18 langthang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.5-r1.ebuild,v 1.4 2004/07/27 21:19:13 langthang Exp $
inherit eutils
IUSE="apache2"
@@ -22,13 +22,11 @@ APACHEGID="81"
MAILGID="280"
pkg_setup() {
- if ! grep -q ^mailman: /etc/group ; then
- groupadd -g 280 mailman || die "problem adding group mailman"
- fi
- if ! grep -q ^mailman: /etc/passwd ; then
- useradd -u 280 -g mailman -G cron -s /bin/bash \
- -d ${INSTALLDIR} -c "mailman" mailman
- fi
+ # Bug #58526: switch to enew{group,user}.
+ # need to add mailman here for compile process.
+ # Duplicated at pkg_postinst() for binary install.
+ enewgroup mailman 280
+ enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman
mkdir -p ${INSTALLDIR}
chown mailman:mailman ${INSTALLDIR}
chmod 2775 ${INSTALLDIR}
@@ -109,10 +107,12 @@ src_install () {
}
pkg_postinst() {
+ enewgroup mailman 280
+ enewuser mailman 280 /bin/false ${INSTALLDIR} mailman -G cron -c "mailman"
cd ${INSTALLDIR}
bin/update
bin/check_perms -f
- bin/check_perms_grsecurity.py -f
+ python bin/check_perms_grsecurity.py -f
einfo ""
einfo "Please read /usr/share/doc/${PF}/README.gentoo.gz for additional"
einfo "Setup information, mailman will NOT run unless you follow"