diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-03-28 06:48:50 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-03-28 06:48:50 +0000 |
commit | aa50c9d2c9b5368cdf3f09561484a958ff921521 (patch) | |
tree | ffc0f786e0e80e7f678a36e3ce517592c17e3ea7 /community/softflowd/APKBUILD | |
parent | 5313047db607dd40fb5f8f5624f3d48055be2929 (diff) | |
download | aports-aa50c9d2c9b5368cdf3f09561484a958ff921521.tar.bz2 aports-aa50c9d2c9b5368cdf3f09561484a958ff921521.tar.xz |
community/softflowd: moved from testing
Diffstat (limited to 'community/softflowd/APKBUILD')
-rw-r--r-- | community/softflowd/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/community/softflowd/APKBUILD b/community/softflowd/APKBUILD new file mode 100644 index 0000000000..fc0a2fe499 --- /dev/null +++ b/community/softflowd/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: +pkgname=softflowd +pkgver=0.9.9 +pkgrel=0 +pkgdesc="Flow-based network traffic analyser " +url="http://www.mindrot.org/projects/softflowd/" +arch="all" +license="BSD" +depends= +depends_dev= +makedepends="$depends_dev libpcap-dev" +install= +subpackages="$pkgname-doc" +source="https://softflowd.googlecode.com/files/$pkgname-$pkgver.tar.gz + softflowd.initd + softflowd.confd + " + + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + grep -l "#include <sys/poll.h>" * | xargs sed -i 's|sys/poll.h|poll.h|g' +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="ba83e2715e6250e6645ebcaa9ae1009d softflowd-0.9.9.tar.gz +1dc4e097474bfa6bcf471f5b6ed6e2e1 softflowd.initd +7eab9e84a8711613d83efbaa79cda3fe softflowd.confd" +sha256sums="2313f2c50ea9b3f2db3524e38ec7cd71f9a6e885ac2e3b55ab037bccf8173612 softflowd-0.9.9.tar.gz +1cb28ef2fd8d0ff0082c856812a26cce728332293115aa6e4fd8e877083a3568 softflowd.initd +f8368e88d248d420dfb8b877c53f666116c195763f40323868b52d2345b2c45c softflowd.confd" +sha512sums="4d579c2a087c0f3cd4d2020bcfbddf9dab73254e40678b3509c93bec212bf8b5692f76bfb4e766577e431ff508f0bce0a2cf326184f192e3c5dc8ddf38514dbd softflowd-0.9.9.tar.gz +40b671b5dc126e3b58761156eadb7b172fe8cd23f04e43c90270fbfba9c7542a7adc9a496da557143fa025af3ee6644e4732a74096a66bbaf98d3cadd6d01149 softflowd.initd +3e9ff7efb2f63519ed710af8b744a264c0ce97f22af1e1d2d4ec8e071276ff42e482183715eebba8b25ff6270afac1fe9620a9c69dc5dbda889d44b141d8cb09 softflowd.confd" |