1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/generic-nqs/scripts/fix-PLIST.mktmp.sh

22 lines
515 B
Bash
Raw Normal View History

#!/bin/sh
#
# Where did they actually store the spool area?
# Check the NQS config file!
#
# Fortunately the ports system creates a temporary packing list that we can
# modify post-install before the install gets officially recorded.
#
PATH="/usr/bin:/bin"; export PATH
me=`basename $0`
if [ $# -lt 2 ]; then
echo usage: $me configfile workdir >&2
exit 1
fi
root=`grep NQS_ROOTPRIV $1 | cut -f2 -d\"`
mv $2/.PLIST.mktmp $2/.PLIST.mktmp.orig
sed -e"s#XXXX#$root#" $2/.PLIST.mktmp.orig > $2/.PLIST.mktmp