Permalink
Browse files

Merge branch 'master' of github.com:pcbsd/pcbsd

  • Loading branch information...
2 parents 1234f7c + 40e8efb commit 20590e39f231a8578cba42184c58b077f118a225 Ken Moore committed Oct 29, 2013
Showing with 11 additions and 4 deletions.
  1. +11 −4 src-sh/pbi-manager10/pbi-manager
@@ -7535,15 +7535,22 @@ do_port_build()
# Did it install?
pkg info -e ${_lPortRaw}
if [ $? -ne 0 ] ; then exit_err "Failed to install $_lPortRaw" ; fi
+
+ # Save any users / groups we need to create later
+ local pUsers="`pkg query "%U" $_lPortRaw`"
+ local pGroups="`pkg query "%G" $_lPortRaw`"
+ if [ -n "$pUsers" ] ; then
+ PBI_BUILD_USERS="$PBI_BUILD_USERS $pUsers"
+ fi
+ if [ -n "$pGroups" ] ; then
+ PBI_BUILD_GROUPS="$PBI_BUILD_GROUPS $pGroups"
+ fi
+
return 0
fi
# Lets do old-fashioned build
- # KPM! ##############
- # We will need to revisit this portion later, see if we can
- # grab the user / group list from pkgng installed packages
-
# Save any users / groups we need to create later
local pUsers="`make -V USERS -C $_lPort PORTSDIR=${PORTSDIR}`"
local pGroups="`make -V GROUPS -C $_lPort PORTSDIR=${PORTSDIR}`"

0 comments on commit 20590e3

Please sign in to comment.