aboutsummaryrefslogtreecommitdiffstats
path: root/testing/diod/APKBUILD
blob: bc289fb1ce6e3939af8c55b889fec6e304d88f17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: An2Q ZaVok <an2qzavok@gemail.com>
# Maintainer:
pkgname=diod
pkgver=1.0.24
pkgrel=0
pkgdesc="diod is a multi-threaded, user space file server that speaks 9P2000.L protocol."
url="http://github.com/chaos/diod"
arch="all"
license="GPLv2"
depends="lua5.1 libcap"
depends_dev="attr-dev lua5.1-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/chaos/diod/archive/master.zip
diod"

_builddir="$srcdir"/diod-master
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"
	./autogen.sh || return 1
	./configure --prefix=/usr/ --sysconfdir=/etc --sbindir=/usr/bin CFLAGS=-O2 || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	ln -s /usr/bin/diodmount "$pkgdir"/usr/bin/mount.diod
	#replacing systemd.service with openrc script
	rm -rf "$pkgdir/etc/systemd"
	mkdir "$pkgdir/etc/init.d"
	cp "$srcdir/diod" "$pkgdir/etc/init.d"
	chmod +x "$pkgdir/etc/init.d"

}

md5sums="a31cf0aba61eb6c293a0f15c093cfbec  master.zip
18f81219f1a64ac596ff94e595689d43  diod"
sha256sums="297684512f6c00d2c835357e946f1961030019d5836e56911c8aeca090d72451  master.zip
48d8db2ffc992a2bc8f4d5446e804004932a0050cfd9d6e7b85824474e43b9b6  diod"
sha512sums="36488bf4a6b42b1cf8bc8b5370ea913084b59394258c9337ae3d11015d4d71cf60d71366445b208e026baaf96aec8679ee9efda7a43c8b06bc54a47dc45aba8f  master.zip
963721cb06a5761101387b869f7513ffcfd2cd0e1b1bb57fb3c987d18827bc4bac6e66556b9ae6c67d3581c04565052aed410513fb2294d1e1fa235bbd7aaf9c  diod"