wok view puppet/receipt @ rev 25603

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 11:43:32 2023 +0000 (10 months ago)
parents 1805f71c5d9f
children
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="https://github.com/puppetlabs/puppet/archive/refs/tags/$VERSION.tar.gz"
13 DEPENDS="ruby facter"
14 BUILD_DEPENDS="ruby-dev facter"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 ruby ./install.rb \
28 --destdir=$DESTDIR \
29 --bindir=/usr/bin \
30 --sbindir=/usr/sbin \
31 --mandir=/usr/share/man
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/etc $fs
39 cp -a $install/usr/*bin $fs/usr
40 cp -a $install/usr/lib $fs/usr
41 cd $fs/usr/bin && mv pi puppet-pi
42 }