mkports

recipes for building multiple softwares with mk(1)
git clone git://z3bra.org/mkports
Log | Files | Refs

commit bab466621aa7a761adfe957e9e8499c031f8f641
parent fe67dd318fb3685d1aae2e6b554e8656a41fa66f
Author: z3bra <willyatmailoodotorg>
Date:   Mon Jan 18 19:31:56 2016

new ports: smdev, zlib and iproute2

Diffstat:
 iproute2/mkfile                              | 11 +++++++++++
 iproute2/patches/000-musl-header-compat.diff | 11 +++++++++++
 iproute2/patches/001-musl-u_int_type.diff    | 12 ++++++++++++
 iproute2/patches/002-musl-ipt_kernel.diff    | 26 ++++++++++++++++++++++++++
 iproute2/patches/003-no-arpd.diff            | 12 ++++++++++++
 iproute2/patches/004-iptable-path.diff       | 12 ++++++++++++
 smdev/mkfile                                 |  6 ++++++
 zlib/mkfile                                  | 10 ++++++++++
 8 files changed, 100 insertions(+), 0 deletions(-)

diff --git a/iproute2/mkfile b/iproute2/mkfile @@ -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" diff --git a/iproute2/patches/000-musl-header-compat.diff b/iproute2/patches/000-musl-header-compat.diff @@ -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" diff --git a/iproute2/patches/001-musl-u_int_type.diff b/iproute2/patches/001-musl-u_int_type.diff @@ -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, diff --git a/iproute2/patches/002-musl-ipt_kernel.diff b/iproute2/patches/002-musl-ipt_kernel.diff @@ -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 diff --git a/iproute2/patches/003-no-arpd.diff b/iproute2/patches/003-no-arpd.diff @@ -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 + diff --git a/iproute2/patches/004-iptable-path.diff b/iproute2/patches/004-iptable-path.diff @@ -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 diff --git a/smdev/mkfile b/smdev/mkfile @@ -0,0 +1,6 @@ +pkg = smdev +ver = 77eafb2 +git = git://git.2f30.org/$pkg + +<../config.mk +<../default.mk diff --git a/zlib/mkfile b/zlib/mkfile @@ -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"