wok-next diff muninlite/receipt @ rev 20766

childsplay: up (3.3); tiny edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 04:36:32 2018 +0300 (2018-06-06)
parents 9e01bc6321ea
children d5aab818505e
line diff
     1.1 --- a/muninlite/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/muninlite/receipt	Wed Jun 06 04:36:32 2018 +0300
     1.3 @@ -1,34 +1,28 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="muninlite"
     1.8  VERSION="1.0.4"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Simple Munin node."
    1.11 +SHORT_DESC="Simple Munin node"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://$PACKAGE.sourceforge.net/"
    1.18  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.19  
    1.20  BUILD_DEPENDS="perl"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	cd $src
    1.26 -	make
    1.27 +compile_rules() {
    1.28 +	make &&
    1.29 +	install -Dm 755 $src/munin-node $install/usr/bin/munin-node
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.33 -genpkg_rules()                                      
    1.34 -{
    1.35 -	mkdir -p $fs/usr/bin
    1.36 -	cp -a $src/munin-node $fs/usr/bin
    1.37 +genpkg_rules() {
    1.38 +	copy @std
    1.39  }
    1.40  
    1.41 -# Pre and post install commands for Tazpkg.
    1.42 -post_install()
    1.43 -{
    1.44 +post_install() {
    1.45  	grep -q 4949 "$1/etc/services" ||
    1.46  	echo "munin		4949/tcp" >> "$1/etc/services"
    1.47  	grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT