summaryrefslogtreecommitdiff
path: root/security/pks/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'security/pks/INSTALL')
-rw-r--r--security/pks/INSTALL30
1 files changed, 30 insertions, 0 deletions
diff --git a/security/pks/INSTALL b/security/pks/INSTALL
new file mode 100644
index 00000000000..b9484e800bb
--- /dev/null
+++ b/security/pks/INSTALL
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2001/11/01 01:17:32 zuntum Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+POST-INSTALL)
+ DBDIR=/var/pks/db
+ MAILDIR=/var/pks/incoming
+ EXAMPLE_DIR=${PKG_PREFIX}/share/examples
+ INSTALL_DATA="/usr/bin/install -c -o root -g wheel -m 0644"
+
+ mkdir -p ${DBDIR} ${MAILDIR}
+
+ if [ ! -f /etc/pksd.conf ]
+ then
+ echo "Installing example pksd.conf as /etc/pksd.conf."
+ ${INSTALL_DATA} ${EXAMPLE_DIR}/pksd.conf /etc/pksd.conf
+ fi
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0