Skip to content

Commit

Permalink
user/ipset: new package (7.19)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose committed May 10, 2024
1 parent e2357c1 commit 70393f1
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions user/ipset-devel
11 changes: 11 additions & 0 deletions user/ipset/patches/basename.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/ipset.c
+++ b/src/ipset.c
@@ -16,6 +16,8 @@
#include <libipset/ipset.h> /* ipset library */
#include <libipset/xlate.h> /* translate to nftables */

+#define basename(src) (strrchr((src),'/') ? strrchr((src),'/')+1 : (src))
+
int
main(int argc, char *argv[])
{
33 changes: 33 additions & 0 deletions user/ipset/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pkgname = "ipset"
pkgver = "7.21"
pkgrel = 0
build_style = "gnu_configure"
configure_args = ["--with-kmod=no"]
make_cmd = "gmake"
make_dir = "."
make_check_target = "tests"
hostmakedepends = [
"automake",
"gmake",
"libtool",
"pkgconf",
]
makedepends = [
"libltdl-devel",
"libmnl-devel",
"linux-headers",
]
checkdepends = ["bash", "iptables"]
pkgdesc = "Manage Linux IP sets"
maintainer = "psykose <[email protected]>"
license = "GPL-2.0-only"
url = "https://ipset.netfilter.org"
source = f"https://ipset.netfilter.org/ipset-{pkgver}.tar.bz2"
sha256 = "e2c6ce4fcf3acb3893ca5d35c86935f80ad76fc5ccae601185842df760e0bc69"
# requires modifying actual ipsets for tests
options = ["linkundefver", "!check"]


@subpackage("ipset-devel")
def _devel(self):
return self.default_devel()
2 changes: 2 additions & 0 deletions user/ipset/update.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
url = "https://git.netfilter.org/ipset/refs"
pattern = r">v([\d\.]+)<"

0 comments on commit 70393f1

Please sign in to comment.