summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15dcab7a12faa27b6b5e099967331962e3b40d90 (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
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>

pkgname=yadifa
pkgver=1.0.3
_buildnr=2880
pkgrel=1
pkgdesc="lightweight authoritative Name Server with DNSSEC capabilities"
arch=('i686' 'x86_64')
url="http://www.yadifa.eu"
license=('FreeBSD')
depends=('openssl')
backup=('opt/yadifa/etc/yadifad.conf')
options=(!libtool)
source=(
	"http://cdn.yadifa.eu/sites/default/files/releases/$pkgname-$pkgver-$_buildnr.tgz"
	'yadifa.service'
	'yadifad.conf'
)
sha256sums=(
	'11a841620be8a2cb882a904686e48c3c6b49877942a906edffa24130600b4ba3'
	'095bc19013101c74b7f6e5d79a3ef147a10dc3c362e0c7e1454a9bede6fd00d2'
	'431f16695abd0e99973edecffecaf730d1bd17dd8ed9006790345542c2c6a231'
)

build() {
	cd $pkgname-$pkgver-$_buildnr
	./configure \
		--prefix=/opt/$pkgname \
		LIBS='-ldl'
	make
}

package(){
	cd $pkgname-$pkgver-$_buildnr
	make DESTDIR="$pkgdir" install

	# install default empty config (will not make it work)
	install -Dm644 "$srcdir/yadifad.conf" "$pkgdir/opt/yadifa/etc/yadifad.conf"

	# systemd service file
	install -Dm644 "$srcdir/yadifa.service" "$pkgdir/usr/lib/systemd/system/yadifa.service"
}