summaryrefslogtreecommitdiff
path: root/data/netatalk/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/netatalk/make.sh')
-rw-r--r--data/netatalk/make.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/netatalk/make.sh b/data/netatalk/make.sh
index 7aab2d8de..0d18da926 100644
--- a/data/netatalk/make.sh
+++ b/data/netatalk/make.sh
@@ -2,5 +2,21 @@ pkg:setup
AR=$(which "${PKG_TARG}-ar") pkg:configure --enable-cups=no --sysconfdir=/etc
make
pkg:install
+
+pkg: mkdir -p /usr/libexec
+pkg: cp -a %/afpd-dns-sd /usr/libexec
+
pkg: mkdir -p /System/Library/LaunchDaemons
+pkg: cp -a %/com.saurik.afpd.dns-sd.plist /System/Library/LaunchDaemons
pkg: cp -a %/net.sourceforge.netatalk.afpd.plist /System/Library/LaunchDaemons
+
+{
+ pkg: grep '^#' /etc/netatalk/AppleVolumes.default
+ echo '~ home'
+ echo '/ root'
+} >AppleVolumes.default
+
+chmod --reference="${PKG_DEST}/etc/netatalk/AppleVolumes.default" AppleVolumes.default
+chown --reference="${PKG_DEST}/etc/netatalk/AppleVolumes.default" AppleVolumes.default
+
+pkg: mv AppleVolumes.default /etc/netatalk/AppleVolumes.default