aboutsummaryrefslogtreecommitdiffstats
path: root/testing/minidyndns/APKBUILD
blob: 40d6612d758da18f2eff0d910b98f1111e3d4d6e (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
# Contributor: Martin Rusko <martin.rusko@gmail.com>
# Maintainer: Martin Rusko <martin.rusko@gmail.com>
pkgname=minidyndns
pkgver=1.3.0
pkgrel=1
pkgdesc="A simple no fuss DNS server with built-in HTTP/HTTPS interface to update IPs"
url="https://github.com/arkanis/minidyndns"
arch="noarch"
license="MIT"
depends="ruby ruby-etc"
makedepends=""
options="!check" # there is no testing suite at the moment
install=""
subpackages="$pkgname-doc $pkgname-openrc"
source="minidyndns-$pkgver.tar.gz::https://github.com/arkanis/minidyndns/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

package() {
	cd "$builddir"

        install -Dm755 "$srcdir"/../minidyndns.initd \
                "$pkgdir"/etc/init.d/minidyndns
        install -Dm644 "$srcdir"/../minidyndns.confd \
                "$pkgdir"/etc/conf.d/minidyndns
	
	install -Dm755 "$builddir"/dns.rb \
		"$pkgdir"/usr/share/minidyndns/dns.rb

	install -Dm644 "$builddir"/config.example.yml \
		"$pkgdir"/etc/minidyndns_config.yml

	install -d -o nobody -g nogroup "$pkgdir"/var/log/minidyndns

	install -d -o nobody -g nogroup "$pkgdir"/var/lib/minidyndns
	install -Dm640 -o nobody -g nogroup "$builddir"/db.example.yml \
		"$pkgdir"/var/lib/minidyndns/db.yml

	install -Dm644 "$builddir"/config.example.yml \
			"$pkgdir"/usr/share/doc/minidyndns/config.example.yml

	install -Dm644 "$builddir"/db.example.yml \
			"$pkgdir"/usr/share/doc/minidyndns/db.example.yml

	install -Dm644 "$builddir"/README.md \
			"$pkgdir"/usr/share/doc/minidyndns/README.md
}

sha512sums="994ef4011a9435fbf29a6addade4357a0eefe672a8e1159ed838373524186d2c1ecedef8cce63123ccb81c236111c18a84cc0812fd5356c272aa924fab8e970d  minidyndns-1.3.0.tar.gz"