wok view bird/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | c21515fa6481 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="bird"
4 VERSION="2.0.8"
5 CATEGORY="network"
6 TAGS="route routing daemon"
7 SHORT_DESC="Internet routing daemon."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://bird.network.cz"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="ftp://bird.network.cz/pub/$PACKAGE/$TARBALL"
15 DEPENDS="ncurses readline"
16 BUILD_DEPENDS="bison flex ncurses-dev readline-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/New release/!d;s|.*New release ||;s|!.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --localstatedir=/var \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_folders sbin
41 cook_copy_folders etc
42 cook_copy_folders var
43 }