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-02-02 00:03:21 +00:00
|
|
|
pkgver=3.0.2
|
|
|
|
pkgrel=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')
|
2012-07-24 03:24:40 +00:00
|
|
|
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3' 'libevent')
|
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
|
2012-10-13 22:31:26 +00:00
|
|
|
source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
|
2013-02-02 00:03:21 +00:00
|
|
|
md5sums=('b5f1c2c4b3a5e64f5bca219415aa1c75')
|
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-02-02 00:03:21 +00:00
|
|
|
sed -i -e 's:AC_CONFIG_SUBDIRS:#AC_CONFIG_SUBDIRS:' -e 's/x"linux/x"generic/' macros/netatalk.m4
|
2012-10-13 22:31:26 +00:00
|
|
|
sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}
|
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...'
|
2012-10-13 22:31:26 +00:00
|
|
|
CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var/state --sysconfdir=/etc --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
|
|
|
}
|