# Contributor: Alexander Rigbo # Maintainer: Alexander Rigbo pkgname=netatalk pkgver=3.1.10 pkgrel=0 pkgdesc="Netatalk is a freely-available Open Source AFP fileserver" url="http://netatalk.sourceforge.net/" arch="all" license="GPL2" makedepends="acl-dev attr-dev db-dev libevent-dev libgcrypt-dev tdb-dev" subpackages="$pkgname-doc $pkgname-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz netatalk.initd" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-silent-rules \ --disable-zeroconf \ --disable-tcp-wrappers \ --enable-overwrite \ --without-libiconv \ --without-pam \ --without-shadow \ --without-kerberos \ --without-ldap \ --with-acls \ --without-libevent \ --with-libevent-header=/usr/include \ --with-libevent-lib=/usr/lib \ --with-bdb=/usr \ --without-tdb \ --without-dtrace \ --without-afpstats \ --with-lockfile=/run \ || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 # We don't build with dbug support. rm "$pkgdir"/etc/dbus-session.conf rm "$pkgdir"/usr/bin/afpstats install -m 755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 } sha512sums="002aacc87778cd88ce544b69fc44052f32d07fce34858b20e760e771700d10552189a39a43943b193e22737de74e9be6934bf4c54d3207b615a1ceb4ecaf9a9e netatalk-3.1.10.tar.gz c4dc6b1967f4b86ee2f1cfc480edab5467fb1f67fd0cbbed23c8454568d0aaceeedaa23db90f8ca5b47f24d346f72d5e12307557edfeeefcbee003f85c56cced netatalk.initd"