wok-current annotate netplug/receipt @ rev 25642
Bump linux to 4.19.305, add linux-pae-ipv6
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Jan 17 12:05:22 2024 +0000 (11 months ago) |
parents | 241fb98cab1c |
children |
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@24974 | 11 WGET_URL="https://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 } |