aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gnokii/pkg-install
blob: a5434dd5022f63fa41389a13a78ce6feac225df8 (plain) (blame)
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 gnokii $BINS
    chmod 750 ${BINS}
    chmod u+s ${SUIDBINS}
    ;;

esac