Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4dcc1e146364eaad14c256281eca973c30b3046e
commit 4dcc1e146364eaad14c256281eca973c30b3046e Author: Miklos Vajna <vmik...@frugalware.org> Date: Wed May 20 00:28:39 2009 +0200 mailman-2.1.12-2-i686 - hide the hostname of the build host and replace it with the real hostname in post_{install,upgrade} diff --git a/source/apps-extra/mailman/FrugalBuild b/source/apps-extra/mailman/FrugalBuild index 4267d0f..80bbe10 100644 --- a/source/apps-extra/mailman/FrugalBuild +++ b/source/apps-extra/mailman/FrugalBuild @@ -1,10 +1,10 @@ # Compiling Time: ~0.18 SBU -# Contributor: VMiklos <vmik...@frugalware.org> +# Contributor: Miklos Vajna <vmik...@frugalware.org> # Maintainer: voroskoi <voros...@frugalware.org> pkgname=mailman pkgver=2.1.12 -pkgrel=1 +pkgrel=2 pkgdesc="Mailing list manager with built in web access." _F_sourceforge_ext=.tgz Finclude sourceforge @@ -46,6 +46,7 @@ build() { fi Fdoc README.Frugalware Frcd2 + Fsed "`hostname`" "@HOSTNAME@" $Fdestdir/home/mailman/Mailman/Defaults.py } # optimization OK diff --git a/source/apps-extra/mailman/mailman.install b/source/apps-extra/mailman/mailman.install index 1579bf1..7bb5968 100644 --- a/source/apps-extra/mailman/mailman.install +++ b/source/apps-extra/mailman/mailman.install @@ -1,18 +1,16 @@ -# arg 1: the new package version post_install() { [ -z "`grep '^mailman::' /etc/group`" ] && \ /usr/sbin/groupadd -g 80 mailman >& /dev/null [ -z "`grep '^mailman:' /etc/passwd`" ] && \ /usr/sbin/useradd -u 80 -g mailman -d /home/mailman -s /bin/false mailman + grep -q "@HOSTNAME@" /home/mailman/Mailman/Defaults.py && + sed -i "s/@HOSTNAME@/`hostname -d`/" /home/mailman/Mailman/Defaults.py } -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { post_install $1 } -# arg 1: the old package version pre_remove() { /usr/sbin/userdel mailman &> /dev/null /usr/sbin/groupdel mailman &> /dev/null @@ -22,5 +20,3 @@ op=$1 shift $op $* - -# vim: ft=sh _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git