wok-current view knock/receipt @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | 96d99c76c5e9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="knock"
4 VERSION="0.8"
5 CATEGORY="security"
6 SHORT_DESC="Port knock sequence listener."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/jvinet/knock"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/jvinet/knock/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="iptables libpcap"
15 BUILD_DEPENDS="automake libpcap-dev"
17 CONFIG_FILES="/etc/knockd.conf"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/jvinet/knock/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # 0.8 obsolete
30 # patch -p1 < $stuff/knock.u
31 autoreconf -fi &&
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --sysconfdir=/etc \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install DESTDIR=$DESTDIR
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $stuff/etc $fs
46 cp -a $stuff/usr $fs
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/etc $fs
50 }