Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151043989
D50173.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D50173.id.diff
View Options
diff --git a/release/scripts/pkg-stage.sh b/release/scripts/pkg-stage.sh
--- a/release/scripts/pkg-stage.sh
+++ b/release/scripts/pkg-stage.sh
@@ -4,12 +4,13 @@
set -e
+unset NO_ROOT
+
export ASSUME_ALWAYS_YES="YES"
export PKG_DBDIR="/tmp/pkg"
export PERMISSIVE="YES"
export REPO_AUTOUPDATE="NO"
export ROOTDIR="$PWD/dvd"
-export PKGCMD="/usr/sbin/pkg -d --rootdir ${ROOTDIR}"
export PORTSDIR="${PORTSDIR:-/usr/ports}"
_DVD_PACKAGES="
@@ -45,6 +46,25 @@
exit 0
fi
+usage()
+{
+ echo "usage: $0 [-N]"
+ exit 0
+}
+
+while getopts N opt; do
+ case "$opt" in
+ N) NO_ROOT=1 ;;
+ *) usage ;;
+ esac
+done
+
+PKG_ARGS="-d --rootdir ${ROOTDIR}"
+if [ $NO_ROOT ]; then
+ PKG_ARGS="$PKG_ARGS -o INSTALL_AS_USER=1"
+fi
+PKGCMD="/usr/sbin/pkg ${PKG_ARGS}"
+
if [ ! -x /usr/local/sbin/pkg ]; then
/etc/rc.d/ldconfig restart
/usr/bin/make -C ${PORTSDIR}/ports-mgmt/pkg install clean
@@ -91,5 +111,10 @@
${PKGCMD} repo ${PKG_REPODIR}
+if [ $NO_ROOT ]; then
+ mtree -c -p $ROOTDIR | mtree -C -k type,mode,link,size | \
+ grep '^./packages/' >> $ROOTDIR/METALOG
+fi
+
# Always exit '0', even if pkg(8) complains about conflicts.
exit 0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 6, 3:17 PM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30979981
Default Alt Text
D50173.id.diff (1 KB)
Attached To
Mode
D50173: release/pkg-stage: Support non-root release artifact builds
Attached
Detach File
Event Timeline
Log In to Comment