From 7d11e9346ebd0f9c378952caee0c82d6ca815f4e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jun 2012 00:01:46 +0000 Subject: Fri Jun 8 00:01:46 UTC 2012 --- community/haveged/PKGBUILD | 13 ++++++++----- community/haveged/haveged.service | 11 +++++++++++ 2 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 community/haveged/haveged.service (limited to 'community/haveged') diff --git a/community/haveged/PKGBUILD b/community/haveged/PKGBUILD index 118750b7b..35087ea57 100644 --- a/community/haveged/PKGBUILD +++ b/community/haveged/PKGBUILD @@ -1,19 +1,21 @@ +# $Id: PKGBUILD 72028 2012-06-06 10:37:52Z heftig $ # Maintainer: Bartłomiej Piotrowski # Contributor: kfgz # Contributor: pootzko pkgname=haveged pkgver=1.4 -pkgrel=1 -pkgdesc="A simple entropy daemon." +pkgrel=3 +pkgdesc="Entropy harvesting daemon using CPU timings" arch=('i686' 'x86_64') url="http://www.issihosts.com/haveged" license=('GPL') -depends=('bash') +depends=('glibc') source=(${url}/${pkgname}-${pkgver}.tar.gz - haveged) + haveged haveged.service) md5sums=('39a03d4b8a4225706f78dbef3f623b0e' - '264b725be5271288b40f363d7cfc6b68') + '264b725be5271288b40f363d7cfc6b68' + 'fc62a480f520377364503aca9efff0b0') build() { cd "${srcdir}"/${pkgname}-${pkgver/a/} @@ -28,4 +30,5 @@ package() { cd "${srcdir}" install -D -m755 haveged "${pkgdir}"/etc/rc.d/haveged + install -D -m644 haveged.service "${pkgdir}"/usr/lib/systemd/system/haveged.service } diff --git a/community/haveged/haveged.service b/community/haveged/haveged.service new file mode 100644 index 000000000..6803a0dec --- /dev/null +++ b/community/haveged/haveged.service @@ -0,0 +1,11 @@ +[Unit] +Description=Entropy Harvesting Daemon +Documentation=man:haveged(8) + +[Service] +Type=forking +ExecStart=/usr/sbin/haveged -w 1024 -v 1 +PIDFile=/var/run/haveged.pid + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf