wok annotate dhid/receipt @ rev 25808
created recipe for xmenu
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 19 16:09:37 2024 +0100 (7 days ago) |
parents | bfabe25c21ff |
children |
rev | line source |
---|---|
pankso@16505 | 1 # SliTaz package receipt. |
pankso@16505 | 2 |
pankso@16505 | 3 PACKAGE="dhid" |
pankso@16505 | 4 VERSION="5.5" |
pankso@16505 | 5 CATEGORY="network" |
pankso@16505 | 6 SHORT_DESC="Open source Dynamic IP Updater." |
pankso@16505 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16505 | 8 LICENSE="BSD" |
pankso@16505 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16505 | 10 WEB_SITE="http://dhis.org" |
pankso@16505 | 11 WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL" |
pankso@16505 | 12 CONFIG_FILES="/etc/dhid.conf" |
pankso@16505 | 13 HOST_ARCH="i486 arm" |
pankso@16505 | 14 |
pankso@16505 | 15 DEPENDS="gmp" |
pankso@16505 | 16 BUILD_DEPENDS="gmp-dev" |
pankso@16505 | 17 |
pascal@24439 | 18 # What is the latest version available today? |
pascal@24439 | 19 current_version() |
pascal@24439 | 20 { |
pascal@24614 | 21 wget -O - 'http://dhis.org/WebEngine.ipo?context=dhis.website.downloads' 2>/dev/null | \ |
pascal@24614 | 22 sed '/dhid-[0-9]/!d;s|.*dhid-||;s|<.*||;q' |
pascal@24439 | 23 } |
pascal@24439 | 24 |
pankso@16505 | 25 # Handle cross comilation |
pankso@16505 | 26 case "$ARCH" in |
pankso@16505 | 27 arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16505 | 28 esac |
pankso@16505 | 29 |
pankso@16505 | 30 # Rules to configure and make the package. |
pankso@16505 | 31 compile_rules() |
pankso@16505 | 32 { |
pankso@16505 | 33 make CC=${HOST_SYSTEM}-gcc ${ARCH_FLAGS} |
pankso@16505 | 34 } |
pankso@16505 | 35 |
pankso@16505 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16505 | 37 genpkg_rules() |
pankso@16505 | 38 { |
pankso@16505 | 39 mkdir -p $fs/usr/sbin $fs/etc $fs/usr/share/doc/dhid |
pankso@16505 | 40 cp ${src}/dhid.conf.sample ${fs}/etc/dhid.conf |
pankso@16505 | 41 cp ${src}/README ${fs}/usr/share/doc/dhid |
pankso@16505 | 42 cp -a ${src}/dhid ${fs}/usr/sbin |
pankso@16505 | 43 cp -a ${stuff}/init.d ${fs}/etc |
pankso@16505 | 44 } |
pankso@16505 | 45 |