aur/netatalk to 2.2.2-0

This commit is contained in:
Kevin Mihelich 2012-02-11 16:52:08 -05:00
parent 08fcd77197
commit cebf9ba750
2 changed files with 32 additions and 36 deletions

View file

@ -1,55 +1,51 @@
# Maintainer: Dominik Dingel <mail at wodar dot de>
# Maintainer: Andrea Crotti <mail andrea dot crotti dot 0 at gmail dot com>
# Contributor: William Udovich <nerdzrule7 at earthlink dot net>
# Contributor: Farhan Yousaf <farhany at xaviya dot com>
plugrel=1
pkgname=netatalk
pkgver=2.2.1
pkgrel=1
pkgver=2.2.2
pkgrel=0
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')
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')
depends=('libcups' 'pam' 'coreutils>=7.1-2' 'db')
optdepends=('avahi' 'tcp_wrappers' 'openssl' 'libgcrypt')
makedepends=('make' 'patch' 'gcc')
source=(http://voxel.dl.sourceforge.net/project/netatalk/netatalk/2.2.1/netatalk-$pkgver.tar.bz2 \
source=(http://voxel.dl.sourceforge.net/project/netatalk/netatalk/$pkgver/netatalk-$pkgver.tar.bz2 \
afpd atalkd papd cnid afpd.service)
install=netatalk.install
md5sums=('4a371025daf96adb73fa491efdbfef28'
md5sums=('bd42b686ec7209d9ab47bd8e2e2431c4'
'16ab9fa50ec4abde6de478fc7de57805'
'2d05de4a16faf7d4af21b5f14e33fa82'
'b16a687c96dd1ca7ffefd7c995356c0d'
'84d1961726aaa8df08d63a0925358b1a'
'e21ef8051269583764e68d00683691bb'
'9b6b2fee54fe052bba0c69f00d335bdb')
build() {
cd "${srcdir}/netatalk-${pkgver}"
./configure --prefix=/usr --with-cnid-cdb-backend --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs
make || return 1
}
package() {
cd "${srcdir}/netatalk-${pkgver}"
make DESTDIR=${pkgdir} install
mv ${pkgdir}/usr/include/netatalk{,2}
install -d ${pkgdir}/etc/rc.d
install -m755 ../{afpd,atalkd,papd,cnid} ${pkgdir}/etc/rc.d
install -d ${pkgdir}/etc/avahi/services
install -m755 ../afpd.service ${pkgdir}/etc/avahi/services
# rm $startdir/pkg/usr/bin/timeout
rm -f ${pkgdir}/usr/share/man/man1/timeout.1{,.gz}
cd $startdir/src/netatalk-$pkgver
./configure --prefix=/usr --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --with-cnid-cdb-backend --enable-ddp
make || return 1
make DESTDIR=$startdir/pkg install
mv $startdir/pkg/usr/include/netatalk{,2}
install -d $startdir/pkg/etc/rc.d
install -m755 ../{afpd,atalkd,papd,cnid} $startdir/pkg/etc/rc.d
install -d $startdir/pkg/etc/avahi/services
install -m744 ../afpd.service $startdir/pkg/etc/avahi/services
rm -f $startdir/pkg/usr/share/man/man1/timeout.1{,.gz}
}

View file

@ -7,7 +7,7 @@ PID=$(pidof -o %PPID /usr/sbin/cnid_metad)
case "$1" in
start)
stat_busy "Starting cnid Daemon"
[ -z $PID ] && /usr/sbin/cnid_metad
[ -z "$PID" ] && /usr/sbin/cnid_metad
if [ $? -gt 0 ]; then
stat_fail
else
@ -19,7 +19,7 @@ case "$1" in
;;
stop)
stat_busy "Stopping cnid Daemon"
[ ! -z $PID ] && kill "$PID" &> /dev/null
[ ! -z "$PID" ] && kill "$PID" &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else