diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2009-12-29 02:48:41 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2009-12-29 02:48:41 +0800 |
commit | 37a1c19dcd9f82a2f2efa67df5413fcb611a6d5f (patch) | |
tree | 9555ec86e2dcfd7fd5c999ba216d760db77e8905 /mail | |
parent | c46dcee2ab5b31aadad35f58094af45624633f80 (diff) | |
download | freebsd-ports-gnome-37a1c19dcd9f82a2f2efa67df5413fcb611a6d5f.tar.gz freebsd-ports-gnome-37a1c19dcd9f82a2f2efa67df5413fcb611a6d5f.tar.zst freebsd-ports-gnome-37a1c19dcd9f82a2f2efa67df5413fcb611a6d5f.zip |
- Missed a file add
Reported by: pointyhat via miwi
Diffstat (limited to 'mail')
-rw-r--r-- | mail/quickml/files/pkg-install.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/quickml/files/pkg-install.in b/mail/quickml/files/pkg-install.in new file mode 100644 index 000000000000..81d2623f3368 --- /dev/null +++ b/mail/quickml/files/pkg-install.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD: /tmp/pcvs/ports/mail/quickml/files/Attic/pkg-install.in,v 1.1 2009-12-28 18:48:41 pgollucci Exp $ +# + +PATH=/bin:/usr/bin:/usr/sbin + +case $2 in + +PRE-INSTALL) + echo "---> Starting pre-install script:" + + if pw showgroup "%%GROUP%%" 2>/dev/null; then + echo "---> Using existing group \"%%GROUP%%\"" + else + echo "---> Adding group \"%%GROUP%%\"" + pw addgroup %%GROUP%% -g 109 -h - || exit 1 + fi + + # Create user if required + if pw showuser "%%USER%%" 2>/dev/null; then + echo "---> Using existing user \"%%USER%%\"" + else + echo "---> Adding user \"%%USER%%\"" + pw adduser %%USER%% -u 109 -g %%GROUP%% -h - \ + -d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1 + fi + + ;; + +esac |