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
|
2012-07-24 03:24:40 +00:00
|
|
|
pkgver=3.0
|
2012-09-25 22:57:35 +00:00
|
|
|
pkgrel=4
|
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')
|
2012-07-24 03:24:40 +00:00
|
|
|
backup=('etc/afp.conf')
|
2012-04-15 16:58:08 +00:00
|
|
|
options=('!libtool')
|
|
|
|
install=$pkgname.install
|
|
|
|
changelog=$pkgname.changelog
|
2012-07-24 03:24:40 +00:00
|
|
|
source=(netatalk.rc http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
|
|
|
|
md5sums=('5e92015b0d9ac77af4b598cca6cb435c'
|
|
|
|
'62eb034011bb60b0bfd95072af3693dc')
|
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...'
|
2012-07-24 03:24:40 +00:00
|
|
|
sed -i 's/x"linux/x"generic/' macros/netatalk.m4
|
|
|
|
autoreconf &>/dev/null
|
|
|
|
echo -e "all:\ninstall:">libevent/Makefile
|
2012-04-15 16:58:08 +00:00
|
|
|
msg2 'Configuring...'
|
2012-07-24 03:24:40 +00:00
|
|
|
CFLAGS="-Wno-unused-result" LIBS=-levent ./configure --prefix=/usr --localstatedir=/etc --sysconfdir=/etc \
|
2012-09-25 22:57:35 +00:00
|
|
|
--disable-bundled-libevent --with-cracklib --with-cnid-cdb-backend --enable-pgp-uam --with-init-style=systemd
|
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
|
|
|
|
msg2 'Copying initscripts...'
|
2012-05-07 01:58:33 +00:00
|
|
|
install -D -m755 "$srcdir"/netatalk.rc "$pkgdir"/etc/rc.d/netatalk
|
2012-04-23 01:03:37 +00:00
|
|
|
}
|