35 lines
645 B
Text
35 lines
645 B
Text
#!/bin/sh
|
|
#
|
|
# $NetBSD: INSTALL,v 1.4 2003/05/06 17:42:13 jmmv Exp $
|
|
|
|
case ${STAGE} in
|
|
PRE-INSTALL)
|
|
;;
|
|
POST-INSTALL)
|
|
ETCDIR=@PKG_SYSCONFDIR@/netatalk
|
|
|
|
mkdir -p ${ETCDIR}
|
|
|
|
echo "Installing configuration files:"
|
|
for file in \
|
|
AppleVolumes.default AppleVolumes.system afpd.conf \
|
|
atalkd.conf netatalk.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."
|
|
;;
|
|
*)
|
|
echo "Unexpected argument: ${STAGE}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|