pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

add netbsd-pf



Module Name:	pkgsrc-wip
Committed By:	coypu <coypu%sdf.org@localhost>
Pushed By:	coypu
Date:		Fri Mar 29 10:41:08 2019 +0300
Changeset:	f5ce9f1178d390e5d313777a8f76e593847b1076

Added Files:
	netbsd-pf/DESCR
	netbsd-pf/MESSAGE
	netbsd-pf/Makefile
	netbsd-pf/PLIST
	netbsd-pf/distinfo
	netbsd-pf/patches/patch-usr.sbin_pf_examples_Makefile

Log Message:
add netbsd-pf

NetBSD pf module and utilities from NetBSD 8.0

XXX should be NetBSD 9.0, but netbsd-current URLs are not stable.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f5ce9f1178d390e5d313777a8f76e593847b1076

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 netbsd-pf/DESCR                                    |  3 ++
 netbsd-pf/MESSAGE                                  |  6 +++
 netbsd-pf/Makefile                                 | 46 ++++++++++++++++++++++
 netbsd-pf/PLIST                                    | 40 +++++++++++++++++++
 netbsd-pf/distinfo                                 | 11 ++++++
 .../patches/patch-usr.sbin_pf_examples_Makefile    | 17 ++++++++
 6 files changed, 123 insertions(+)

diffs:
diff --git a/netbsd-pf/DESCR b/netbsd-pf/DESCR
new file mode 100644
index 0000000000..ab28aa4dd5
--- /dev/null
+++ b/netbsd-pf/DESCR
@@ -0,0 +1,3 @@
+packet filter (pf) from OpenBSD, adapted for NetBSD.
+
+NetBSD-specific module and commands built from NetBSD 8.0 sources.
diff --git a/netbsd-pf/MESSAGE b/netbsd-pf/MESSAGE
new file mode 100644
index 0000000000..71a6ada53a
--- /dev/null
+++ b/netbsd-pf/MESSAGE
@@ -0,0 +1,6 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2013/02/17 17:24:09 spz Exp $
+
+To load the PF module, use
+modload ${PREFIX}/stand/${MACHINE}/${OS_VERSION}/modules/pf/pf.kmod
+===========================================================================
diff --git a/netbsd-pf/Makefile b/netbsd-pf/Makefile
new file mode 100644
index 0000000000..253152f0ac
--- /dev/null
+++ b/netbsd-pf/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.2 2015/05/03 15:01:11 spz Exp $
+
+DISTNAME=		src
+PKGNAME=		netbsd-pf-8.0
+HOMEPAGE=		https://www.NetBSD.org/
+CATEGORIES=		sysutils
+MASTER_SITES+=		https://cdn.netbsd.org/pub/NetBSD/NetBSD-8.0/source/sets/
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+COMMENT=		PF module for NetBSD
+LICENSE=		2-clause-bsd
+EXTRACT_SUFX=		.tgz
+
+DIST_SUBDIR=		NetBSD-8.0
+DISTFILES=		${DEFAULT_DISTFILES}
+DISTFILES+=		syssrc.tgz
+ONLY_FOR_PLATFORM=	NetBSD-*-*
+
+WRKSRC=		${WRKDIR}/usr/src/
+KMOD=		pf.kmod
+KMODULEDIR=	stand/${MACHINE}/${OS_VERSION}/modules/pf
+
+INSTALLATION_DIRS+=	${KMODULEDIR} sbin/ man/man4 man/man5 man/man8
+INSTALLATION_DIRS+=	man/html4 man/html5 man/html8 share/examples/pf
+
+do-build:
+	${MAKE_ENV} ${MAKE} -C ${WRKSRC}/usr.sbin/pf
+	${MAKE_ENV} ${MAKE} -C ${WRKSRC}/sys/modules/pf/
+
+do-install:
+	${MAKE_ENV} ${MAKE} install -C ${WRKSRC}/usr.sbin/pf \
+		BINDIR=${DESTDIR}${PREFIX}/sbin \
+		FILESDIR=${DESTDIR}${PREFIX}/share/examples/pf
+	${INSTALL_PROGRAM} ${WRKSRC}/sys/modules/pf/${KMOD} ${DESTDIR}${PREFIX}/${KMODULEDIR}
+
+MAKE_ENV+=	MKCATPAGES=no		# Avoid inconsistency with PLIST
+MAKE_ENV+=	NOGCCERROR=1		# XXX some build errors
+MAKE_ENV+=	INSTPRIV=-U		# Support unprivileged install
+MAKE_ENV+=	BSDSRCDIR=${WRKSRC}
+MAKE_ENV+=	MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+CHECK_PORTABILITY_SKIP+=	crypto/external/cpl/tpm-tools/dist/configure
+CHECK_PORTABILITY_SKIP+=	external/bsd/libpcap/dist/configure
+CHECK_PORTABILITY_SKIP+=	external/mit/expat/dist/configure
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/netbsd-pf/PLIST b/netbsd-pf/PLIST
new file mode 100644
index 0000000000..05fbf69a67
--- /dev/null
+++ b/netbsd-pf/PLIST
@@ -0,0 +1,40 @@
+@comment $NetBSD$
+man/html4/pf.html
+man/html4/pflog.html
+man/html4/pfsync.html
+man/html5/pf.boot.conf.html
+man/html5/pf.conf.html
+man/html5/pf.os.html
+man/html8/authpf.html
+man/html8/ftp-proxy.html
+man/html8/pfctl.html
+man/html8/pflogd.html
+man/html8/pfs.html
+man/html8/tftp-proxy.html
+man/man4/pf.4
+man/man4/pflog.4
+man/man4/pfsync.4
+man/man5/pf.boot.conf.5
+man/man5/pf.conf.5
+man/man5/pf.os.5
+man/man8/authpf.8
+man/man8/ftp-proxy.8
+man/man8/pfctl.8
+man/man8/pflogd.8
+man/man8/pfs.8
+man/man8/tftp-proxy.8
+sbin/authpf
+sbin/ftp-proxy
+sbin/pfctl
+sbin/pflogd
+sbin/pfs
+sbin/tftp-proxy
+share/examples/pf/ackpri
+share/examples/pf/faq-example1
+share/examples/pf/faq-example2
+share/examples/pf/faq-example3
+share/examples/pf/queue1
+share/examples/pf/queue2
+share/examples/pf/queue3
+share/examples/pf/queue4
+stand/amd64/8.99.31/modules/pf/pf.kmod
diff --git a/netbsd-pf/distinfo b/netbsd-pf/distinfo
new file mode 100644
index 0000000000..3f73781e9c
--- /dev/null
+++ b/netbsd-pf/distinfo
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.2 2015/05/03 15:01:11 spz Exp $
+
+SHA1 (NetBSD-8.0/src.tgz) = 31231650dafc608e1c449f8ecf08cf57d481a113
+RMD160 (NetBSD-8.0/src.tgz) = 1422ca9389e1151994c2f5f475c9999a860c30fd
+SHA512 (NetBSD-8.0/src.tgz) = d10f09bfe3d8d91f9d4529da458a35f2effb0196e7f3b55ebf45d9d8f9104073e5349169d025f3a540da4df120a6a334be70d52d98d7a5008b71565054e2cd0c
+Size (NetBSD-8.0/src.tgz) = 181396517 bytes
+SHA1 (NetBSD-8.0/syssrc.tgz) = 57c5640a388dce0ab4fc05ee03664f69f3cce52a
+RMD160 (NetBSD-8.0/syssrc.tgz) = 9850b897cd7e4bb67c2f05b2ed7a19a16e3028f1
+SHA512 (NetBSD-8.0/syssrc.tgz) = 1e71690b9d83a2727a0768e188fbc8b36b231a50a22785db27f69a2cd9344c09061c6ce1ea21046a8eda712e05d40f86164c385b3a2374f62d9a1be75dc4fba4
+Size (NetBSD-8.0/syssrc.tgz) = 55245187 bytes
+SHA1 (patch-usr.sbin_pf_examples_Makefile) = 05d7bfebff0e240d5785f549e4c34ff283abb405
diff --git a/netbsd-pf/patches/patch-usr.sbin_pf_examples_Makefile b/netbsd-pf/patches/patch-usr.sbin_pf_examples_Makefile
new file mode 100644
index 0000000000..60b0466dca
--- /dev/null
+++ b/netbsd-pf/patches/patch-usr.sbin_pf_examples_Makefile
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Install to PREFIX.
+DESTDIR support.
+
+--- usr.sbin/pf/examples/Makefile.orig	2005-06-27 20:32:40.000000000 +0000
++++ usr.sbin/pf/examples/Makefile
+@@ -2,7 +2,8 @@
+ 
+ .include <bsd.own.mk>
+ 
+-FILESDIR=	/usr/share/examples/pf
++#FILESDIR=	/usr/share/examples/pf
++FILESDIR=	${DESTDIR}${PREFIX}/share/examples/pf
+ FILES=		ackpri faq-example1 faq-example2 faq-example3
+ FILES+=		queue1 queue2 queue3 queue4
+ 


Home | Main Index | Thread Index | Old Index