On Tue, Feb 07, 2006, Larry Lansing wrote: > %post > - if [ ".$1" = .1 ]; then > - $RPM_INSTALL_PREFIX/etc/rc perforce start > - sleep 1 > - P4PORT=`$RPM_INSTALL_PREFIX/etc/rc -q perforce_port` > - export P4PORT > - ( echo "Protections:" > - echo " read user * * //..." > - echo " write user * * //..." > - echo " super user %{l_rusr} * //..." > - ) | su %{l_rusr} -c "$RPM_INSTALL_PREFIX/bin/p4 protect -i" > >/dev/null 2>&1 > - $RPM_INSTALL_PREFIX/etc/rc perforce stop > - fi > [...] > %start -u @l_susr@ > rcService perforce enable yes || exit 0 > + rcService perforce active no || exit 0 > + if rcVarIsYes perforce_daemon; then > + cmd="@l_prefix@/sbin/p4d" > + cmd="$cmd -q -d -z" > + cmd="$cmd -p ${perforce_port}" > + cmd="$cmd -r ${perforce_rootdir}" > + cmd="$cmd -J ${perforce_journal}" > + cmd="$cmd -L ${perforce_logfile}" > + umask 077 > + nohup $cmd </dev/null >/dev/null 2>&1 & > + if [ ! -f ${perforce_rootdir}/db.depot ]; then > + sleep 1 > + cmd="@l_prefix@/bin/p4" > + cmd="$cmd -p ${perforce_port}" > + cmd="$cmd protect -i" > + ( echo "Protections:" > + echo " read user * * //..." > + echo " write user * * //..." > + echo " super user @l_susr@ * //..." > + ) | $cmd >/dev/null 2>&1 > + fi > + fi
What is the reason for moving the generation of the db.debot file from %post into %start? Has the "sleep 1" something to do with it? Also, is is security-wise reasonable or required to set "super user" to the OpenPKG super-user (which usually is "root")? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org