wok-6.x view facter/receipt @ rev 24702

updated knock (0.7.8 -> 0.8)
author Hans-G?nter Theisgen
date Mon Mar 14 09:51:46 2022 +0100 (2022-03-14)
parents 4b27a977323d
children eec3edc6ef52
line source
1 # SliTaz package receipt.
3 PACKAGE="facter"
4 VERSION="1.6.11"
5 CATEGORY="system-tools"
6 SHORT_DESC="A library for collecting facts about your system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.puppetlabs.com/"
11 WGET_URL="http://downloads.puppetlabs.com/facter/$TARBALL"
13 DEPENDS="ruby"
14 BUILD_DEPENDS="ruby-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-[0-9]/!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 sed -i "s|require 'tempfile'|&\\nrequire 'test/unit'|" install.rb
27 ruby ./install.rb \
28 --destdir=$DESTDIR \
29 --bindir=/usr/bin \
30 --sbindir=/usr/sbin
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 }