# $Id$ PNAME="net-tools" PVER="1.60" PBUILD="r10" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Standard Linux networking tools." HOMEPAGE="http://sites.inka.de/lina/linux/NetTools/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-2.6-compilefix.patch mirror://${PNAME}/${PNAME}-${PVER}-miitool-gcc33-1.patch mirror://${PNAME}/${PNAME}-${PVER}-gcc34.patch mirror://${PNAME}/${PNAME}-${PVER}-get_name.patch mirror://${PNAME}/${PNAME}-${PVER}-cleanup-list-handling.patch mirror://${PNAME}/${PNAME}-${PVER}-man.patch ) #UP2DATE="updatecmd http://developer.berlios.de/projects/net-tools/ | grep 'Latest File'" UP2DATE="updatecmd_berlios ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation with kernel26 headers mpatch ${PNAME}-${PVER}-2.6-compilefix.patch || die # fixes compilation with gcc33 mpatch ${PNAME}-${PVER}-miitool-gcc33-1.patch || die # fixes compilation with gcc34 mpatch ${PNAME}-${PVER}-gcc34.patch || die # stack smashing attack in if_readlist_proc() from ifconfig mpatch ${PNAME}-${PVER}-get_name.patch || die # fixes nameif to segfault on larger mtabs mpatch ${PNAME}-${PVER}-cleanup-list-handling.patch || die # fixes some glitches in the man pages mpatch ${PNAME}-${PVER}-man.patch || die } src_compile() { cd ${SRCDIR} yes "" | make config || die make COPTS="-D_GNU_SOURCE -Wall ${CFLAGS}" || die } src_install() { cd ${SRCDIR} make update BASEDIR=${BINDIR} || die minstalldocs ABOUT-NLS COPYING README* TODO || die }