mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-05 22:43:24 +00:00
22 lines
515 B
Bash
22 lines
515 B
Bash
|
#!/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
|