wok-6.x annotate apcupsd/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | 5f6c5106b1f5 |
children |
rev | line source |
---|---|
pascal@11216 | 1 # SliTaz package receipt. |
pascal@11216 | 2 |
pascal@11216 | 3 PACKAGE="apcupsd" |
Hans-G?nter@22487 | 4 VERSION="3.14.14" |
pascal@11216 | 5 CATEGORY="system-tools" |
Hans-G?nter@22487 | 6 SHORT_DESC="APC UPS Power Management (daemon)." |
Hans-G?nter@22487 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@15362 | 8 LICENSE="GPL2" |
pascal@24897 | 9 WEB_SITE="http://www.apcupsd.org/" |
Hans-G?nter@22487 | 10 |
pascal@11216 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22487 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11216 | 13 |
Hans-G?nter@22487 | 14 BUILD_DEPENDS="libgd libgd-dev slitaz-dev-pkgs" |
pascal@15362 | 15 |
pascal@24340 | 16 # What is the latest version available today? |
pascal@24340 | 17 current_version() |
pascal@24340 | 18 { |
pascal@24340 | 19 wget -O - https://sourceforge.net/projects/apcupsd/files/apcupsd%20-%20Stable/ 2>/dev/null | \ |
pascal@24340 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;s|.*/apcupsd%20-%20Stable/||;s|/.*||;q' |
pascal@24340 | 22 } |
pascal@24340 | 23 |
pascal@11216 | 24 # Rules to configure and make the package. |
pascal@11216 | 25 compile_rules() |
pascal@11216 | 26 { |
pascal@11216 | 27 sed -i 's/src platforms doc/src platforms/' Makefile |
Hans-G?nter@22487 | 28 SHUTDOWN=/sbin/poweroff ac_cv_func_setpgrp_void=yes \ |
Hans-G?nter@22487 | 29 ./configure \ |
Hans-G?nter@22487 | 30 --enable-usb \ |
Hans-G?nter@22487 | 31 --disable-snmp \ |
Hans-G?nter@22487 | 32 --disable-net \ |
Hans-G?nter@22487 | 33 --with-upstype=usb \ |
Hans-G?nter@22487 | 34 --with-dev= \ |
Hans-G?nter@22487 | 35 --enable-threads \ |
Hans-G?nter@22487 | 36 --enable-cgi \ |
Hans-G?nter@22487 | 37 --prefix=/usr \ |
Hans-G?nter@22487 | 38 --infodir=/usr/share/info \ |
Hans-G?nter@22487 | 39 --mandir=/usr/share/man \ |
pascal@11216 | 40 $CONFIGURE_ARGS && |
Hans-G?nter@22487 | 41 make && |
Hans-G?nter@22487 | 42 make install |
al@19265 | 43 |
al@19275 | 44 cook_pick_manpages $src/doc/*.5 $src/doc/*.8 |
pascal@11216 | 45 } |
pascal@11216 | 46 |
pascal@11216 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11216 | 48 genpkg_rules() |
pascal@11216 | 49 { |
pascal@15362 | 50 cp -a $install/* $fs |
al@19275 | 51 rm -r $fs/usr/share/man |
pascal@11216 | 52 } |