blob: 88847928103eafd0ca8b19b6f101816c32a791b8 (
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
55
56
57
58
59
60
61
62
|
# Contributor: Dennis Przytarski <dennis@przytarski.com>
# Maintainer: ScrumpyJack <scrumypjack@st.ilet.to>
pkgname=rng-tools
pkgver=6.7
pkgrel=0
pkgdesc="A random number generator daemon"
url="https://github.com/nhorman/rng-tools"
arch="all"
license="GPL-2.0-or-later"
makedepends="argp-standalone autoconf automake linux-headers libtool sysfsutils-dev"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nhorman/$pkgname/archive/v$pkgver.tar.gz
fix-textrels-on-PIC-x86.patch
rngd.confd
rngd.initd
"
builddir="$srcdir/$pkgname-$pkgver"
# power DARN support requires libgcrypt
_flags=""
case "$CARCH" in
ppc64le) makedepends="$makedepends libgcrypt-dev";;
*) _flags="--without-libgcrypt";;
esac
prepare() {
default_prepare
./autogen.sh
}
build() {
cd "$builddir"
export LIBS="-largp"
# NOTE: nistbeacon depends on libxml2 and libcurl, so it would
# significantly increase rng-tools' total size.
# Likewise for libgcrypt.
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/rng-tools \
--sysconfdir=/etc \
--disable-silent-rules \
--without-nistbeacon \
--without-pkcs11 \
$_flags
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="2f09edacb5448087041257326faf570c303b42f90bb695a1999b2c7543f20a28b15cdf705a2eca55cae8e9cf9fb5205c056fc26cfaf6af958bcda2cde1952b4d rng-tools-6.7.tar.gz
7b02c94cf3fb278c5c265713040f1026170fc05b8572c9879a478311d4a9ce1fb0c2b9b9cdd8eda0a0016ee4464ef0ab6b577baf7e41baf8347d87b495949b7a fix-textrels-on-PIC-x86.patch
363b5aa431a0da37fc9eb8c93cffed0b75f43064530318fb41c774acd8aab8a1e109cf6c294b77fa6b8f97aa355b2849f56e83d8b06bcd9e0e9f3aa4f3ba49ac rngd.confd
86a6a7446eda64c075e468bc304008314b710629e06146582c5ce3fcc307a6b4baf5f8e8a47b72f1bab0bb608d76f953f2712cddd35809abcb02b8320c682535 rngd.initd"
|