2012-04-15 16:58:08 +00:00
|
|
|
# Maintainer: SJ_UnderWater
|
|
|
|
# Based on netatalk package :
|
|
|
|
# Maintainer: Dominik Dingel <mail at wodar dot de>
|
2011-01-27 02:03:22 +00:00
|
|
|
# Contributor: William Udovich <nerdzrule7 at earthlink dot net>
|
|
|
|
# Contributor: Farhan Yousaf <farhany at xaviya dot com>
|
|
|
|
|
2012-04-23 01:03:37 +00:00
|
|
|
pkgname=netatalk
|
2013-11-16 18:40:58 +00:00
|
|
|
pkgver=3.1.0
|
2014-01-21 09:59:13 +00:00
|
|
|
pkgrel=1.1
|
2012-07-24 03:24:40 +00:00
|
|
|
pkgdesc='A kernel-level implementation of AFP services'
|
2011-01-27 02:03:22 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2012-04-15 16:58:08 +00:00
|
|
|
url='http://netatalk.sourceforge.net'
|
|
|
|
license=('GPL')
|
2013-06-04 12:55:20 +00:00
|
|
|
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent' 'python' 'dbus-glib')
|
2012-04-15 16:58:08 +00:00
|
|
|
replaces=('netatalk-git' 'netatalk2')
|
2013-02-02 00:03:21 +00:00
|
|
|
backup=('etc/afp.conf'
|
|
|
|
'etc/extmap.conf')
|
2012-04-15 16:58:08 +00:00
|
|
|
options=('!libtool')
|
|
|
|
install=$pkgname.install
|
|
|
|
changelog=$pkgname.changelog
|
2013-11-16 18:40:58 +00:00
|
|
|
source=(http://softlayer-dal.dl.sourceforge.net/project/$pkgname/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
|
|
|
|
md5sums=('30ae75457ed4d28ae1c8620d5579cd60')
|
2011-01-27 02:03:22 +00:00
|
|
|
|
|
|
|
build() {
|
2012-07-24 03:24:40 +00:00
|
|
|
cd $pkgname-$pkgver
|
2012-06-26 20:51:03 +00:00
|
|
|
msg2 'Fixing...'
|
2013-08-29 23:53:38 +00:00
|
|
|
: | tee test/afpd/Make*
|
2013-06-04 12:55:20 +00:00
|
|
|
sed -i -e 's:AX_CHECK_DOCBOOK:[AX_CHECK_DOCBOOK]:' -e 's:"/lib/systemd:"/usr/lib/systemd:' -e 's/x"linux/x"generic/' macros/netatalk.m4
|
2013-01-12 00:24:04 +00:00
|
|
|
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' {configure.ac,libevent/configure.in}
|
2013-02-02 00:03:21 +00:00
|
|
|
cp /usr/share/automake*/missing .
|
2013-01-12 00:24:04 +00:00
|
|
|
autoreconf -i >/dev/null
|
2012-04-15 16:58:08 +00:00
|
|
|
msg2 'Configuring...'
|
2013-06-04 12:55:20 +00:00
|
|
|
CFLAGS="-Wno-unused-result -O2" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --sbindir=/usr/bin --with-init-style=systemd \
|
2013-02-02 00:03:21 +00:00
|
|
|
--with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-libevent=no
|
2012-10-13 22:31:26 +00:00
|
|
|
sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile
|
2012-04-15 16:58:08 +00:00
|
|
|
msg2 'Making...'
|
|
|
|
make >/dev/null
|
|
|
|
}
|
2012-04-23 01:03:37 +00:00
|
|
|
package() {
|
2012-07-24 03:24:40 +00:00
|
|
|
cd $pkgname-$pkgver
|
2012-04-15 16:58:08 +00:00
|
|
|
msg2 'Building...'
|
|
|
|
make DESTDIR="$pkgdir" install >/dev/null
|
2012-04-23 01:03:37 +00:00
|
|
|
}
|