# SliTaz package receipt. PACKAGE="netplug" VERSION="1.2.9.2" CATEGORY="network" SHORT_DESC="A daemon that manages network interfaces plugs in and out." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.serpentine.com/blog/software/netplug/" WGET_URL="https://www.red-bean.com/~bos/netplug/$TARBALL" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i '/hg_root/,$d' Makefile make prefix=/usr netplugd && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir $fs/etc cp -a $install/etc/rc.d/init.d $fs/etc cp -a $install/etc/netp* $fs/etc cp -a $install/sbin $fs }