summaryrefslogtreecommitdiffstats
path: root/comms/gnokii/pkg-install
blob: 5764819d88824fc3a79bafd41a391b920a3b6fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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
OpenPOWER on IntegriCloud