wok view ocsinventory/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | cea6e929d21e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ocsinventory"
4 VERSION="2.0.4"
5 CATEGORY="meta"
6 SHORT_DESC="Automated inventory and deployement system."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="OCSNG_UNIX_SERVER"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://www.ocsinventory-ng.org/"
12 WGET_URL="https://launchpad.net/ocsinventory-server/stable-${VERSION%.*}/$VERSION/+download/$TARBALL"
13 TAGS="system administration"
15 DEPENDS="ocsinventory-server ocsinventory-agent ocsreports"
16 BUILD_DEPENDS="perl perl-dbd-mysql perl-apache-dbi perl-net-ip wget"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://launchpad.net/ocsinventory-server/ 2>/dev/null | \
22 sed '/Latest version/!d;s|.*is ||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/Apache
29 perl Makefile.PL &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 genpkg_rules()
35 {
36 mkdir $fs/usr
37 }