wok-current view puppet/receipt @ rev 25549
created recipe for lesspipe
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 03 06:53:23 2023 +0100 (19 months ago) |
parents | a6b997a82f39 |
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 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 }