svn commit: r244844 - projects/portbuild/tools

Mark Linimon linimon at FreeBSD.org
Sun Dec 30 00:45:43 UTC 2012


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."


More information about the svn-src-projects mailing list