svn commit: r246749 - projects/portbuild/admin/tools

Mark Linimon linimon at FreeBSD.org
Wed Feb 13 06:17:17 UTC 2013


Author: linimon (doc,ports committer)
Date: Wed Feb 13 06:17:17 2013
New Revision: 246749
URL: http://svnweb.freebsd.org/changeset/base/246749

Log:
  srbuild needs its own lockfiles subdir.

Modified:
  projects/portbuild/admin/tools/mkportbuild

Modified: projects/portbuild/admin/tools/mkportbuild
==============================================================================
--- projects/portbuild/admin/tools/mkportbuild	Wed Feb 13 06:13:19 2013	(r246748)
+++ projects/portbuild/admin/tools/mkportbuild	Wed Feb 13 06:17:17 2013	(r246749)
@@ -22,6 +22,7 @@ PORTBUILD_OWNED_SUBDIRS="portbuild"
 # define ownership of subdirectories of DEFAULT_ZFS_VOLUME/portbuild/
 SRCBUILD_OWNED_VCS_SUBDIRS="admin docs"
 PORTBUILD_OWNED_VCS_SUBDIRS="conf errorlogs qmanager scripts sources tools"
+SRCBUILD_OWNED_CONVENIENCE_SUBDIRS="lockfiles"
 PORTBUILD_OWNED_CONVENIENCE_SUBDIRS="lockfiles log"
 
 if [ `id -u` != 0 ]; then
@@ -216,4 +217,13 @@ for extra_dir in ${PORTBUILD_OWNED_CONVE
   chgrp ${PORTBUILD_USER} ${ZFS_MOUNTPOINT}/portbuild/${extra_dir} 2> /dev/null
 done
 
+# create convenience directories for SRCBUILD_USER.
+SRCBUILD_OWNED_CONVENIENCE_SUBDIRS="lockfiles log"
+for extra_dir in ${SRCBUILD_OWNED_CONVENIENCE_SUBDIRS}; do
+  if [ ! -d ${ZFS_MOUNTPOINT}/portbuild/${extra_dir} ]; then
+    su -m ${SRCBUILD_USER} -c "mkdir ${ZFS_MOUNTPOINT}/portbuild/${extra_dir} 2> /dev/null" || exit 1
+  fi
+  chgrp ${SRCBUILD_USER} ${ZFS_MOUNTPOINT}/portbuild/${extra_dir} 2> /dev/null
+done
+
 echo "$0: done."


More information about the svn-src-projects mailing list