1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/dcc-dccd/files/pkg-install.in
Piotr Kubaj e3a9cd8e0a mail/dcc-dccd: update to 2.3.164, use /var/db/dcc instead of /var/db, various cleanups
PR:		220978
Submitted by:	kai
Reported by:	mi@ALDAN.algebra.com
Approved by:	mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D20155
2019-06-10 20:04:46 +00:00

23 lines
590 B
Bash

#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/mail/dcc-dccd/files/pkg-install.in,v 1.2 2011-07-04 19:39:45 crees Exp $
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
DCCDATA=%%DCCDATA%%
DCCUSER=%%DCCUSER%%
if [ "$2" = "POST-INSTALL" ]; then
/bin/sh $PREFIX/libexec/fix-map \
-n .nopasswd \
-I $DCCDATA/ids.nopasswd -i $DCCHOME/ids \
-T $DCCDATA/map.txt.nopasswd -t $DCCHOME/map.txt \
-m $DCCDATA/map
for file in ids map map.txt ; do
/bin/cp -p $DCCDATA/$file $DCCDATA/${file}.nopasswd
/usr/sbin/chown $DCCUSER $DCCDATA/${file} $DCCDATA/${file}.nopasswd
done
fi
exit 0