summaryrefslogtreecommitdiff
path: root/net/generic-nqs/scripts/fix-PLIST.mktmp.sh
blob: 2a70066fc11034f607ab1760675304cf052ddf36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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