aboutsummaryrefslogtreecommitdiffstats
path: root/main/haveged
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-07-02 10:34:29 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-07-02 10:35:00 +0200
commit8628ffe66dc47af880683db85b23028f1f1bdb11 (patch)
tree5e75bdce297ba34196f73d9c84c53a3134086114 /main/haveged
parentef6b127ee145b96134a5dcd35e72214ea5b619fc (diff)
downloadaports-8628ffe66dc47af880683db85b23028f1f1bdb11.tar.bz2
aports-8628ffe66dc47af880683db85b23028f1f1bdb11.tar.xz
main/haveged: moved from testing
Diffstat (limited to 'main/haveged')
-rw-r--r--main/haveged/APKBUILD42
-rw-r--r--main/haveged/haveged.confd5
-rw-r--r--main/haveged/haveged.initd18
3 files changed, 65 insertions, 0 deletions
diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD
new file mode 100644
index 0000000000..54e6993b34
--- /dev/null
+++ b/main/haveged/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Danilo Godec <danilo.godec@agenda.si>
+
+pkgname=haveged
+pkgver=1.7c
+pkgrel=1
+pkgdesc='Entropy harvesting daemon using CPU timings'
+url="http://www.issihosts.com/haveged/"
+arch="all"
+license="GPL"
+subpackages="$pkgname-doc"
+source="http://www.issihosts.com/haveged/haveged-$pkgver.tar.gz
+ haveged.initd haveged.confd"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix /usr --sysconfdir /etc || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/libhavege.la
+
+ install -Dm755 "$srcdir"/haveged.initd \
+ "$pkgdir"/etc/init.d/haveged || return 1
+ install -Dm644 "$srcdir"/haveged.confd \
+ "$pkgdir"/etc/conf.d/haveged || return 1
+}
+
+md5sums="036760389b1827a2532e248dd3cc46d3 haveged-1.7c.tar.gz
+0718d29f820b878a311e939b3682935c haveged.initd
+242300ea7948a16018d1b0f77fb5ec96 haveged.confd"
+sha256sums="40397eded96fc0d624a6a81c8e888ab023e46f3114f1ee699994e645531bf121 haveged-1.7c.tar.gz
+f5e99dc3e11437714fabc956611404306c3894a70f78259c412fb847377268af haveged.initd
+54f692941e4d15108683daa0e37240f834beaa216aeee462ef94f24c2382abf7 haveged.confd"
+sha512sums="610111360dba785a63874bd4295eb0a13525b260b719aa88fc32b4a133d32c25332be60852b336c4b7e186796e33d1a9c8881219d6efbe7280b66da2b76694ce haveged-1.7c.tar.gz
+4a6cd8f97953b0ea9ca1ee7c0fc672f962b78d2020c9f733f202d0d6e7aced14f7110bd2b757799d5a296a187eeff6a0f7d18daa3c7644c0e9c756f57ee2d45a haveged.initd
+57201472fc659aaab919562a00d474d3823d5becea62e8b13ef93eda05e1fd667721c968f224fcae871d13cfcd16d1924403d9181e0899fa214fa00bf4fefc75 haveged.confd"
diff --git a/main/haveged/haveged.confd b/main/haveged/haveged.confd
new file mode 100644
index 0000000000..9ee6c61776
--- /dev/null
+++ b/main/haveged/haveged.confd
@@ -0,0 +1,5 @@
+# Config file for /etc/init.d/haveged
+
+# Any extra options you want to pass to haveged
+# on start-up should be put here.
+HAVEGED_OPTS=""
diff --git a/main/haveged/haveged.initd b/main/haveged/haveged.initd
new file mode 100644
index 0000000000..d8b2fadbf9
--- /dev/null
+++ b/main/haveged/haveged.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting haveged"
+ start-stop-daemon --start --quiet --exec /usr/sbin/haveged -- ${HAVEGED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping haveged"
+ start-stop-daemon --stop --quiet --pidfile /var/run/haveged.pid
+ result=$?
+ eend $result
+}