blob: d8f2894ac175a954eee24a4f56511bc94b596a22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/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
|