Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions packages/packet-o-matic/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@
# See COPYING for license details.

pkgname=packet-o-matic
pkgver=1394.a1a8ce8
pkgrel=2
pkgver=v0.0.19.r5.gb88b740
pkgrel=1
epoch=1
pkgdesc='A real time packet processor. Reads the packet from an input module, match the packet using rules and connection tracking information and then send it to a target module.'
arch=('x86_64' 'aarch64')
url='http://www.packet-o-matic.org/'
license=('GPL')
groups=('blackarch' 'blackarch-networking' 'blackarch-tunnel')
url='http://www.packet-o-matic.org/'
license=('GPL-2.0-or-later')
depends=('libpcap' 'libxml2' 'libnet' 'uthash' 'libmicrohttpd' 'lua'
'libexif')
makedepends=('git' 'xmlrpc-c' 'libtool' 'pkg-config')
source=("$pkgname::git+https://github.com/gmsoft-tuxicoman/pom-ng.git")
source=("$pkgname::git+https://github.com/D3vil0p3r/pom-ng.git#branch=patch-1")
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() {
cd $pkgname

export lua_CFLAGS="-llua"
export lua_LIBS="-llua"

autoreconf -f -i
./configure --prefix=/usr

Expand Down