# Maintainer: SJ_UnderWater # Based on netatalk package : # Maintainer: Dominik Dingel # Contributor: William Udovich # Contributor: Farhan Yousaf plugrel=1 pkgname=netatalk true && pkgname=('netatalk' 'netatalk-ddp') pkgver=2.2.2 pkgrel=4 pkgdesc='A kernel-level implementation of AppleTalk, AFP, and PAP services' arch=('i686' 'x86_64') url='http://netatalk.sourceforge.net' license=('GPL') depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3') replaces=('netatalk-git' 'netatalk2') backup=('etc/netatalk/afpd.conf' 'etc/netatalk/afp_ldap.conf' 'etc/netatalk/netatalk.conf' 'etc/netatalk/AppleVolumes.default' 'etc/netatalk/AppleVolumes.system') options=('!libtool') install=$pkgname.install changelog=$pkgname.changelog source=(a2boot afpd atalkd cnid_metad netatalk papd timelord \ http://hivelocity.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) md5sums=('747f0f3870fc0472fff5d502acd83fda' '3b936b466b00a479aadb32df60960538' '14dd9d43125eec9be438e4474b271ff0' '1eb353a1e0581f9d764826a2f2d9b6f2' 'c89d35e5ea67edfd08ebfccb306f6c47' 'd8fa2b290cac33b4de77a7b69ef03db9' '80299f81b0413329479073fe02e85de5' 'bd42b686ec7209d9ab47bd8e2e2431c4') _options='--disable-ddp --disable-srvloc --disable-timelord --disable-cups --disable-a2boot' _depddp=('openslp' 'libcups' 'libgcrypt>=1.2.3') build() { if [ "$pkgname" = "netatalk-ddp" ];then resolve_deps ${_depddp[@]} _options=`echo $_options | sed s/disable/enable/g`;fi cd "$srcdir"/$pkgbase-$pkgver msg2 'Configuring...' CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var --libexecdir='${libdir}' \ --with-cracklib --with-cnid-cdb-backend --enable-fhs $_options msg2 'Making...' make >/dev/null echo $pkgname >made } package() { cd "$srcdir"/$pkgbase-$pkgver if [ -f made ];then rm made;else continue;fi msg2 'Building...' make DESTDIR="$pkgdir" install >/dev/null msg2 'Copying initscripts...' install -d "$pkgdir"/etc/rc.d install -m755 "$srcdir"/{a2boot,atalkd,afpd,cnid_metad,netatalk,papd,timelord} "$pkgdir"/etc/rc.d msg2 'Removing extraneous files...' rm -r "$pkgdir"/usr/include "$pkgdir"/usr/share/aclocal } package_netatalk() { package rm "$pkgdir"/usr/share/man/man8/timelord.8 "$pkgdir"/etc/rc.d/{a2boot,atalkd,papd,timelord} rmdir "$pkgdir"/usr/share/man/man3 "$pkgdir"/usr/share/man/man4 } package_netatalk-ddp() { package optdepends=('cups: required for PAP support') backup+=('etc/netatalk/atalkd.conf' 'etc/netatalk/papd.conf' 'etc/pam.d/netatalk') conflicts=('netatalk');provides=(${conflicts[@]});depends=(${_depddp[@]}) }