Page MenuHomeFreeBSD

D29836.id88415.diff
No OneTemporary

D29836.id88415.diff

Index: net/libpfctl/Makefile
===================================================================
--- /dev/null
+++ net/libpfctl/Makefile
@@ -0,0 +1,43 @@
+# Created by: Kristof Provost <kp@FreeBSD.org>
+
+PORTNAME= libpfctl
+PORTVERSION= 0.1
+CATEGORIES= net
+MASTER_SITES= LOCAL/kp/
+DISTFILES= libpfctl-${_LIBPFCTL_HASH}.tar.gz
+
+MAINTAINER= kp@FreeBSD.org
+COMMENT= Library for interaction with pf(4)
+
+LICENSE= BSD2CLAUSE
+
+BROKEN_FreeBSD_11= Will not work until nvlist-ified ioctls are available
+BROKEN_FreeBSD_12= Will not work until nvlist-ified ioctls are available
+BROKEN_FreeBSD_13= Will not work until nvlist-ified ioctls are available
+
+USE_LDCONFIG= yes
+
+WRKSRC= ${WRKDIR}/libpfctl
+
+_LIBPFCTL_HASH= 4ae3a97e127c
+
+PLIST_FILES= lib/libpfctl.so.0 \
+ include/libpfctl.h
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_LIB} ${WRKSRC}/libpfctl.so.0 ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include
+
+.if defined(MAINTAINER_MODE)
+upload:
+ cd /usr/src/lib && \
+ HASH=$$(git rev-parse --short origin/main) && \
+ git archive --format=tar.gz \
+ --output=libpfctl-$${HASH}.tar.gz \
+ origin/main libpfctl && \
+ scp libpfctl-$${HASH}.tar.gz kp@freefall.freebsd.org:public_distfiles/
+.endif
+
+.include <bsd.port.mk>
Index: net/libpfctl/distinfo
===================================================================
--- /dev/null
+++ net/libpfctl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1618833133
+SHA256 (libpfctl-4ae3a97e127c.tar.gz) = dcafd22c84f129e301ffe3b0f7f8cb53b841d420bc357af8afa2a5f186b958b3
+SIZE (libpfctl-4ae3a97e127c.tar.gz) = 5260
Index: net/libpfctl/files/patch-Makefile
===================================================================
--- /dev/null
+++ net/libpfctl/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2021-04-19 10:09:35 UTC
++++ Makefile
+@@ -2,7 +2,7 @@
+
+ PACKAGE= lib${LIB}
+ LIB= pfctl
+-INTERNALLIB= true
++SHLIB_MAJOR= 0
+
+ SRCS= libpfctl.c
+ INCS= libpfctl.h
Index: net/libpfctl/pkg-descr
===================================================================
--- /dev/null
+++ net/libpfctl/pkg-descr
@@ -0,0 +1,6 @@
+Ports version of the base system pf(4) library, libpfctl.
+
+Ports should ideally use this interface rather than manually implementing the
+pf(4) ioctl() interface.
+
+WWW: https://cgit.freebsd.org/src/tree/lib/libpfctl

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 21, 10:16 AM (3 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31904245
Default Alt Text
D29836.id88415.diff (2 KB)

Event Timeline