Date: Sun, 30 Dec 2012 00:45:43 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244844 - projects/portbuild/tools Message-ID: <201212300045.qBU0jhFW084327@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon (doc,ports committer) Date: Sun Dec 30 00:45:42 2012 New Revision: 244844 URL: http://svnweb.freebsd.org/changeset/base/244844 Log: Make this create a couple of directories. This is part of the removal of running things as root, which has access to /var/run. Modified: projects/portbuild/tools/mkportbuild Modified: projects/portbuild/tools/mkportbuild ============================================================================== --- projects/portbuild/tools/mkportbuild Sun Dec 30 00:28:50 2012 (r244843) +++ projects/portbuild/tools/mkportbuild Sun Dec 30 00:45:42 2012 (r244844) @@ -88,4 +88,14 @@ fi echo "checking out the repository ..." su -m ${PORTBUILD_USER} -c "${VCS_CHECKOUT_COMMAND} ${VCS_PORTBUILD_REPOSITORY} ${ZFS_MOUNTPOINT}/portbuild" || exit 1 -echo "$0: done. You should now be able to edit files in ${ZFS_MOUNTPOINT}/portbuild/conf." +echo "$0: you should now be able to edit files in ${ZFS_MOUNTPOINT}/portbuild/conf." + +# create convenience directories. failure is annoying but non-fatal. +extra_dirs="lockfiles log" +for extra_dir in ${extra_dirs}; do + if [ ! -d ${ZFS_MOUNTPOINT}/portbuild/${extra_dir} ]; then + su -m ${PORTBUILD_USER} -c "mkdir ${ZFS_MOUNTPOINT}/portbuild/${extra_dir}" + fi +done + +echo "$0: done."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212300045.qBU0jhFW084327>