wok-next annotate dhid/receipt @ rev 20461

Respect "install" phase (src -> install). Cook will fail if install dir empty (and it's by design).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 04 04:56:40 2018 +0200 (2018-03-04)
parents c4e53a39395a
children d5aab818505e
rev   line source
al@20461 1 # SliTaz package receipt v2.
pankso@16505 2
pankso@16505 3 PACKAGE="dhid"
pankso@16505 4 VERSION="5.5"
pankso@16505 5 CATEGORY="network"
al@20461 6 SHORT_DESC="Open source Dynamic IP Updater"
pankso@16505 7 MAINTAINER="pankso@slitaz.org"
pankso@16505 8 LICENSE="BSD"
al@20461 9 WEB_SITE="http://dhis.org"
al@20461 10
pankso@16505 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16505 12 WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL"
pankso@16505 13
pankso@16505 14 BUILD_DEPENDS="gmp-dev"
pankso@16505 15
al@20461 16 compile_rules() {
al@20461 17 case "$ARCH" in
al@20461 18 arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib";;
al@20461 19 esac
al@20461 20
al@20461 21 make CC=$HOST_SYSTEM-gcc $ARCH_FLAGS || return 1
al@20461 22
al@20461 23 install -Dm644 $src/dhid.conf.sample $install/etc/dhid.conf
al@20461 24 install -Dm644 $src/README $install/usr/share/doc/dhid/README
al@20461 25 install -Dm755 $src/dhid $install/usr/sbin/dhid
al@20461 26 install -Dm755 $stuff/dhid $install/etc/init.d/dhid
pankso@16505 27 }
pankso@16505 28
al@20461 29 genpkg_rules() {
al@20461 30 copy @std
al@20461 31 DEPENDS="gmp"
al@20461 32 CONFIG_FILES="/etc/dhid.conf"
pankso@16505 33 }