PKGBUILDs/aur/netatalk/PKGBUILD

74 lines
2.7 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
pkgrel=1
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-05-07 01:58:33 +00:00
md5sums=('792435b982af01a206b43f82115d4820'
'812f2a6236c495682e768704007b9b7d'
'8348b1bd91ff4a9c2d5e2bbb44cbc970'
'bc8c1f7e2af6e02982dc375fbf02f4d6'
'4226d26b886d6cff422c4a5bd5b88d55'
'288ee4394109ad8e163518a3b335064b'
'8a60ce9165f1346dab37045ce440c4cd'
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-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
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[@]})
}