wok-6.x annotate netplug/receipt @ rev 24742

updated libffcall (2.2 -> 2.4)
author Hans-G?nter Theisgen
date Wed Mar 16 10:31:26 2022 +0100 (2022-03-16)
parents 54f857962813
children e1e1678c5265
rev   line source
pascal@20795 1 # SliTaz package receipt.
pascal@20795 2
pascal@20795 3 PACKAGE="netplug"
pascal@20795 4 VERSION="1.2.9.2"
pascal@20795 5 CATEGORY="network"
pascal@20795 6 SHORT_DESC="A daemon that manages network interfaces plugs in and out."
pascal@20795 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20795 8 LICENSE="GPL2"
pascal@20795 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20795 10 WEB_SITE="http://www.serpentine.com/blog/software/netplug/"
pascal@20795 11 WGET_URL="http://www.red-bean.com/~bos/netplug/$TARBALL"
pascal@20795 12
pascal@24453 13 # What is the latest version available today?
pascal@24453 14 current_version()
pascal@24453 15 {
pascal@24453 16 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 17 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 18 }
pascal@24453 19
pascal@20795 20 # Rules to configure and make the package.
pascal@20795 21 compile_rules()
pascal@20795 22 {
pascal@20795 23 sed -i '/hg_root/,$d' Makefile
pascal@20795 24 make prefix=/usr netplugd &&
pascal@20795 25 make DESTDIR=$DESTDIR install
pascal@20795 26 }
pascal@20795 27
pascal@20795 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20795 29 genpkg_rules()
pascal@20795 30 {
pascal@20795 31 mkdir $fs/etc
pascal@20795 32 cp -a $install/etc/rc.d/init.d $fs/etc
pascal@20808 33 cp -a $install/etc/netp* $fs/etc
pascal@20795 34 cp -a $install/sbin $fs
pascal@20795 35 }