diff options
Diffstat (limited to 'unmaintained/diod/APKBUILD')
-rw-r--r-- | unmaintained/diod/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/unmaintained/diod/APKBUILD b/unmaintained/diod/APKBUILD new file mode 100644 index 0000000000..817d43c4df --- /dev/null +++ b/unmaintained/diod/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: An2Q ZaVok <an2qzavok@gemail.com> +# Maintainer: +pkgname=diod +pkgver=1.0.24 +pkgrel=2 +pkgdesc="Distributed I/O Daemon - a 9P file server" +url="http://github.com/chaos/diod" +arch="all" +license="GPLv2" +depends="" +depends_dev="" +makedepends="$depends_dev attr-dev lua5.1-dev ncurses-dev perl" +install="" +subpackages="$pkgname-doc" +source="https://github.com/chaos/diod/releases/download/$pkgver/diod-$pkgver.tar.gz + diod.initd" + +_builddir="$srcdir"/diod-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr/ \ + --sysconfdir=/etc/diod \ + --sbindir=/usr/bin \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + ln -s diodmount "$pkgdir"/usr/bin/mount.diod + #replacing systemd.service with openrc script + rm -rf "$pkgdir/etc/dios/systemd" + install -Dm755 "$srcdir"/diod.initd "$pkgdir"/etc/init.d/diod \ + || return 1 + +} + +md5sums="00566e5d43452b977ddc607181ab2288 diod-1.0.24.tar.gz +18f81219f1a64ac596ff94e595689d43 diod.initd" +sha256sums="f41d2b91c1a712132f5457d9d1c3caca985f069bdc8ef27bf4c148ac1d9f8c9f diod-1.0.24.tar.gz +48d8db2ffc992a2bc8f4d5446e804004932a0050cfd9d6e7b85824474e43b9b6 diod.initd" +sha512sums="844adc84a2dd705dd94b1103de2a466ae94314d884d8889b6d850a08074d21ac7f5cd40e17ea63ae63cd171adfba3e1601f992d5789709699d74cc8dc8c2c663 diod-1.0.24.tar.gz +963721cb06a5761101387b869f7513ffcfd2cd0e1b1bb57fb3c987d18827bc4bac6e66556b9ae6c67d3581c04565052aed410513fb2294d1e1fa235bbd7aaf9c diod.initd" |