summaryrefslogtreecommitdiff
path: root/data/netatalk/make.sh
blob: 0d18da92676e3dfcf002554542f320fb35096328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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