summaryrefslogtreecommitdiff
path: root/net/netatalk/INSTALL
blob: 6c8308887edb4954576609685c8185bf7dd0d070 (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.3 2002/09/30 02:07:02 taca 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