diff options
author | Alexander Rigbo <alex@dnb.nu> | 2017-02-11 15:37:20 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-08 23:50:15 +0100 |
commit | d8d15c81e61ecd1757949f974cd4570583b5fa7f (patch) | |
tree | e94f0267fe8b443afb8e82c1c79cbe0609717231 /testing/netatalk | |
parent | cd7e8d068772d99f87434801f89229bd29d7eaeb (diff) | |
download | aports-d8d15c81e61ecd1757949f974cd4570583b5fa7f.tar.bz2 aports-d8d15c81e61ecd1757949f974cd4570583b5fa7f.tar.xz |
testing/netatalk: new aport
http://netatalk.sourceforge.net/
Netatalk is a freely-available Open Source AFP fileserver
Diffstat (limited to 'testing/netatalk')
-rw-r--r-- | testing/netatalk/APKBUILD | 39 | ||||
-rw-r--r-- | testing/netatalk/netatalk.initd | 19 |
2 files changed, 58 insertions, 0 deletions
diff --git a/testing/netatalk/APKBUILD b/testing/netatalk/APKBUILD new file mode 100644 index 0000000000..f16976a118 --- /dev/null +++ b/testing/netatalk/APKBUILD @@ -0,0 +1,39 @@ +# 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" diff --git a/testing/netatalk/netatalk.initd b/testing/netatalk/netatalk.initd new file mode 100644 index 0000000000..0ae9c57d1a --- /dev/null +++ b/testing/netatalk/netatalk.initd @@ -0,0 +1,19 @@ +#!/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 $? +} |