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