diff options
author | zuntum <zuntum@pkgsrc.org> | 2001-10-31 22:52:58 +0000 |
---|---|---|
committer | zuntum <zuntum@pkgsrc.org> | 2001-10-31 22:52:58 +0000 |
commit | d038a73ebd432fae3ce355b84443038f88cb7199 (patch) | |
tree | b3c17888184b1b17ed1b1fa28f1697197bb0b4f6 /net/netatalk/INSTALL | |
parent | 70bae73d77e50256a2ee847bd9be11b761bcea01 (diff) | |
download | pkgsrc-d038a73ebd432fae3ce355b84443038f88cb7199.tar.gz |
Move pkg/ files into package's toplevel directory
Diffstat (limited to 'net/netatalk/INSTALL')
-rw-r--r-- | net/netatalk/INSTALL | 69 |
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 |