summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjlam <jlam>2000-05-02 15:25:18 +0000
committerjlam <jlam>2000-05-02 15:25:18 +0000
commit8ca2eb034f7e909f9b490d1ae22cf5e0d749ec74 (patch)
treea3efdde03ccd22ada20f71b268d42f84ddc9b022 /net
parent8a69f9ff65b02da66f1534c65f5faee49a29e968 (diff)
downloadpkgsrc-8ca2eb034f7e909f9b490d1ae22cf5e0d749ec74.tar.gz
Forgot these scripts, which break out some magic from the PLIST into
separate scripts.
Diffstat (limited to 'net')
-rw-r--r--net/samba/pkg/DEINSTALL30
-rw-r--r--net/samba/pkg/INSTALL29
2 files changed, 59 insertions, 0 deletions
diff --git a/net/samba/pkg/DEINSTALL b/net/samba/pkg/DEINSTALL
new file mode 100644
index 00000000000..8785fce39dc
--- /dev/null
+++ b/net/samba/pkg/DEINSTALL
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1 2000/05/02 15:25:18 jlam Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+SAMBA_PRIVATE=@SAMBA_PRIVATE@
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+POST-DEINSTALL)
+ REQUESTDIR=/var/spool/cups
+
+ cat << EOF
+===========================================================================
+If you won't be using ${PKGNAME} any longer, you may want to remove the
+following files:
+
+ ${SAMBA_PRIVATE}/smbpasswd
+===========================================================================
+EOF
+ ;;
+*)
+ echo "Unexpected argument: $2"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/net/samba/pkg/INSTALL b/net/samba/pkg/INSTALL
new file mode 100644
index 00000000000..b62bdb105cb
--- /dev/null
+++ b/net/samba/pkg/INSTALL
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2000/05/02 15:25:18 jlam Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+SAMBA_PRIVATE=@SAMBA_PRIVATE@
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+POST-INSTALL)
+ mkdir -p ${SAMBA_PRIVATE}
+ if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ]
+ then
+ chown -R root:wheel ${SAMBA_PRIVATE}
+ cat /etc/passwd | ${PKG_PREFIX}/bin/mksmbpasswd.sh \
+ >${SAMBA_PRIVATE}/smbpasswd
+ chmod 500 ${SAMBA_PRIVATE}
+ chmod 600 ${SAMBA_PRIVATE}/smbpasswd
+ fi
+ ;;
+*)
+ echo "Unexpected argument: $2"
+ exit 1
+ ;;
+esac
+exit 0