wok view ifplugd/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | 54f857962813 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ifplugd"
4 VERSION="0.28"
5 CATEGORY="network"
6 SHORT_DESC="Configure your ethernet device when a cable is plugged"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://0pointer.de/lennart/projects/ifplugd/"
11 WGET_URL="${WEB_SITE}$TARBALL"
13 DEPENDS="libdaemon"
14 BUILD_DEPENDS="libdaemon-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure --prefix=/usr \
27 --sysconfdir=/etc \
28 --mandir=/usr/share/man \
29 --disable-lynx \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/etc $fs
41 sed -i 's|/bin/bash|/bin/sh|' $fs/etc/init.d/ifplugd
42 }