aboutsummaryrefslogtreecommitdiffstats
path: root/net/samba36/files/pkg-install.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba36/files/pkg-install.in')
-rw-r--r--net/samba36/files/pkg-install.in44
1 files changed, 0 insertions, 44 deletions
diff --git a/net/samba36/files/pkg-install.in b/net/samba36/files/pkg-install.in
deleted file mode 100644
index d9d9279e7da0..000000000000
--- a/net/samba36/files/pkg-install.in
+++ /dev/null
@@ -1,44 +0,0 @@
-#! /bin/sh
-#
-PATH=/bin:/usr/sbin:/usr/bin:/usr/sbin
-
-EXAMPLESDIR="%%EXAMPLESDIR%%"
-SAMBA_CONFIG="%%SAMBA_CONFIG%%"
-SAMBA_CONFDIR="%%SAMBA_CONFDIR%%"
-SAMBA_SPOOL="%%SAMBA_SPOOL%%"
-SAMBA_LOGDIR="%%SAMBA_LOGDIR%%"
-SAMBA_RUNDIR="%%SAMBA_RUNDIR%%"
-SAMBA_LOCKDIR="%%SAMBA_LOCKDIR%%"
-SAMBA_PRIVATEDIR="%%SAMBA_PRIVATEDIR%%"
-SAMBA_OWNER=root
-SAMBA_GROUP=wheel
-INSTALL_DATA="install -c -m 0444"
-MKDIR="mkdir -p"
-CHMOD="chmod"
-CHOWN="chown"
-
-post-install() {
- ${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL}
- ${MKDIR} ${SAMBA_LOGDIR} && ${CHMOD} 0755 ${SAMBA_LOGDIR}
- ${MKDIR} ${SAMBA_RUNDIR} && ${CHMOD} 0755 ${SAMBA_RUNDIR}
- ${MKDIR} ${SAMBA_LOCKDIR} && ${CHMOD} 0755 ${SAMBA_LOCKDIR}
- ${MKDIR} ${SAMBA_PRIVATEDIR} && ${CHMOD} 0700 ${SAMBA_PRIVATEDIR}
- if [ $(id -u) -eq 0 ]; then
- INSTALL_DATA="${INSTALL_DATA} -o ${SAMBA_OWNER} -g ${SAMBA_GROUP}"
- ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_SPOOL}
- ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_LOGDIR}
- ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_RUNDIR}
- ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_LOCKDIR}
- ${CHOWN} ${SAMBA_OWNER}:${SAMBA_GROUP} ${SAMBA_PRIVATEDIR}
- fi
- ${INSTALL_DATA} ${EXAMPLESDIR}/${SAMBA_CONFIG}.sample ${SAMBA_CONFDIR}
- if [ ! -f ${SAMBA_CONFDIR}/${SAMBA_CONFIG} ]; then
- ${INSTALL_DATA} ${EXAMPLESDIR}/${SAMBA_CONFIG}.sample ${SAMBA_CONFDIR}/${SAMBA_CONFIG}
- fi
-}
-
-case $2 in
- POST-INSTALL)
- post-install
- ;;
-esac