New package: arptables-0.0.4
This commit is contained in:
parent
e81b6cfe8c
commit
4ec6f5cc0b
3 changed files with 34 additions and 0 deletions
13
srcpkgs/arptables/patches/makefile-cflags.patch
Normal file
13
srcpkgs/arptables/patches/makefile-cflags.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
-D__GLIBC__=2 is required to build on *-musl,
|
||||
it's normally defined by features.h of glibc.
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -11,7 +11,7 @@
|
||||
DESTDIR:=
|
||||
|
||||
COPT_FLAGS:=-O2
|
||||
-CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG
|
||||
+override CFLAGS+=-Wall -D__GLIBC__=2 -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\"
|
||||
|
||||
ifndef ARPT_LIBDIR
|
||||
ARPT_LIBDIR:=$(LIBDIR)/arptables
|
20
srcpkgs/arptables/template
Normal file
20
srcpkgs/arptables/template
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Template file for 'arptables'
|
||||
pkgname=arptables
|
||||
version=0.0.4
|
||||
revision=1
|
||||
wrksrc="${pkgname}-v${version}"
|
||||
build_style=gnu-makefile
|
||||
depends="perl"
|
||||
short_desc="ARP table administration"
|
||||
maintainer="beefcurtains <beefcurtains@users.noreply.github.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://ebtables.sourceforge.net/"
|
||||
distfiles="ftp://ftp.netfilter.org/pub/arptables/arptables-v0.0.4.tar.gz"
|
||||
checksum=277985e29ecd93bd759a58242cad0e02ba9d4a6e1b7795235e3b507661bc0049
|
||||
|
||||
do_install() {
|
||||
vbin arptables
|
||||
vbin arptables-restore
|
||||
vbin arptables-save
|
||||
vman arptables.8
|
||||
}
|
1
srcpkgs/arptables/update
Normal file
1
srcpkgs/arptables/update
Normal file
|
@ -0,0 +1 @@
|
|||
pattern="${pkgname}-v\\K[\\d.]+(?=\\.tar)"
|
Loading…
Reference in a new issue