tnew ports: smdev, zlib and iproute2 - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit bab466621aa7a761adfe957e9e8499c031f8f641
(DIR) parent fe67dd318fb3685d1aae2e6b554e8656a41fa66f
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Mon, 18 Jan 2016 19:31:56 +0100
new ports: smdev, zlib and iproute2
Diffstat:
A iproute2/mkfile | 11 +++++++++++
A iproute2/patches/000-musl-header-c… | 11 +++++++++++
A iproute2/patches/001-musl-u_int_ty… | 12 ++++++++++++
A iproute2/patches/002-musl-ipt_kern… | 26 ++++++++++++++++++++++++++
A iproute2/patches/003-no-arpd.diff | 12 ++++++++++++
A iproute2/patches/004-iptable-path.… | 12 ++++++++++++
A smdev/mkfile | 6 ++++++
A zlib/mkfile | 10 ++++++++++
8 files changed, 100 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/iproute2/mkfile b/iproute2/mkfile
t@@ -0,0 +1,11 @@
+pkg = iproute2
+ver = 3.18.0
+url = https://www.kernel.org/pub/linux/utils/net/$pkg/$pkg-$ver.tar.xz
+
+<../config.mk
+<../default.mk
+
+build:QV: fetch patch
+ cd $pkg-$ver
+ ./configure
+ make CC="$CC" CCOPT="$CFLAGS" LDFLAGS="$LDFLAGS"
(DIR) diff --git a/iproute2/patches/000-musl-header-compat.diff b/iproute2/patches/000-musl-header-compat.diff
t@@ -0,0 +1,11 @@
+diff -urN a/include/linux/if_bridge.h b/include/linux/if_bridge.h
+--- a/include/linux/if_bridge.h 2014-12-24 21:20:49.000000000 +0100
++++ b/include/linux/if_bridge.h 2015-05-25 09:40:47.695641302 +0200
+@@ -15,7 +15,6 @@
+
+ #include <linux/types.h>
+ #include <linux/if_ether.h>
+-#include <linux/in6.h>
+
+ #define SYSFS_BRIDGE_ATTR "bridge"
+ #define SYSFS_BRIDGE_FDB "brforward"
(DIR) diff --git a/iproute2/patches/001-musl-u_int_type.diff b/iproute2/patches/001-musl-u_int_type.diff
t@@ -0,0 +1,12 @@
+diff -urN a/include/iptables_common.h b/include/iptables_common.h
+--- a/include/iptables_common.h 2014-12-24 21:20:49.000000000 +0100
++++ b/include/iptables_common.h 2015-05-29 00:05:38.666469931 +0200
+@@ -2,6 +2,8 @@
+ #define _IPTABLES_COMMON_H
+ /* Shared definitions between ipv4 and ipv6. */
+
++#include <sys/types.h>
++
+ enum exittype {
+ OTHER_PROBLEM = 1,
+ PARAMETER_PROBLEM,
(DIR) diff --git a/iproute2/patches/002-musl-ipt_kernel.diff b/iproute2/patches/002-musl-ipt_kernel.diff
t@@ -0,0 +1,26 @@
+diff -urN a/include/libiptc/ipt_kernel_headers.h b/include/libiptc/ipt_kernel_headers.h
+--- a/include/libiptc/ipt_kernel_headers.h 2014-12-24 21:20:49.000000000 +0100
++++ b/include/libiptc/ipt_kernel_headers.h 2015-05-29 00:09:11.354491722 +0200
+@@ -5,22 +5,10 @@
+
+ #include <limits.h>
+
+-#if defined(__GLIBC__) && __GLIBC__ == 2
+ #include <netinet/ip.h>
+ #include <netinet/in.h>
+ #include <netinet/ip_icmp.h>
+ #include <netinet/tcp.h>
+ #include <netinet/udp.h>
+ #include <sys/types.h>
+-#else /* libc5 */
+-#include <sys/socket.h>
+-#include <linux/ip.h>
+-#include <linux/in.h>
+-#include <linux/if.h>
+-#include <linux/icmp.h>
+-#include <linux/tcp.h>
+-#include <linux/udp.h>
+-#include <linux/types.h>
+-#include <linux/in6.h>
+-#endif
+ #endif
(DIR) diff --git a/iproute2/patches/003-no-arpd.diff b/iproute2/patches/003-no-arpd.diff
t@@ -0,0 +1,12 @@
+diff -urN a/misc/Makefile b/misc/Makefile
+--- a/misc/Makefile 2014-12-24 21:20:49.000000000 +0100
++++ b/misc/Makefile 2016-01-18 19:07:00.195218527 +0100
+@@ -1,7 +1,7 @@
+ SSOBJ=ss.o ssfilter.o
+ LNSTATOBJ=lnstat.o lnstat_util.o
+
+-TARGETS=ss nstat ifstat rtacct arpd lnstat
++TARGETS=ss nstat ifstat rtacct lnstat
+
+ include ../Config
+
(DIR) diff --git a/iproute2/patches/004-iptable-path.diff b/iproute2/patches/004-iptable-path.diff
t@@ -0,0 +1,12 @@
+diff -urN a/include/iptables.h b/include/iptables.h
+--- a/include/iptables.h 2014-12-24 21:20:49.000000000 +0100
++++ b/include/iptables.h 2016-01-18 19:09:37.961883332 +0100
+@@ -5,7 +5,7 @@
+ #include "libiptc/libiptc.h"
+
+ #ifndef IPT_LIB_DIR
+-#define IPT_LIB_DIR "/usr/local/lib/iptables"
++#define IPT_LIB_DIR "/lib/iptables"
+ #endif
+
+ #ifndef IPPROTO_SCTP
(DIR) diff --git a/smdev/mkfile b/smdev/mkfile
t@@ -0,0 +1,6 @@
+pkg = smdev
+ver = 77eafb2
+git = git://git.2f30.org/$pkg
+
+<../config.mk
+<../default.mk
(DIR) diff --git a/zlib/mkfile b/zlib/mkfile
t@@ -0,0 +1,10 @@
+pkg = zlib
+ver = 1.2.8
+url = http://zlib.net/$pkg-$ver.tar.gz
+
+<../config.mk
+<../default.mk
+
+prefix =
+mandir = /man
+CONFIGURE = "--static"