diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-09-21 14:52:47 +0200 |
commit | e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc (patch) | |
tree | c6b816e7ba8f9b659e1be415ebf1dac4262c3b82 /main/darkstat | |
parent | 452d447d89b3a3775b7f602d7352a8cfe8a0f9d4 (diff) | |
download | aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.bz2 aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.xz |
testing/*: move to main
Diffstat (limited to 'main/darkstat')
-rw-r--r-- | main/darkstat/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/darkstat/APKBUILD b/main/darkstat/APKBUILD new file mode 100644 index 0000000000..5194f5c4c1 --- /dev/null +++ b/main/darkstat/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: ScrumpyJack <scrumpyjack@me.com> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=darkstat +pkgver=3.0.718 +pkgrel=0 +pkgdesc="Captures network traffic, calculates statistics about usage, and serves reports over HTTP" +url="https://unix4lyfe.org/darkstat/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="zlib-dev libpcap-dev" +install="" +subpackages="$pkgname-doc" +source="https://unix4lyfe.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2" + +_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 +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 + make + } + +package() { + cd "$_builddir" + make DESTDIR=${pkgdir} install +} + +md5sums="1fb31ac01d4689493c917fa622a002e7 darkstat-3.0.718.tar.bz2" +sha256sums="682f3e53f4e89ea6ad08236b4225a5e0859428299765d8d995374cd7fa22adff darkstat-3.0.718.tar.bz2" +sha512sums="73ed670a9c684b2f0b087da3f238c2828407c82201d1bff945a3d711bbaa231b9d87ddc9e21aa855abcd7d63c27f8f529f5a2c6fb48f52a3f0b6e88c49d33969 darkstat-3.0.718.tar.bz2" |