diff options
author | Roy Marples <uberlord@gentoo.org> | 2006-10-26 11:45:45 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2006-10-26 11:45:45 +0000 |
commit | 568f8357f6c00c336266a0f9760af730fe40ec47 (patch) | |
tree | b33f7dca09e435152bcab64eff071e3159ac2661 /sys-freebsd/freebsd-usbin | |
parent | Rebuild login.conf.db after installing a new cap_mkdb, #152856. (diff) | |
download | gentoo-2-568f8357f6c00c336266a0f9760af730fe40ec47.tar.gz gentoo-2-568f8357f6c00c336266a0f9760af730fe40ec47.tar.bz2 gentoo-2-568f8357f6c00c336266a0f9760af730fe40ec47.zip |
Create /etc/{passwd,pwd.db,spwd.db} from /etc/master.passwd
if any do not exist, #152856.
(Portage version: 2.1.2_pre3-r9)
Diffstat (limited to 'sys-freebsd/freebsd-usbin')
-rw-r--r-- | sys-freebsd/freebsd-usbin/ChangeLog | 7 | ||||
-rw-r--r-- | sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-usbin/ChangeLog b/sys-freebsd/freebsd-usbin/ChangeLog index a71a47540cb2..c044b62503d9 100644 --- a/sys-freebsd/freebsd-usbin/ChangeLog +++ b/sys-freebsd/freebsd-usbin/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-freebsd/freebsd-usbin # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.27 2006/10/19 04:46:49 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/ChangeLog,v 1.28 2006/10/26 11:45:45 uberlord Exp $ + + 26 Oct 2006; Roy Marples <uberlord@gentoo.org> + freebsd-usbin-6.2_beta2.ebuild: + Create /etc/{passwd,pwd.db,spwd.db} from /etc/master.passwd + if any do not exist, #152856. 19 Oct 2006; Diego Pettenò <flameeyes@gentoo.org> ChangeLog: Remove 6.2_beta1 ebuild. diff --git a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild index 39a23cc01398..f44fbed0468f 100644 --- a/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild +++ b/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild,v 1.4 2006/10/17 10:33:31 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-usbin/freebsd-usbin-6.2_beta2.ebuild,v 1.5 2006/10/26 11:45:45 uberlord Exp $ inherit bsdmk freebsd flag-o-matic eutils @@ -155,6 +155,18 @@ EOS } pkg_postinst() { + # We need to run pwd_mkdb if key files are not present + # If they are, then there is no need to run pwd_mkdb + if [[ ! -e ${ROOT}etc/passwd || ! -e ${ROOT}etc/pwd.db || ! -e ${ROOT}etc/spwd.db ]] ; then + if [[ -e ${ROOT}etc/master.passwd ]] ; then + einfo "Generating passwd files from ${ROOT}etc/master.passwd" + ${ROOT}usr/sbin/pwd_mkdb -p -d ${ROOT}etc ${ROOT}etc/master.passwd + else + eerror "${ROOT}etc/master.passwd does not exist!" + eerror "You will no be able to log into your system!" + fi + fi + for logfile in messages security auth.log maillog lpd-errs xferlog cron \ debug.log slip.log ppp.log; do [[ -f ${ROOT}/var/log/${logfile} ]] || touch ${ROOT}/var/log/${logfile} |