mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
e3a9cd8e0a
PR: 220978 Submitted by: kai Reported by: mi@ALDAN.algebra.com Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D20155
23 lines
590 B
Bash
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
|