aboutsummaryrefslogtreecommitdiff
path: root/www/apache13-modssl
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-10-22 18:05:33 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-10-22 18:05:33 +0000
commit0de4e871688ad48ea7a3ce978051d4dd043386ce (patch)
tree320f00d1192ebea39310e210106c9cbcc18311d4 /www/apache13-modssl
parent722b01af2bcea84da4f8b34ff39af059f389604d (diff)
downloadports-0de4e871688ad48ea7a3ce978051d4dd043386ce.tar.gz
ports-0de4e871688ad48ea7a3ce978051d4dd043386ce.zip
Notes
Diffstat (limited to 'www/apache13-modssl')
-rw-r--r--www/apache13-modssl/pkg-deinstall20
-rw-r--r--www/apache13-modssl/pkg-install34
2 files changed, 54 insertions, 0 deletions
diff --git a/www/apache13-modssl/pkg-deinstall b/www/apache13-modssl/pkg-deinstall
new file mode 100644
index 000000000000..b9f633379f21
--- /dev/null
+++ b/www/apache13-modssl/pkg-deinstall
@@ -0,0 +1,20 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/www/apache13-modssl/Attic/pkg-deinstall,v 1.1 2001-10-22 18:05:33 ache Exp $
+#
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+USER=www
+
+if pw usershow "${USER}" 2>/dev/null 1>&2; then
+ if pw userdel ${USER}; then
+ echo "Delete user/group \"${USER}\"."
+ else
+ echo "Deleting user/group \"${USER}\" failed..."
+ exit 1
+ fi
+fi
+
+exit 0
diff --git a/www/apache13-modssl/pkg-install b/www/apache13-modssl/pkg-install
new file mode 100644
index 000000000000..d94362792091
--- /dev/null
+++ b/www/apache13-modssl/pkg-install
@@ -0,0 +1,34 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/www/apache13-modssl/Attic/pkg-install,v 1.1 2001-10-22 18:05:33 ache Exp $
+#
+
+if [ "$2" != "PRE-INSTALL" ]; then
+ exit 0
+fi
+
+USER=www
+GROUP=${USER}
+UID=80
+GID=${UID}
+
+if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+fi
+
+if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -s "/sbin/nologin" -d "/nonexistent" \
+ -c "World Wide Web Owner"; \
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+fi
+exit 0