1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/generic-nqs/scripts/fix-PLIST.mktmp.sh
Steve Price 17353f3ac0 Update to version 3.50.6.
PR:		14915
Submitted by:	maintainer
1999-12-27 00:46:07 +00:00

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