summaryrefslogtreecommitdiff
path: root/social/netatalk/netatalk.install
blob: a385add1070e47af472fdfcf919512aeb2ac584a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
	post_upgrade
}
post_upgrade() {
	if [ "`grep -E '(cnid|atalkd|afpd)' /etc/rc.conf`" ];then
	echo '>>> Detected old netatalk daemon entries in';
	echo '>>> /etc/rc.conf, please replace these with';
	echo '>>> "netatalk" before restarting!';
	else echo '>>> Add "netatalk" to your DAEMONS list in /etc/rc.conf';fi
	echo '>>>';
	if [ -f /etc/avahi/services/adisk.service ] ||
	[ -f /etc/avahi/services/afpd.service ];then
	echo '>>> Detected old netatalk service files in';
	echo '>>> /etc/avahi/services, please delete these';
	echo '>>> before restarting!';fi
	if [ -f /opt/netatalk/afp_signature.conf ] ||
	[ -f /opt/netatalk/afp_voluuid.conf ]; then
	echo '>>> Found *.conf in /opt/netatalk, please';
	echo '>>> migrate these to /etc/netatalk before restarting';fi
}
pre_remove() {
	rc.d stop netatalk
}