1 # arg 1: the new package version
3 getent group smsd >/dev/null 2>&1 || groupadd smsd
4 if getent passwd smsd >/dev/null 2>&1; then
5 usr/sbin/usermod -d /var/spool/sms -c 'SMS Gateway Daemon' \
6 -s /sbin/nologin smsd >/dev/null 2>&1
8 usr/sbin/useradd -c 'SMS Gateway Daemon' -g smsd \
9 -d /var/spool/sms -s /sbin/nologin smsd >/dev/null 2>&1
11 groupmems -g uucp -a smsd >/dev/null 2>&1
12 passwd -l smsd >/dev/null 2>&1
13 chown root:smsd $pkgdir/var/spool/sms
14 chmod -R 0750 $pkgdir/var/spool/sms
15 chown smsd:smsd $pkgdir/var/spool/sms/*
16 chmod -R 0770 $pkgdir/var/spool/sms/*
17 chown root:smsd $pkgdir/var/log/smsd
18 chmod -R 0770 $pkgdir/var/log/smsd
19 chown smsd:smsd $pkgdir/var/run/smsd
22 # arg 1: the new package version
23 # arg 2: the old package version
28 # arg 1: the old package version
30 getent passwd smsd >/dev/null 2>&1 && userdel smsd