diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-12-28 17:14:07 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-12-28 17:14:07 +0000 |
commit | e348caf8cf685ba9718ed0f37e88446845230fca (patch) | |
tree | 213479da57a675a4164c56c6d405852b83ca6d3d /app-admin/usermin | |
parent | Marked ppc stable. (Manifest recommit) (diff) | |
download | gentoo-2-e348caf8cf685ba9718ed0f37e88446845230fca.tar.gz gentoo-2-e348caf8cf685ba9718ed0f37e88446845230fca.tar.bz2 gentoo-2-e348caf8cf685ba9718ed0f37e88446845230fca.zip |
Added ${ROOT}
Diffstat (limited to 'app-admin/usermin')
-rw-r--r-- | app-admin/usermin/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/usermin/usermin-1.100.ebuild | 24 |
2 files changed, 17 insertions, 13 deletions
diff --git a/app-admin/usermin/ChangeLog b/app-admin/usermin/ChangeLog index 049870ef0c7f..73c790d18765 100644 --- a/app-admin/usermin/ChangeLog +++ b/app-admin/usermin/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/usermin # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.42 2004/12/19 13:53:09 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.43 2004/12/28 17:14:07 eradicator Exp $ + + 28 Dec 2004; Jeremy Huddleston <eradicator@gentoo.org> + usermin-1.100.ebuild: + Added ${ROOT} 19 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> usermin-1.100.ebuild: Stable on alpha. diff --git a/app-admin/usermin/usermin-1.100.ebuild b/app-admin/usermin/usermin-1.100.ebuild index 58d6327d0623..40b8063e9ff2 100644 --- a/app-admin/usermin/usermin-1.100.ebuild +++ b/app-admin/usermin/usermin-1.100.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/app-admin/usermin/usermin-1.100.ebuild,v 1.3 2004/12/19 13:53:09 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-1.100.ebuild,v 1.4 2004/12/28 17:14:07 eradicator Exp $ IUSE="ssl" @@ -51,17 +51,17 @@ src_install() { } pkg_postinst() { - /etc/init.d/usermin stop >& /dev/null + ${ROOT}/etc/init.d/usermin stop >& /dev/null stopstatus=$? - cd /usr/libexec/usermin - config_dir=/etc/usermin - var_dir=/var/log/usermin - perl=/usr/bin/perl + cd ${ROOT}/usr/libexec/usermin + config_dir=${ROOT}/etc/usermin + var_dir=${ROOT}/var/log/usermin + perl=${ROOT}/usr/bin/perl autoos=1 port=20000 login=root - crypt=`grep "^root:" /etc/shadow | cut -f 2 -d :` + crypt=`grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :` host=`hostname` use ssl && ssl=1 || ssl=0 atboot=0 @@ -71,20 +71,20 @@ pkg_postinst() { nouninstall=1 noperlpath=1 export config_dir var_dir perl autoos port login crypt host ssl nochown autothird nouninstall nostart noperlpath - perl /usr/libexec/usermin/maketemp.pl - ./setup.sh > /tmp/.webmin/usermin-setup.out 2>&1 + perl ${ROOT}/usr/libexec/usermin/maketemp.pl + ./setup.sh > ${ROOT}/tmp/.webmin/usermin-setup.out 2>&1 if [ "$stopstatus" = "0" ]; then # Start if it was running before - /etc/init.d/usermin start + ${ROOT}/etc/init.d/usermin start fi - sed -i 's:^pidfile=.*$:pidfile=/var/run/usermin.pid:' /etc/usermin/miniserv.conf + sed -i 's:^pidfile=.*$:pidfile=${ROOT}/var/run/usermin.pid:' ${ROOT}/etc/usermin/miniserv.conf einfo "Add usermin to your boot-time services with 'rc-update add usermin'." einfo "Point your web browser to http://localhost:20000 to use usermin." } pkg_prerm() { - /etc/init.d/usermin stop >& /dev/null + ${ROOT}/etc/init.d/usermin stop >& /dev/null } |