PKGBUILDs/community/osec/osec.install
2009-10-09 21:15:33 -05:00

32 lines
564 B
Text

pre_install() {
/bin/true
}
post_install() {
groupadd osecgroup
useradd -G osecgroup -d /var/lib/osec osec
chown -R osec.osecgroup /var/lib/osec
echo "-- Use osec -D /var/lib/osec -u osec -g osecgroup -f /etc/osec/dirs.conf | osec_reporter"
}
pre_upgrade() {
/bin/true
}
post_upgrade() {
chown -R osec.osecgroup /var/lib/osec
echo "-- Use osec -D /var/lib/osec -u osec -g osecgroup -f /etc/osec/dirs.conf | osec_reporter"
}
pre_remove() {
/bin/true
}
post_remove() {
userdel osec
groupdel osecgroup
}
op=$1
shift
$op $*