blob: f611dde0426bbd6499ed193f743182931cf134f8 (
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
54
|
# Contributor: An2Q ZaVok <an2qzavok@gemail.com>
# Maintainer:
pkgname=diod
pkgver=1.0.24
pkgrel=0
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"
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"
|