diff options
author | Roy Marples <uberlord@gentoo.org> | 2005-10-05 17:27:33 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2005-10-05 17:27:33 +0000 |
commit | 4a37fa3a782b9a3d833814a3c72f019735f9336c (patch) | |
tree | d68926759335b41f6fbf109013c7ec19705750a5 /net-ftp/ftpbase/ftpbase-0.00.ebuild | |
parent | alpha-sources no longer exist wrt bug #107940 (diff) | |
download | gentoo-2-4a37fa3a782b9a3d833814a3c72f019735f9336c.tar.gz gentoo-2-4a37fa3a782b9a3d833814a3c72f019735f9336c.tar.bz2 gentoo-2-4a37fa3a782b9a3d833814a3c72f019735f9336c.zip |
Use "egethome ftp" instead of greping and cuting /etc/passwd.
This allows us to work on other platforms with a minimum of fuss.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-ftp/ftpbase/ftpbase-0.00.ebuild')
-rw-r--r-- | net-ftp/ftpbase/ftpbase-0.00.ebuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-ftp/ftpbase/ftpbase-0.00.ebuild b/net-ftp/ftpbase/ftpbase-0.00.ebuild index 512dbb40987e..0390ce7b59b1 100644 --- a/net-ftp/ftpbase/ftpbase-0.00.ebuild +++ b/net-ftp/ftpbase/ftpbase-0.00.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ftpbase-0.00.ebuild,v 1.11 2005/10/02 23:01:56 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/ftpbase/ftpbase-0.00.ebuild,v 1.12 2005/10/05 17:27:33 uberlord Exp $ inherit eutils pam @@ -83,11 +83,11 @@ pkg_postinst() { # Install manually using install -d until bug #9849 is solved. # This means that the home directory will not be removed when we uninstall # if it's empty. - local homedir="${ROOT}$( egetent passwd ftp | cut -d: -f6 )" + local homedir=$( egethome ftp ) if [[ ! -d ${homedir} ]]; then einfo "Creating home directory for ftp user" einfo " ${homedir}" install -d "${homedir}" \ - || ewarn " can't create ${homedir}" + || ewarn " can't create ${homedir}" fi } |