source: packages/net/fwknop/Makefile @ 28030

Last change on this file since 28030 was 28030, checked in by florian, 5 years ago

[package] add fwknopd

Signed-off-by; Jonathan Bennett <jbscience87@…>

File size: 1.9 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=fwknopd
4PKG_VERSION:=2.0.0rc2
5PKG_RELEASE:=1
6
7PKG_BUILD_DIR:=$(BUILD_DIR)/fwknop-$(PKG_VERSION)
8PKG_SOURCE:=fwknop-$(PKG_VERSION).tar.gz
9PKG_SOURCE_URL:=http://www.cipherdyne.org/fwknop/download
10PKG_MD5SUM:=c78252216fa9627cacf61b453da915a8
11PKG_CAT:=zcat
12include $(INCLUDE_DIR)/package.mk
13
14define Package/fwknopd
15  SECTION:=net
16  CATEGORY:=Network
17  TITLE:=Firewall Knock Operator Daemon
18  URL:=http://http://www.cipherdyne.org/fwknop/
19  MAINTAINER:=Jonathan Bennett <jbscience87@gmail.com>
20  DEPENDS:=+libpcap +libgdbm +iptables
21endef
22
23define Package/fwknopd/description
24  Firewall Knock Operator Daemon
25  Fwknop implements an authorization scheme known as Single Packet
26  Authorization (SPA) for Linux systems running iptables.  This
27  mechanism requires only a single encrypted and non-replayed
28  packet to communicate various pieces of information including
29  desired access through an iptables policy. The main application
30  of this program is to use iptables in a default-drop stance to
31  protect services such as SSH with an additional layer
32  of security in order to make the exploitation of vulnerabilities
33  (both 0-day and unpatched code) much more difficult.
34endef
35
36define Package/conffiles
37/etc/fwknop/fwknopd.conf
38/etc/fwknop/access.conf
39endef
40
41CONFIGURE_ARGS += \
42        --disable-client \
43        --without-gpgme \
44        --with-iptables=/usr/sbin/iptables
45
46define Package/fwknopd/install
47        $(INSTALL_DIR) $(1)/etc/init.d
48        $(INSTALL_BIN) $(PKG_BUILD_DIR)/extras/fwknop.init.openwrt \
49                $(1)/etc/init.d/fwknopd
50        $(INSTALL_DIR) $(1)/usr/sbin
51        $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/.libs/fwknopd $(1)/usr/sbin/
52        $(INSTALL_DIR) $(1)/usr/lib
53        $(CP) $(PKG_BUILD_DIR)/lib/.libs/libfko.so* $(1)/usr/lib/
54        $(INSTALL_DIR) $(1)/etc/fwknop
55        $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/fwknopd.conf $(1)/etc/fwknop/
56        $(INSTALL_CONF) $(PKG_BUILD_DIR)/server/access.conf $(1)/etc/fwknop/
57
58endef
59
60$(eval $(call BuildPackage,fwknopd))
Note: See TracBrowser for help on using the repository browser.