diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-09-20 14:41:30 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-09-20 14:41:30 -0300 |
commit | ffc0a61a2b0b77c06b581c20e1d6241e7e0d04cd (patch) | |
tree | c4f9ebb2a2c8c2cf00b80097600d5cfe507eb865 /social/netatalk/netatalk.install | |
parent | f9e0f79bdd41d822c22688513f68e30ebb4d4003 (diff) |
Added netatalk from AUR
Diffstat (limited to 'social/netatalk/netatalk.install')
-rw-r--r-- | social/netatalk/netatalk.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/social/netatalk/netatalk.install b/social/netatalk/netatalk.install new file mode 100644 index 000000000..a385add10 --- /dev/null +++ b/social/netatalk/netatalk.install @@ -0,0 +1,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 +} |