wok view dhid/receipt @ rev 25672
Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 26 14:07:44 2024 +0000 (10 months ago) |
parents | bfabe25c21ff |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="dhid"
4 VERSION="5.5"
5 CATEGORY="network"
6 SHORT_DESC="Open source Dynamic IP Updater."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://dhis.org"
11 WGET_URL="ftp://ftp.dhis.org/pub/dhis/$TARBALL"
12 CONFIG_FILES="/etc/dhid.conf"
13 HOST_ARCH="i486 arm"
15 DEPENDS="gmp"
16 BUILD_DEPENDS="gmp-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - 'http://dhis.org/WebEngine.ipo?context=dhis.website.downloads' 2>/dev/null | \
22 sed '/dhid-[0-9]/!d;s|.*dhid-||;s|<.*||;q'
23 }
25 # Handle cross comilation
26 case "$ARCH" in
27 arm) ARCH_FLAGS=" LFLAGS=-L/cross/$ARCH/sysroot/usr/lib" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 make CC=${HOST_SYSTEM}-gcc ${ARCH_FLAGS}
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/sbin $fs/etc $fs/usr/share/doc/dhid
40 cp ${src}/dhid.conf.sample ${fs}/etc/dhid.conf
41 cp ${src}/README ${fs}/usr/share/doc/dhid
42 cp -a ${src}/dhid ${fs}/usr/sbin
43 cp -a ${stuff}/init.d ${fs}/etc
44 }