diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-09-20 14:41:30 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-09-20 14:41:30 -0300 |
commit | ffc0a61a2b0b77c06b581c20e1d6241e7e0d04cd (patch) | |
tree | c4f9ebb2a2c8c2cf00b80097600d5cfe507eb865 /social/netatalk/PKGBUILD | |
parent | f9e0f79bdd41d822c22688513f68e30ebb4d4003 (diff) | |
download | abslibre-ffc0a61a2b0b77c06b581c20e1d6241e7e0d04cd.tar.gz abslibre-ffc0a61a2b0b77c06b581c20e1d6241e7e0d04cd.tar.bz2 abslibre-ffc0a61a2b0b77c06b581c20e1d6241e7e0d04cd.zip |
Added netatalk from AUR
Diffstat (limited to 'social/netatalk/PKGBUILD')
-rw-r--r-- | social/netatalk/PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/social/netatalk/PKGBUILD b/social/netatalk/PKGBUILD new file mode 100644 index 000000000..98e64982d --- /dev/null +++ b/social/netatalk/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: SJ_UnderWater +# Maintainer (Parabola): fauno@parabola.nu +# Based on netatalk package : +# Maintainer: Dominik Dingel <mail at wodar dot de> +# Contributor: William Udovich <nerdzrule7 at earthlink dot net> +# Contributor: Farhan Yousaf <farhany at xaviya dot com> + +pkgname=netatalk +pkgver=3.0 +pkgrel=4 +pkgdesc='Open Source AFP fileserver' +arch=('i686' 'x86_64') +url='http://netatalk.sourceforge.net' +license=('GPL') +depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent') +backup=('etc/afp.conf') +options=('!libtool') +install=$pkgname.install +changelog=$pkgname.changelog +source=(netatalk.rc http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) +md5sums=('5e92015b0d9ac77af4b598cca6cb435c' + '62eb034011bb60b0bfd95072af3693dc') + +build() { + cd $pkgname-$pkgver + +# TODO what does this fix? + msg2 'Fixing...' + sed -i 's/x"linux/x"generic/' macros/netatalk.m4 + + autoreconf + +# disable bundled libevent + echo -e "all:\ninstall:" >libevent/Makefile + + CFLAGS="-Wno-unused-result" \ + LIBS=-levent \ + ./configure --prefix=/usr \ + --disable-static \ + --localstatedir=/etc \ + --sysconfdir=/etc \ + --disable-bundled-libevent \ + --with-cracklib \ + --with-cnid-cdb-backend \ + --enable-pgp-uam \ + --with-init-style=systemd + + make +} +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install + + msg2 'Copying initscripts...' + install -D -m755 "$srcdir"/netatalk.rc "$pkgdir"/etc/rc.d/netatalk +} |