summaryrefslogtreecommitdiff
path: root/pcr/netatalk/netatalk.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-16 00:18:10 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-16 00:18:10 -0500
commit0174f5578fd28a78c48e99e1730fdae27c0fdb1b (patch)
treea5a2e7697ed94031e7226f7adb508716f3c4b953 /pcr/netatalk/netatalk.install
parent49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 (diff)
downloadabslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.tar.gz
abslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.tar.bz2
abslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.zip
Adding packages to pcr
Diffstat (limited to 'pcr/netatalk/netatalk.install')
-rw-r--r--pcr/netatalk/netatalk.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/pcr/netatalk/netatalk.install b/pcr/netatalk/netatalk.install
new file mode 100644
index 000000000..629586531
--- /dev/null
+++ b/pcr/netatalk/netatalk.install
@@ -0,0 +1,20 @@
+post_install() {
+ post_upgrade
+}
+post_upgrade() {
+ if [ -f /etc/rc.conf ] && [ "`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';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
+}