wok view puppet/receipt @ rev 24902

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 09 09:39:20 2022 +0000 (2022-04-09)
parents a3c45ab9082e
children 1805f71c5d9f
line source
1 # SliTaz package receipt.
3 PACKAGE="puppet"
4 VERSION="2.7.19"
5 CATEGORY="system-tools"
6 SHORT_DESC="A system for automating system administration tasks."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/puppetlabs/puppet"
11 WGET_URL="http://downloads.puppetlabs.com/puppet/$TARBALL"
13 DEPENDS="ruby facter"
14 BUILD_DEPENDS="ruby-dev facter"
16 current_version()
17 {
18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ruby ./install.rb \
27 --destdir=$DESTDIR \
28 --bindir=/usr/bin \
29 --sbindir=/usr/sbin \
30 --mandir=/usr/share/man
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/etc $fs
38 cp -a $install/usr/*bin $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cd $fs/usr/bin && mv pi puppet-pi
41 }