wok-6.x view netplug/receipt @ rev 25053

Up advancecomp (2.3), foomatic-db (4.0-20220223), sagan-rules (2.0.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 19:53:43 2022 +0000 (2022-06-05)
parents 241fb98cab1c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="netplug"
4 VERSION="1.2.9.2"
5 CATEGORY="network"
6 SHORT_DESC="A daemon that manages network interfaces plugs in and out."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.serpentine.com/blog/software/netplug/"
11 WGET_URL="https://www.red-bean.com/~bos/netplug/$TARBALL"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
17 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i '/hg_root/,$d' Makefile
24 make prefix=/usr netplugd &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir $fs/etc
32 cp -a $install/etc/rc.d/init.d $fs/etc
33 cp -a $install/etc/netp* $fs/etc
34 cp -a $install/sbin $fs
35 }