PKGBUILDs/aur/netatalk/PKGBUILD

57 lines
1.8 KiB
Bash
Raw Normal View History

2011-01-27 02:03:22 +00:00
# Maintainer: Dominik Dingel <mail at wodar dot de>
# 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
pkgname=netatalk
2011-08-14 16:34:13 +00:00
pkgver=2.2.0
pkgrel=3
2011-01-27 02:03:22 +00:00
pkgdesc="A kernel level implementation of the AppleTalk Protocol Suite"
arch=('i686' 'x86_64')
url="http://netatalk.sourceforge.net"
options=('!libtool')
license=("GPL")
backup=('etc/netatalk/afpd.conf'
'etc/netatalk/netatalk.conf'
'etc/netatalk/atalkd.conf'
'etc/netatalk/papd.conf'
'etc/netatalk/AppleVolumes.default'
'etc/netatalk/AppleVolumes.system'
'etc/avahi/services/afpd.service')
depends=('libcups' 'tcp_wrappers' 'avahi' 'openssl' 'pam' 'coreutils>=7.1-2' 'db')
makedepends=('make' 'patch' 'gcc')
2011-08-14 16:34:13 +00:00
source=(http://voxel.dl.sourceforge.net/project/netatalk/netatalk/2.2/netatalk-$pkgver.tar.bz2 \
2011-01-27 02:03:22 +00:00
afpd atalkd papd cnid afpd.service)
install=netatalk.install
2011-06-09 21:49:39 +00:00
md5sums=('34be63cc07ed3ae606712028a9265216'
'16ab9fa50ec4abde6de478fc7de57805'
2011-01-27 02:03:22 +00:00
'2d05de4a16faf7d4af21b5f14e33fa82'
'b16a687c96dd1ca7ffefd7c995356c0d'
'84d1961726aaa8df08d63a0925358b1a'
'9b6b2fee54fe052bba0c69f00d335bdb')
build() {
2011-08-14 16:34:13 +00:00
cd "${srcdir}/netatalk-${pkgver}"
2011-06-09 21:49:39 +00:00
./configure --prefix=/usr --with-cnid-cdb-backend --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs
2011-01-27 02:03:22 +00:00
make || return 1
2011-08-14 16:34:13 +00:00
}
package() {
cd "${srcdir}/netatalk-${pkgver}"
make DESTDIR=${pkgdir} install
2011-01-27 02:03:22 +00:00
2011-08-14 16:34:13 +00:00
mv ${pkgdir}/usr/include/netatalk{,2}
2011-01-27 02:03:22 +00:00
2011-08-14 16:34:13 +00:00
install -d ${pkgdir}/etc/rc.d
install -m755 ../{afpd,atalkd,papd,cnid} ${pkgdir}/etc/rc.d
2011-01-27 02:03:22 +00:00
2011-08-14 16:34:13 +00:00
install -d ${pkgdir}/etc/avahi/services
install -m755 ../afpd.service ${pkgdir}/etc/avahi/services
2011-01-27 02:03:22 +00:00
# rm $startdir/pkg/usr/bin/timeout
2011-08-14 16:34:13 +00:00
rm -f ${pkgdir}/usr/share/man/man1/timeout.1{,.gz}
2011-01-27 02:03:22 +00:00
}