freebsd-ports/net-mgmt/ifgraph/files/pkg-install.in
Lars Thegler bd8e224a09 Use the USERS/GROUPS mechanism
PR:		ports/148320
Submitted by:	Bapt <baptiste.daroussin@gmail.com>
2010-08-12 13:20:34 +00:00

24 lines
473 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net-mgmt/ifgraph/files/pkg-install.in,v 1.2 2010-08-12 13:20:34 lth Exp $
#
PATH=/bin:/usr/bin:/usr/sbin
case $2 in
POST-INSTALL)
echo "---> Starting post-install script:"
if [ -z "%%USER%%" -o \
-z "%%PREFIX%%" ]; then
echo "ERROR: A required pragma was empty"
exit 1
fi
echo "---> Creating crontab(5) file for user \"%%USER%%\""
crontab -u "%%USER%%" "%%PREFIX%%/ifgraph/crontab" || exit 1
;;
esac