mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
71 lines
2.5 KiB
Bash
71 lines
2.5 KiB
Bash
# Maintainer: SJ_UnderWater
|
|
# 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>
|
|
|
|
plugrel=1
|
|
|
|
pkgbase=netatalk
|
|
pkgname=('netatalk' 'netatalk-ddp')
|
|
pkgver=2.2.2
|
|
pkgrel=3
|
|
pkgdesc='A kernel-level implementation of AppleTalk, AFP, and PAP services'
|
|
arch=('i686' 'x86_64')
|
|
url='http://netatalk.sourceforge.net'
|
|
license=('GPL')
|
|
depends=('avahi>=0.6' 'libldap' 'libgcrypt>=1.2.3')
|
|
conflicts=('netatalk-ddp')
|
|
replaces=('netatalk-git' 'netatalk2')
|
|
backup=('etc/netatalk/afpd.conf'
|
|
'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'
|
|
|
|
build() {
|
|
if [ "$pkgname" = "netatalk-ddp" ];then build_netatalk-ddp;fi
|
|
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
|
|
}
|
|
build_netatalk-ddp() {
|
|
depends=('openslp' 'libcups' 'libgcrypt>=1.2.3')
|
|
resolve_deps ${depends[@]}
|
|
optdepends+=('cups: required for PAP support')
|
|
conflicts=('netatalk')
|
|
_options=`echo $_options | sed s/disable/enable/g`
|
|
}
|
|
package_netatalk() {
|
|
package_netatalk-ddp
|
|
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() {
|
|
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
|
|
}
|