123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- set -e
- program=net-tools
- version=2.10
- release=1
- pkgcategory=networking
- tarname=${program}-${version}.tar.xz
- fetch=https://downloads.sourceforge.net/project/net-tools/$tarname
- description="
- Collection of basic networking programs.
- A collection of programs that form the base set of the NET-3 networking
- distribution for the GNU/Linux operating system.
- This package includes the important tools for controlling the network
- subsystem of the Linux kernel. This includes arp, netstat, rarp and
- route. Additionally, this package contains utilities relating to
- particular network hardware types (plipconfig, slattach, mii-tool)
- and advanced aspects of IP configuration (iptunnel, ipmaddr).
- "
- homepage=https://net-tools.sourceforge.net/
- license=GPLv2+
- docs="COPYING README THANKS TODO"
- docsdir="${docdir}/${program}-${version}"
- jobs=1
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- sed -i "s#-O2 -g#${QICFLAGS}#" Makefile
- yes "" | make config
- make -j${jobs} V=1 \
- BINDIR=/usr/bin SBINDIR=/usr/sbin \
- DESTDIR="$destdir" install
-
- for program in hostname dnsdomainname ifconfig \
- domainname nisdomainname ypdomainname
- do
- rm "${destdir}/usr/bin/${program}"
- rm "${destdir}/${mandir}/man1/${program}.1" \
- "${destdir}/${mandir}/man8/${program}.8" || true;
- done
- unset -v program
- strip --strip-unneeded "${destdir}"/usr/bin/* \
- "${destdir}"/usr/sbin/* 2> /dev/null || true;
- rmdir "${destdir}/${mandir}/man1" || true;
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|