diff options
author | Tuan Van <langthang@gentoo.org> | 2004-07-27 21:19:13 +0000 |
---|---|---|
committer | Tuan Van <langthang@gentoo.org> | 2004-07-27 21:19:13 +0000 |
commit | feea18c61c25c5c713161dc434b371813674a421 (patch) | |
tree | adc64345690db11d5603afb442355113d75b392c /net-mail/mailman | |
parent | Add ~amd64 closes bug #57551 (Manifest recommit) (diff) | |
download | gentoo-2-feea18c61c25c5c713161dc434b371813674a421.tar.gz gentoo-2-feea18c61c25c5c713161dc434b371813674a421.tar.bz2 gentoo-2-feea18c61c25c5c713161dc434b371813674a421.zip |
switch to enew{group,user}, add enew{group/user} to pkg_postinst wrt bug #58526.
Diffstat (limited to 'net-mail/mailman')
-rw-r--r-- | net-mail/mailman/ChangeLog | 6 | ||||
-rw-r--r-- | net-mail/mailman/mailman-2.1.5-r1.ebuild | 18 |
2 files changed, 14 insertions, 10 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/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" |