mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
7523667d46
but this ought to work at least as well as previous versions of the port.
20 lines
368 B
Bash
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
|