diff options
author | davidovski <david@davidovski.xyz> | 2022-03-12 23:00:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-12 23:00:02 +0000 |
commit | 1daf71c2980b1920bbdc2f07af669ebf6f0f82d6 (patch) | |
tree | 7ef6ac7612c7361f7d3657e8f32d5b0a17b2e602 /repo/util/net-tools.xibuild | |
parent | d215dd09cb60ed38dbcffe14f0c7cc748645ad79 (diff) |
added patches for broken files
Diffstat (limited to 'repo/util/net-tools.xibuild')
-rw-r--r-- | repo/util/net-tools.xibuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/repo/util/net-tools.xibuild b/repo/util/net-tools.xibuild index af7cf61..bc232dc 100644 --- a/repo/util/net-tools.xibuild +++ b/repo/util/net-tools.xibuild @@ -4,16 +4,23 @@ MAKEDEPS="make " DEPS="pam libcap readline ncurses libxcrypt utmps iana-etc net-tools" PKG_VER=2.10 -SOURCE=https://downloads.sourceforge.net/project/net-tools/net-tools-$PKG_VER.tar.xz +SOURCE=https://github.com/ecki/net-tools ADDITIONAL=" - musl-fixes.patch " DESC="Linux networking base tools" prepare () { - apply_patches - cat > config.make <<EOF + sed -i lib/inet_sr.c \ + -e "/#include <sys\/param.h>/a #include <asm\/param.h>" + sed -i netstat.c \ + -e "/#include <sys\/param.h>/a #include <asm\/param.h>" + + sed -i slattach.c \ + -e "/#include <limits.h>/a #include <termios.h>" + + + cat > config.make <<EOF # I18N=0 HAVE_AFUNIX=1 HAVE_AFINET=1 @@ -59,10 +66,11 @@ HAVE_PLIP_TOOLS=1 HAVE_SERIAL_TOOLS=1 EOF sed -n -e 's/^\(HAVE.*\)=\(.*\)/#define \1 \2/p' config.make > config.h + } build () { - make + yes "" | make } package () { |