summaryrefslogtreecommitdiff
path: root/net/netatalk/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'net/netatalk/INSTALL')
-rw-r--r--net/netatalk/INSTALL69
1 files changed, 69 insertions, 0 deletions
diff --git a/net/netatalk/INSTALL b/net/netatalk/INSTALL
new file mode 100644
index 00000000000..305df6e231c
--- /dev/null
+++ b/net/netatalk/INSTALL
@@ -0,0 +1,69 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1 2001/10/31 22:56:34 zuntum Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+POST-INSTALL)
+ ETCDIR=/etc/netatalk
+
+ mkdir -p ${ETCDIR}
+
+ # The idea is to copy old config files over to the new location if
+ # they exist. Otherwise, copy the default config from the examples
+ # directory.
+ #
+ if [ -f ${PKG_PREFIX}/etc/atalkd.conf ]
+ then
+ for file in \
+ AppleVolumes.default \
+ AppleVolumes.system \
+ atalkd.conf \
+ papd.conf
+ do
+ if [ ! -f ${ETCDIR}/${file} -a -f ${PKG_PREFIX}/etc/${file} ]
+ then
+ echo " ${ETCDIR}/${file}"
+ cp ${PKG_PREFIX}/etc/${file} ${ETCDIR}/${file}
+ chmod 644 ${ETCDIR}/${file}
+ fi
+ done
+ echo "done."
+ cat << EOF
+===========================================================================
+Old configuration files were copied from ${PKG_PREFIX}/etc to
+${ETCDIR}. You may want to remove the old files as they are no
+longer necessary.
+===========================================================================
+EOF
+ else
+ echo "Installing configuration files:"
+ for file in \
+ AppleVolumes.default \
+ AppleVolumes.system \
+ atalkd.conf \
+ papd.conf
+ do
+ if [ -f ${ETCDIR}/${file} ]
+ then
+ echo " ${ETCDIR}/${file} already exists"
+ else
+ echo " ${ETCDIR}/${file}"
+ cp ${PKG_PREFIX}/share/examples/netatalk/${file} \
+ ${ETCDIR}/${file}
+ chmod 644 ${ETCDIR}/${file}
+ fi
+ done
+ echo "done."
+ fi
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0