Commit d8d15c81 authored by Alexander Rigbo's avatar Alexander Rigbo Committed by Jakub Jirutka

testing/netatalk: new aport

http://netatalk.sourceforge.net/
Netatalk is a freely-available Open Source AFP fileserver
parent cd7e8d06
# Contributor: Alexander Rigbo <alex@dnb.nu>
# Maintainer: Alexander Rigbo <alex@dnb.nu>
pkgname=netatalk
pkgver=3.1.10
pkgrel=0
pkgdesc="Netatalk is a freely-available Open Source AFP fileserver"
url="http://netatalk.sourceforge.net/"
arch="all"
license="GPL2"
makedepends="db-dev libgcrypt-dev acl-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
netatalk.initd"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m 755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
}
sha512sums="002aacc87778cd88ce544b69fc44052f32d07fce34858b20e760e771700d10552189a39a43943b193e22737de74e9be6934bf4c54d3207b615a1ceb4ecaf9a9e netatalk-3.1.10.tar.gz
2a64e3ae40d930a91d3516eea9ddcb63a542101fe2ee74b3903bd2fbeadd891bfd8c37f8893fe0d53fa6dc32f12b70498478f10804667569a13e1e16d0103a09 netatalk.initd"
#!/sbin/openrc-run
name=netatalk
command="/usr/sbin/$name"
command_args="-F /etc/afp.conf"
command_background="yes"
pidfile="/run/$name.pid"
depend() {
need net
after firewall
}
stop() {
ebegin "Stopping $name"
start-stop-daemon -K -p /var/lock/netatalk
eend $?
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment