1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/comms/gnokii/pkg-install
Rene Ladan b1b11d0887 Change this port to use the GROUPS variable
PR:		ports/157545
Submitted by:	Chris Rees [utisoft gmail com]
Approved by:	maintainer
2011-06-06 19:27:00 +00:00

20 lines
341 B
Bash

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
SUIDBINS="${PKG_PREFIX}/sbin/gnokiid ${PKG_PREFIX}/sbin/mgnokiidev"
BINS="${PKG_PREFIX}/bin/gnokii ${SUIDBINS}"
if [ -e ${PKG_PREFIX}/bin/xgnokii ]; then
BINS="$BINS ${PKG_PREFIX}/bin/xgnokii"
fi
case "$2" in
"POST-INSTALL")
chgrp $GROUP $BINS
chmod 750 ${BINS}
chmod u+s ${SUIDBINS}
;;
esac