Skip to content

Commit

Permalink
pmacct: add epoch.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Nov 25, 2024
1 parent 80af326 commit 9e8138d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/pmacct/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# See COPYING for license details.

pkgname=pmacct
pkgver=5311.f8ee66b5
pkgrel=2
pkgver=v1.7.6.r1507.gf8ee66b
pkgrel=1
epoch=1
pkgdesc='Small set of multi-purpose passive network monitoring tools [NetFlow IPFIX sFlow libpcap BGP BMP IGP Streaming Telemetry].'
groups=('blackarch' 'blackarch-networking' 'blackarch-sniffer'
'blackarch-defensive')
Expand All @@ -18,7 +19,12 @@ sha512sums=('SKIP')
pkgver() {
cd $pkgname

echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

build() {
Expand Down

0 comments on commit 9e8138d

Please sign in to comment.