Created
June 25, 2015 16:50
-
-
Save cypres/3697eeee4cc90c8e5731 to your computer and use it in GitHub Desktop.
norm FreeBSD port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a shell archive. Save it in a file, remove anything before | |
# this line, and then unpack it by entering "sh file". Note, it may | |
# create directories; files and directories will be owned by you and | |
# have default permissions. | |
# | |
# This archive contains: | |
# | |
# norm | |
# norm/distinfo | |
# norm/Makefile | |
# norm/pkg-plist | |
# norm/pkg-descr | |
# norm/files | |
# norm/files/patch-protolib_wscript | |
# norm/files/patch-protolib_src_common_protoSocket.cpp | |
# | |
echo c - norm | |
mkdir -p norm > /dev/null 2>&1 | |
echo x - norm/distinfo | |
sed 's/^X//' >norm/distinfo << '1fac7631ee1508ec76fe51fe2d3d18e5' | |
XSHA256 (src-norm-1.5b3.tgz) = ec2014f57be12ea3ade0685faa1e6e161f168311c8975093bce33a6e1dc5e77c | |
XSIZE (src-norm-1.5b3.tgz) = 2220917 | |
1fac7631ee1508ec76fe51fe2d3d18e5 | |
echo x - norm/Makefile | |
sed 's/^X//' >norm/Makefile << '9efa21ada10746c1cb3459985c0957c5' | |
X# $FreeBSD$ | |
X | |
XPORTNAME= norm | |
XPORTVERSION= 1.5b3 | |
XCATEGORIES= net | |
XMASTER_SITES= http://downloads.pf.itd.nrl.navy.mil/norm/archive/ | |
XDISTNAME= src-norm-${DISTVERSION} | |
X | |
XMAINTAINER= [email protected] | |
XCOMMENT= NACK-Oriented Reliable Multicast (NORM) | |
X | |
XWRKSRC= ${WRKDIR}/norm-${DISTVERSION} | |
X | |
XUSES= waf tar:tgz | |
X | |
Xpost-install: | |
X ${INSTALL_DATA} ${WRKSRC}/include/normApi.h ${STAGEDIR}${PREFIX}/include/ | |
X | |
X.include <bsd.port.mk> | |
9efa21ada10746c1cb3459985c0957c5 | |
echo x - norm/pkg-plist | |
sed 's/^X//' >norm/pkg-plist << '3ce6389038c1a51a8ceb3f531a7efd07' | |
Xinclude/normApi.h | |
Xlib/libnorm.so | |
Xlib/libnorm.so.1 | |
Xlib/libnorm.so.1.0.0 | |
3ce6389038c1a51a8ceb3f531a7efd07 | |
echo x - norm/pkg-descr | |
sed 's/^X//' >norm/pkg-descr << '7edf37532f97487ff3e2e0b2065136f9' | |
XThis a port of NACK-Oriented Reliable Multicast (N.O.R.M.) | |
XWWW: http://www.nrl.navy.mil/itd/ncs/products/norm | |
7edf37532f97487ff3e2e0b2065136f9 | |
echo c - norm/files | |
mkdir -p norm/files > /dev/null 2>&1 | |
echo x - norm/files/patch-protolib_wscript | |
sed 's/^X//' >norm/files/patch-protolib_wscript << '7f4756920b915bd920bb8845909113e2' | |
X--- protolib/wscript.orig 2015-06-25 13:43:01 UTC | |
X+++ protolib/wscript | |
X@@ -85,6 +85,8 @@ def configure(ctx): | |
X | |
X if system == 'freebsd': | |
X ctx.env.DEFINES_BUILD_PROTOLIB += ['HAVE_FLOCK'] | |
X+ ctx.env.CFLAGS += ['-DRTF_WASCLONED=0x20000'] | |
X+ ctx.env.CXXFLAGS += ['-DRTF_WASCLONED=0x20000'] | |
X | |
X if system == 'windows': | |
X ctx.env.DEFINES_BUILD_PROTOLIB += ['_CRT_SECURE_NO_WARNINGS', | |
X@@ -194,7 +196,7 @@ def build(ctx): | |
X protolib.source.append('src/linux/linuxDetour.cpp') | |
X protolib.use.append('NETFILTER_QUEUE') | |
X | |
X- if system in ('darwin', 'freebsd'): | |
X+ if system == 'darwin': | |
X protolib.source.extend(['src/bsd/{0}.cpp'.format(x) for x in [ | |
X 'bsdDetour', | |
X 'bsdNet', | |
X@@ -202,6 +204,11 @@ def build(ctx): | |
X ]]) | |
X protolib.source.append('src/unix/bpfCap.cpp') | |
X | |
X+ if system == 'freebsd': | |
X+ protolib.source.extend(['src/bsd/{0}.cpp'.format(x) for x in [ | |
X+ 'bsdRouteMgr', | |
X+ ]]) | |
X+ | |
X if system == 'windows': | |
X protolib.source.extend(['src/win32/{0}.cpp'.format(x) for x in [ | |
X 'win32Net', | |
7f4756920b915bd920bb8845909113e2 | |
echo x - norm/files/patch-protolib_src_common_protoSocket.cpp | |
sed 's/^X//' >norm/files/patch-protolib_src_common_protoSocket.cpp << '391569bed663cb3206d6fd2382512bd6' | |
X--- protolib/src/common/protoSocket.cpp.orig 2015-06-25 13:43:52 UTC | |
X+++ protolib/src/common/protoSocket.cpp | |
X@@ -6,6 +6,7 @@ | |
X #ifdef MACOSX | |
X #include <arpa/nameser.h> | |
X #endif // MACOSX | |
X+#include <netinet/in.h> | |
X #include <resolv.h> | |
X #endif // HAVE_IPV6 | |
X #include <sys/ioctl.h> | |
391569bed663cb3206d6fd2382512bd6 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment