summaryrefslogtreecommitdiff
path: root/social/netatalk/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-11 13:55:47 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-11 13:55:47 -0300
commit57c4a12d7c00bb82275af154cbcdbb7ec871c57c (patch)
treef73ad0e05d6c569a03325363165c6664672b324a /social/netatalk/PKGBUILD
parenta82a20b31c92da07e81852b949f1a285a2264a58 (diff)
downloadabslibre-57c4a12d7c00bb82275af154cbcdbb7ec871c57c.tar.gz
abslibre-57c4a12d7c00bb82275af154cbcdbb7ec871c57c.tar.bz2
abslibre-57c4a12d7c00bb82275af154cbcdbb7ec871c57c.zip
Upgraded netatalk
Diffstat (limited to 'social/netatalk/PKGBUILD')
-rw-r--r--social/netatalk/PKGBUILD58
1 files changed, 26 insertions, 32 deletions
diff --git a/social/netatalk/PKGBUILD b/social/netatalk/PKGBUILD
index 7e2fe14aa..816174590 100644
--- a/social/netatalk/PKGBUILD
+++ b/social/netatalk/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=netatalk
pkgver=3.0.1
-pkgrel=1
+pkgrel=3
pkgdesc='Open Source AFP fileserver'
arch=('i686' 'x86_64')
url='http://netatalk.sourceforge.net'
@@ -17,42 +17,36 @@ 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')
+source=(http://iweb.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
+md5sums=('b4f5c932b2ca99f5292bd6b6d69b3ebc')
build() {
- cd $pkgname-$pkgver
+ 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
+ msg2 'Fixing...'
+ sed -i 's/x"linux/x"generic/' macros/netatalk.m4
+ sed -i 's:/lib:/usr/lib:' distrib/initscripts/Makefile.{am,in}
+
+ autoreconf
+
+ CFLAGS="-Wno-unused-result" \
+ ./configure --prefix=/usr \
+ --disable-static \
+ --localstatedir=/var/state \
+ --sysconfdir=/etc \
+ --with-init-style=systemd \
+ --with-cracklib \
+ --with-cnid-cdb-backend \
+ --enable-pgp-uam \
+ --without-libevent-header \
+ --without-libevent-lib
+
+ sed -i -e s/-Ino// -e s/-Lno// etc/netatalk/Makefile
+ make
}
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ cd $pkgname-$pkgver
- msg2 'Copying initscripts...'
- install -D -m755 "$srcdir"/netatalk.rc "$pkgdir"/etc/rc.d/netatalk
+ make DESTDIR="$pkgdir" install
}
-md5sums=('5e92015b0d9ac77af4b598cca6cb435c'
- 'b4f5c932b2ca99f5292bd6b6d69b3ebc')