summaryrefslogblamecommitdiff
path: root/user/haveged/APKBUILD
blob: c14325409af3bdf2f6a2bf1db4d1849f60cd5bbf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                             
             
               
             
        



                                                     
          
                           
                                                       
                                                                                           
                     

                     

         








                                 



                  









                                                
                                                                                                                                                                   
                                                                                                                                               
                                                                                                                                                
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Danilo Godec <danilo.godec@agenda.si>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=haveged
pkgver=1.9.12
pkgrel=0
pkgdesc="Entropy harvesting daemon using CPU timings"
url="http://www.issihosts.com/haveged/"
arch="all"
license="GPL-3.0+"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/haveged/archive/v$pkgver.tar.gz
	haveged.initd
	haveged.confd
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	rm "$pkgdir"/usr/lib/libhavege.la

	install -Dm755 "$srcdir"/haveged.initd \
		"$pkgdir"/etc/init.d/haveged
	install -Dm644 "$srcdir"/haveged.confd \
		"$pkgdir"/etc/conf.d/haveged
}

sha512sums="8165cb45ca25ca3d1f6ee303eca47f28006fb4c221bdaea5b0b09b1a712362a41d340e64102ec468a1c8272c096cb416513e6cc98bc70cfd359bdcd481422c9b  haveged-1.9.12.tar.gz
5d1e4186580951d4e6e01193e9c8827ceddaf3c2e28a981fc9176cb446bed32b059304796a77d9db6fb761a21f8fd27dd3d31e06a0fb7a5985b4ea94978fcd64  haveged.initd
58fa2c513e26291047b60ea6d6355ad837c1cb07750a2dfb2a5ebf90cc504a4b6ebf3573869410a06cac85d9b634b3df988e8b033921394da8a5abeee574c822  haveged.confd"