PKGBUILDs/aur/netatalk/PKGBUILD

73 lines
2.6 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>
2011-06-09 21:49:39 +00:00
plugrel=1
2011-01-27 02:03:22 +00:00
2012-04-23 01:03:37 +00:00
pkgname=netatalk
true && pkgname=('netatalk' 'netatalk-ddp')
2012-02-11 21:52:08 +00:00
pkgver=2.2.2
2012-04-23 01:03:37 +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
source=(a2boot afpd atalkd cnid_metad netatalk papd timelord \
http://hivelocity.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2)
md5sums=('747f0f3870fc0472fff5d502acd83fda'
'3b936b466b00a479aadb32df60960538'
'14dd9d43125eec9be438e4474b271ff0'
'1eb353a1e0581f9d764826a2f2d9b6f2'
'c89d35e5ea67edfd08ebfccb306f6c47'
'd8fa2b290cac33b4de77a7b69ef03db9'
'80299f81b0413329479073fe02e85de5'
'bd42b686ec7209d9ab47bd8e2e2431c4')
_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-04-15 16:58:08 +00:00
cd "$srcdir"/$pkgbase-$pkgver
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-04-15 16:58:08 +00:00
cd "$srcdir"/$pkgbase-$pkgver
if [ -f made ];then rm made;else continue;fi
msg2 'Building...'
make DESTDIR="$pkgdir" install >/dev/null
msg2 'Copying initscripts...'
install -d "$pkgdir"/etc/rc.d
install -m755 "$srcdir"/{a2boot,atalkd,afpd,cnid_metad,netatalk,papd,timelord} "$pkgdir"/etc/rc.d
msg2 'Removing extraneous files...'
rm -r "$pkgdir"/usr/include "$pkgdir"/usr/share/aclocal
2011-01-27 02:03:22 +00:00
}
2012-04-23 01:03:37 +00:00
package_netatalk() {
package
rm "$pkgdir"/usr/share/man/man8/timelord.8 "$pkgdir"/etc/rc.d/{a2boot,atalkd,papd,timelord}
rmdir "$pkgdir"/usr/share/man/man3 "$pkgdir"/usr/share/man/man4
}
package_netatalk-ddp() {
package
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[@]})
}