1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/net-mgmt/nav/pkg-install
Dag-Erling Smørgrav 7523667d46 Upgrade to 3.2.1. There is still some work to be done wrt. auto-config,
but this ought to work at least as well as previous versions of the port.
2007-03-28 06:53:11 +00:00

20 lines
368 B
Bash

#! /bin/sh
case "$2" in
PRE-INSTALL)
set -e
if ! pw groupshow nav >/dev/null 2>&1 ; then
pw groupadd nav -g 127
fi
if ! pw usershow navcron >/dev/null 2>&1 ; then
pw useradd navcron -u 127 -g nav -h - \
-d ${PKG_PREFIX}/nav -s /sbin/nologin \
-c 'Network Administration Visualized'
fi
;;
DEINSTALL)
pw userdel navcron
pw groupdel nav
;;
esac