net-tools: cleanup template
* fix license * switching to vsed revealed useless leftovers
This commit is contained in:
parent
eaae546d8f
commit
6589c7d196
1 changed files with 6 additions and 17 deletions
|
@ -7,7 +7,7 @@ wrksrc="${pkgname}-${_githash}"
|
|||
hostmakedepends="git"
|
||||
short_desc="Basic networking tools"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-2.0-only"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://github.com/ecki/net-tools"
|
||||
distfiles="https://github.com/ecki/net-tools/archive/${_githash}.tar.gz"
|
||||
checksum=795cb4dd2618ed7ff9a48b9cb63b33780b47dfd7464c8e52ba734e6796cbab17
|
||||
|
@ -19,30 +19,19 @@ alternatives="
|
|||
hostname:/usr/share/man/man1/hostname.1:/usr/share/man/man8/${pkgname}-hostname.1"
|
||||
|
||||
pre_build() {
|
||||
sed -i "s#/sbin#/bin#" Makefile
|
||||
sed -i "s#/usr##" man/Makefile
|
||||
vsed -i "s#/sbin#/bin#" Makefile
|
||||
vsed -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 \
|
||||
vsed -i ${wrksrc}/lib/inet_sr.c \
|
||||
-e "/#include <sys\/param.h>/a #include <asm\/param.h>"
|
||||
sed -i ${wrksrc}/netstat.c \
|
||||
vsed -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 \
|
||||
vsed -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue