mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/darkstat to 3.0.721-1
This commit is contained in:
parent
72a1485793
commit
66a3ebe703
1 changed files with 20 additions and 14 deletions
|
@ -4,27 +4,33 @@
|
||||||
# - remove -flto from CFLAGS in configure
|
# - remove -flto from CFLAGS in configure
|
||||||
|
|
||||||
pkgname=darkstat
|
pkgname=darkstat
|
||||||
pkgver=3.0.719
|
pkgver=3.0.721
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc='Network statistics gatherer (packet sniffer)'
|
pkgdesc='Network statistics gatherer (packet sniffer)'
|
||||||
url="https://unix4lyfe.org/${pkgname}/"
|
url='https://unix4lyfe.org/${pkgname}/'
|
||||||
license=("GPL")
|
license=('GPL')
|
||||||
arch=(x86_64)
|
arch=('x86_64')
|
||||||
depends=('libpcap' 'zlib' 'gcc-libs')
|
depends=('libpcap' 'zlib' 'gcc-libs')
|
||||||
backup=('etc/conf.d/darkstat.conf')
|
backup=('etc/conf.d/darkstat.conf')
|
||||||
source=("https://unix4lyfe.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/emikulic/${pkgname}/archive/refs/tags/${pkgver}.tar.gz"
|
||||||
'darkstat-sysusers.conf'
|
'darkstat-sysusers.conf'
|
||||||
'darkstat-tmpfiles.conf'
|
'darkstat-tmpfiles.conf'
|
||||||
'darkstat.service'
|
'darkstat.service'
|
||||||
'darkstat.conf')
|
'darkstat.conf')
|
||||||
sha256sums=('aeaf909585f7f43dc032a75328fdb62114e58405b06a92a13c0d3653236dedd7'
|
sha256sums=('0b405a6c011240f577559d84db22684a6349b25067c3a800df12439783c25494'
|
||||||
'81f7cac4bb3bdd10422938b33050dcb0245713082af1dd3a58fd63f51df29dbe'
|
'81f7cac4bb3bdd10422938b33050dcb0245713082af1dd3a58fd63f51df29dbe'
|
||||||
'ccc508237a3aa5b1b2cff271877f6a92a0a189ff578ed2128731f7d8379a9fca'
|
'ccc508237a3aa5b1b2cff271877f6a92a0a189ff578ed2128731f7d8379a9fca'
|
||||||
'81a29ba0fca9430f1a220fece1e88e8e80657fc1970b9327b6680e5f212e51df'
|
'81a29ba0fca9430f1a220fece1e88e8e80657fc1970b9327b6680e5f212e51df'
|
||||||
'7ee7e3a04672bec76e10a65d3b2bc7cf3c41992652a7252d2bbefa79f7679923')
|
'7ee7e3a04672bec76e10a65d3b2bc7cf3c41992652a7252d2bbefa79f7679923')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "${srcdir}/darkstat-${pkgver}"
|
||||||
|
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"/darkstat-$pkgver
|
cd "${srcdir}/darkstat-${pkgver}"
|
||||||
|
|
||||||
sed -i 's/-flto//' configure
|
sed -i 's/-flto//' configure
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -34,12 +40,12 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"/darkstat-$pkgver
|
cd "${srcdir}/darkstat-${pkgver}"
|
||||||
|
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
install -D -m0644 "$srcdir"/darkstat-sysusers.conf "$pkgdir"/usr/lib/sysusers.d/darkstat.conf
|
install -D -m0644 "${srcdir}"/darkstat-sysusers.conf "${pkgdir}"/usr/lib/sysusers.d/darkstat.conf
|
||||||
install -D -m0644 "$srcdir"/darkstat-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/darkstat.conf
|
install -D -m0644 "${srcdir}"/darkstat-tmpfiles.conf "${pkgdir}"/usr/lib/tmpfiles.d/darkstat.conf
|
||||||
install -D -m0644 "$srcdir"/darkstat.service "$pkgdir"/usr/lib/systemd/system/darkstat.service
|
install -D -m0644 "${srcdir}"/darkstat.service "${pkgdir}"/usr/lib/systemd/system/darkstat.service
|
||||||
install -D -m0644 "$srcdir"/darkstat.conf "$pkgdir"/etc/conf.d/darkstat.conf
|
install -D -m0644 "${srcdir}"/darkstat.conf "${pkgdir}"/etc/conf.d/darkstat.conf
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue