wok annotate fwknop/receipt @ rev 24776
jack1: added build dependency gcc83
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 19 17:48:51 2022 +0100 (2022-03-19) |
parents | 5ac54b83c335 |
children | fe7f66b054ed |
rev | line source |
---|---|
pascal@19419 | 1 # SliTaz package receipt. |
pascal@19419 | 2 |
pascal@19419 | 3 PACKAGE="fwknop" |
pascal@20521 | 4 VERSION="2.6.10" |
pascal@19419 | 5 CATEGORY="network" |
pascal@20521 | 6 SHORT_DESC="Single Packet Authorization (FireWall KNock OPerator)" |
pascal@19419 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19419 | 8 LICENSE="GPL2" |
pascal@19419 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@19419 | 10 WEB_SITE="http://www.cipherdyne.org/fwknop/" |
pascal@19419 | 11 WGET_URL="${WEB_SITE}download/$TARBALL" |
pascal@19422 | 12 CONFIG_FILES="/etc/fwknop" |
pascal@19419 | 13 |
pascal@19422 | 14 DEPENDS="iptables gpgme gnupg libgpg-error" |
pascal@19422 | 15 BUILD_DEPENDS="libpcap-dev gpgme-dev gnupg iptables" |
pascal@19419 | 16 |
pascal@24427 | 17 # What is the latest version available today? |
pascal@24427 | 18 current_version() |
pascal@24427 | 19 { |
pascal@24427 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24427 | 21 sed "/dep/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24427 | 22 } |
pascal@24427 | 23 |
pascal@19419 | 24 # Rules to configure and make the package. |
pascal@19419 | 25 compile_rules() |
pascal@19419 | 26 { |
pascal@19419 | 27 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@19419 | 28 --sysconfdir=/etc \ |
pascal@19419 | 29 --mandir=/usr/share/man \ |
pascal@19419 | 30 $CONFIGURE_ARGS && |
pascal@19419 | 31 make && |
pascal@19419 | 32 make DESTDIR=$DESTDIR install |
pascal@19419 | 33 } |
pascal@19419 | 34 |
pascal@19419 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19419 | 36 genpkg_rules() |
pascal@19419 | 37 { |
pascal@19422 | 38 mkdir -p $fs/usr/lib $install/usr/share/doc |
pascal@19422 | 39 cp $src/README $install/usr/share/doc |
pascal@19422 | 40 cp $src/CREDITS $install/usr/share/doc |
pascal@19422 | 41 cp $src/AUTHORS $install/usr/share/doc |
pascal@19423 | 42 cp $src/ChangeLog $install/usr/share/doc |
pascal@19419 | 43 cp -a $install/etc $fs |
pascal@19419 | 44 cp -a $install/usr/bin $fs/usr |
pascal@19419 | 45 cp -a $install/usr/sbin $fs/usr |
pascal@19419 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@19419 | 47 } |