summaryrefslogtreecommitdiff
path: root/social/netatalk/PKGBUILD
blob: 7e2fe14aa902c514e588b2ca5cc6eeb9b52ad36e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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.1
pkgrel=1
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
}
md5sums=('5e92015b0d9ac77af4b598cca6cb435c'
         'b4f5c932b2ca99f5292bd6b6d69b3ebc')