summaryrefslogtreecommitdiff
path: root/pcr/netatalk/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-16 00:07:09 -0800
committerroot <root@rshg054.dnsready.net>2013-02-16 00:07:09 -0800
commit4a4f6be8604aa35bdc81ae29d86b07dc8aea0c5c (patch)
tree41f9694a761d6e5637f15f9f9241e5b84cd8897b /pcr/netatalk/PKGBUILD
parent067830244f6b16cb094a59e5ca8fa262bd66a2ec (diff)
Sat Feb 16 00:07:08 PST 2013
Diffstat (limited to 'pcr/netatalk/PKGBUILD')
-rw-r--r--pcr/netatalk/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/netatalk/PKGBUILD b/pcr/netatalk/PKGBUILD
new file mode 100644
index 000000000..e3d5b265e
--- /dev/null
+++ b/pcr/netatalk/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: SJ_UnderWater
+# 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.2
+pkgrel=1
+pkgdesc='A kernel-level implementation of AFP services'
+arch=('i686' 'x86_64' 'mips64el')
+url='http://netatalk.sourceforge.net'
+license=('GPL')
+depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent')
+replaces=('netatalk-git' 'netatalk2')
+backup=('etc/afp.conf'
+ 'etc/extmap.conf')
+options=('!libtool')
+install=$pkgname.install
+changelog=$pkgname.changelog
+source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
+md5sums=('b5f1c2c4b3a5e64f5bca219415aa1c75')
+
+build() {
+ cd $pkgname-$pkgver
+ msg2 'Fixing...'
+ sed -i -e 's:AC_CONFIG_SUBDIRS:#AC_CONFIG_SUBDIRS:' -e 's/x"linux/x"generic/' macros/netatalk.m4
+ sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}
+ sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' {configure.ac,libevent/configure.in}
+ cp /usr/share/automake*/missing .
+ autoreconf -i >/dev/null
+ msg2 'Configuring...'
+ CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --with-init-style=systemd \
+ --with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-libevent=no
+ sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile
+ msg2 'Making...'
+ make >/dev/null
+}
+package() {
+ cd $pkgname-$pkgver
+ msg2 'Building...'
+ make DESTDIR="$pkgdir" install >/dev/null
+}