mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
net-tools: unbreak musl
This commit is contained in:
parent
fe87568444
commit
771c37fe46
1 changed files with 26 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'net-tools'
|
# Template file for 'net-tools'
|
||||||
pkgname=net-tools
|
pkgname=net-tools
|
||||||
version=1.60.20140221git
|
version=1.60.20150526git
|
||||||
revision=2
|
revision=1
|
||||||
hostmakedepends="git"
|
hostmakedepends="git"
|
||||||
short_desc="Basic networking tools"
|
short_desc="Basic networking tools"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.tazenda.demon.co.uk/phil/$pkgname"
|
homepage="http://sourceforge.net/projects/$pkgname/"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
|
||||||
do_fetch() {
|
do_fetch() {
|
||||||
|
@ -14,6 +14,29 @@ do_fetch() {
|
||||||
pre_build() {
|
pre_build() {
|
||||||
sed -i "s#/sbin#/bin#" Makefile
|
sed -i "s#/sbin#/bin#" Makefile
|
||||||
sed -i "s#/usr##" man/Makefile
|
sed -i "s#/usr##" man/Makefile
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl)
|
||||||
|
|
||||||
|
# Include file is <linux/ipv6_route.h>
|
||||||
|
sed -i ${wrksrc}/lib/inet6_gr.c \
|
||||||
|
-e "s#netinet6/#linux/#"
|
||||||
|
sed -i ${wrksrc}/lib/inet6_sr.c \
|
||||||
|
-e "s#netinet6/#linux/#"
|
||||||
|
|
||||||
|
# HZ is defined in <asm/param.h>
|
||||||
|
sed -i ${wrksrc}/lib/inet_sr.c \
|
||||||
|
-e "/#include <sys\/param.h>/a #include <asm\/param.h>"
|
||||||
|
sed -i ${wrksrc}/netstat.c \
|
||||||
|
-e "/#include <sys\/param.h>/a #include <asm\/param.h>"
|
||||||
|
|
||||||
|
# Need <termios.h> for tty constants and structure
|
||||||
|
sed -i ${wrksrc}/slattach.c \
|
||||||
|
-e "/#include <limits.h>/a #include <termios.h>"
|
||||||
|
|
||||||
|
# Disable obsolete non-glibc includes
|
||||||
|
sed -i ${wrksrc}/mii-tool.c \
|
||||||
|
-e "s/#ifndef __GLIBC__/#if 0/"
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
replace_interpreter bash configure.sh
|
replace_interpreter bash configure.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue