wok-current annotate rcswitch-pi/receipt @ rev 20376

nagios: update patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 13 10:34:15 2018 +0200 (2018-06-13)
parents
children 89c8d8b6cf48
rev   line source
pankso@16467 1 # SliTaz package receipt.
pankso@16467 2
pankso@16467 3 PACKAGE="rcswitch-pi"
pankso@16467 4 GITHASH="2c9c027217ae0b4fe132e0725db166ac29f93974"
pankso@16467 5 VERSION="${GITHASH:0:7}"
pankso@16467 6 CATEGORY="system-tools"
pankso@16467 7 SHORT_DESC="Control remote power sockets using the Raspberry Pi."
pankso@16467 8 MAINTAINER="pankso@slitaz.org"
pankso@16467 9 LICENSE="GPL"
pankso@16467 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@16467 11 WEB_SITE="https://github.com/r10r/rcswitch-pi"
pankso@16467 12 WGET_URL="git|git://github.com/r10r/rcswitch-pi.git"
pankso@16467 13 HOST_ARCH="arm"
pankso@16467 14
pankso@16467 15 DEPENDS="wiringpi"
pankso@16467 16 BUILD_DEPENDS="wiringpi-dev"
pankso@16467 17
pankso@16467 18 # Rules to configure and make the package.
pankso@16467 19 compile_rules()
pankso@16467 20 {
pankso@16467 21 git checkout ${GITHASH} &&
pankso@16467 22 make
pankso@16467 23 }
pankso@16467 24
pankso@16467 25 # SliTaz package testsuite
pankso@16467 26 testsuite() {
pankso@16467 27 readelf -h ${src}/send || return 1
pankso@16467 28 }
pankso@16467 29
pankso@16467 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16467 31 genpkg_rules()
pankso@16467 32 {
pankso@16467 33 mkdir -p $fs/usr/bin
pankso@16467 34 install -m 0755 ${src}/send ${fs}/usr/bin/${PACKAGE}
pankso@16467 35 }