aboutsummaryrefslogtreecommitdiffstats
path: root/community/rng-tools/APKBUILD
blob: 0169a9a95cfe2ed8f90dd02efb111b9fd23ab85d (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
# Contributor: Dennis Przytarski <dennis@przytarski.com>
# Maintainer: ScrumpyJack <scrumypjack@st.ilet.to>
pkgname=rng-tools
pkgver=5
pkgrel=3
pkgdesc="A random number generator daemon"
url="https://sourceforge.net/projects/gkernel/"
arch="all"
license="GPL-2.0-or-later"
makedepends="argp-standalone linux-headers"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/gkernel/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
	fix-textrels-on-PIC-x86.patch
	rngd.confd
	rngd.initd
	"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	export LIBS="-largp"
	./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib/rng-tools \
		--sysconfdir=/etc \
		--disable-silent-rules
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install

	install -m 644 -D "$srcdir"/rngd.confd "$pkgdir"/etc/conf.d/rngd
	install -m 755 -D "$srcdir"/rngd.initd "$pkgdir"/etc/init.d/rngd
}

sha512sums="58047c37cad4f5f1210b696e4dba122878f78e57d05d9cb822f79234240ecce31efd2d39061fea1eb5b2e81d48d8c3bf6b92d06451f1ce5d5db7117704e89c50  rng-tools-5.tar.gz
5c8196c3e70c093215fc0720cd3f58f339f74293a7eb35d95b914591d783472119dcc34fb27ab6a4c3ce5359e050b4987d1e7ddf213a7445fc0b70d9fae5eae5  fix-textrels-on-PIC-x86.patch
ce82f583ab06580f038f17d4ecc84655cfc001abf344f9a50d12b8c1a5a6c4b74c386fbbc8b130201e4c34a7d99da75a4e64bcc41b2aebd381e74a352b5531c4  rngd.confd
46abb31d575854a51fc5ee1d31eb436e153cf969435d5b835d6fb44f4bdce549378ca9abcd81142abeb650312bd62133552eed2bec4eb9035f9456f739f1a3b7  rngd.initd"