PKGBUILDs/aur/netatalk/PKGBUILD

78 lines
2.9 KiB
Bash
Raw Normal View History

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
true && pkgname=('netatalk' 'netatalk-ddp')
2012-05-30 20:50:39 +00:00
pkgver=2.2.3
2012-06-26 20:51:03 +00:00
pkgrel=4
2012-04-15 16:58:08 +00:00
pkgdesc='A kernel-level implementation of AppleTalk, AFP, and PAP 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')
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3')
replaces=('netatalk-git' 'netatalk2')
2012-02-11 21:52:08 +00:00
backup=('etc/netatalk/afpd.conf'
2012-04-23 01:03:37 +00:00
'etc/netatalk/afp_ldap.conf'
2012-04-15 16:58:08 +00:00
'etc/netatalk/netatalk.conf'
'etc/netatalk/AppleVolumes.default'
'etc/netatalk/AppleVolumes.system')
options=('!libtool')
install=$pkgname.install
changelog=$pkgname.changelog
2012-05-07 01:58:33 +00:00
source=(a2boot.rc afpd.rc atalkd.rc cnid_metad.rc netatalk.rc papd.rc timelord.rc \
2012-04-15 16:58:08 +00:00
http://hivelocity.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
2012-06-26 20:51:03 +00:00
md5sums=('26d1f602c5de87495b6c69021202d929'
'dcbce48475b038c0966d81dc8d61fbee'
'244fc26daba9c95e31f839c5c6f27c89'
'c227dc51d94f3e541daf478bd3d0be03'
'56cc073c625abdc26553ecf1998d40cb'
'e32f1df98f95a2a977d9a513deaf5aae'
'425a3dead19a20f4433fc2bffedb32bc'
2012-05-30 20:50:39 +00:00
'0b5a0645836183b0e548ccfbd5c022f8')
2012-04-15 16:58:08 +00:00
_options='--disable-ddp --disable-srvloc --disable-timelord --disable-cups --disable-a2boot'
2012-04-23 01:03:37 +00:00
_depddp=('openslp' 'libcups' 'libgcrypt>=1.2.3')
2011-01-27 02:03:22 +00:00
build() {
2012-04-23 01:03:37 +00:00
if [ "$pkgname" = "netatalk-ddp" ];then resolve_deps ${_depddp[@]}
_options=`echo $_options | sed s/disable/enable/g`;fi
2012-05-07 01:58:33 +00:00
cd $pkgbase-$pkgver
2012-06-26 20:51:03 +00:00
msg2 'Fixing...'
sed -i 's/install-exec-hook/install-data-hook/' etc/uams/Makefile.am
autoreconf
2012-04-15 16:58:08 +00:00
msg2 'Configuring...'
CFLAGS="-Wno-unused-result" ./configure --prefix=/usr --localstatedir=/var --libexecdir='${libdir}' \
--with-cracklib --with-cnid-cdb-backend --enable-fhs $_options
msg2 'Making...'
make >/dev/null
echo $pkgname >made
}
2012-04-23 01:03:37 +00:00
package() {
2012-05-07 01:58:33 +00:00
cd $pkgbase-$pkgver
if [ -f made ];then rm made;else rm -rf "$pkgdir";continue;fi
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
install -m755 "$srcdir"/cnid_metad.rc "$pkgdir"/etc/rc.d/cnid_metad
install -m755 "$srcdir"/afpd.rc "$pkgdir"/etc/rc.d/afpd
2012-06-26 20:51:03 +00:00
rm "$pkgdir"/usr/include/netatalk/at.h
2011-01-27 02:03:22 +00:00
}
2012-04-23 01:03:37 +00:00
package_netatalk() {
package
2012-05-30 20:50:39 +00:00
msg2 'Removing extraneous files...'
2012-05-07 01:58:33 +00:00
rm "$pkgdir"/usr/share/man/man8/timelord.8
2012-04-23 01:03:37 +00:00
}
package_netatalk-ddp() {
package
2012-05-07 01:58:33 +00:00
install -m755 "$srcdir"/a2boot.rc "$pkgdir"/etc/rc.d/a2boot
install -m755 "$srcdir"/atalkd.rc "$pkgdir"/etc/rc.d/atalkd
install -m755 "$srcdir"/papd.rc "$pkgdir"/etc/rc.d/papd
install -m755 "$srcdir"/timelord.rc "$pkgdir"/etc/rc.d/timelord
2012-04-23 01:03:37 +00:00
optdepends=('cups: required for PAP support')
backup+=('etc/netatalk/atalkd.conf' 'etc/netatalk/papd.conf' 'etc/pam.d/netatalk')
conflicts=('netatalk');provides=(${conflicts[@]});depends=(${_depddp[@]})
}