aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-06-21 08:26:08 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2016-06-21 13:01:23 +0200
commitc6961011030378ed21d4b5866f92ead90eb45f69 (patch)
treedf597781b20d97bd68ea5ba4fa449e14b9746117 /testing
parentc1b103770f47a5b62bae45f75c2283cba434d1d8 (diff)
downloadaports-c6961011030378ed21d4b5866f92ead90eb45f69.tar.bz2
aports-c6961011030378ed21d4b5866f92ead90eb45f69.tar.xz
testing/rng-tools: split docs into subpackage
This patch splits the docs into the standard subpackage and cleans up the APKBUILD file a little
Diffstat (limited to 'testing')
-rw-r--r--testing/rng-tools/APKBUILD28
1 files changed, 9 insertions, 19 deletions
diff --git a/testing/rng-tools/APKBUILD b/testing/rng-tools/APKBUILD
index 37ca559558..83d0de3d84 100644
--- a/testing/rng-tools/APKBUILD
+++ b/testing/rng-tools/APKBUILD
@@ -1,36 +1,26 @@
# Contributor: Dennis Przytarski <dennis@przytarski.com>
-# Maintainer:
+# Maintainer: ScrumpyJack <scrumypjack@st.ilet.to>
pkgname=rng-tools
pkgver=5
-pkgrel=2
+pkgrel=3
pkgdesc="a random number generator daemon"
url="http://sourceforge.net/projects/gkernel/"
arch="all"
license="GPL2"
depends=""
-depends_dev="argp-standalone linux-headers"
-makedepends="$depends_dev"
+depends_dev=""
+makedepends="argp-standalone linux-headers"
install=
-subpackages=
+subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/gkernel/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
- fix-textrels-on-PIC-x86.patch
+ fix-textrels-on-PIC-x86.patch
rngd.confd
rngd.initd
"
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
export LIBS="-largp"
./configure \
--prefix=/usr \
@@ -41,7 +31,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="${pkgdir}" install || return 1
install -m644 -D "${srcdir}/rngd.confd" "${pkgdir}/etc/conf.d/rngd" || return 1