packages/mdnsreposnder: various changes:
[openwrt/svn-archive/archive.git] / net / portsentry / Makefile
1 #
2 # Copyright (C) 2007-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=portsentry
11 PKG_VERSION:=1.2
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-1.2.tar.gz
15 PKG_SOURCE_URL:=@SF/sentrytools
16 PKG_MD5SUM:=3ebd3618ba9abfea2525e236bd44cebd
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_beta
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/portsentry
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Firewall
26 TITLE:=Portscan protection utility
27 URL:=http://sourceforge.net/projects/sentrytools
28 endef
29
30 define Package/portsentry/conffiles
31 /etc/portsentry.conf
32 endef
33
34 MAKE_FLAGS += \
35 CFLAGS="$(TARGET_CFLAGS) -DNODAEMON" \
36 linux \
37
38 define Package/portsentry/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/portsentry $(1)/usr/bin/
41 $(INSTALL_DIR) $(1)/etc
42 $(INSTALL_DATA) $(PKG_BUILD_DIR)/portsentry.conf $(1)/etc/
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/portsentry.init $(1)/etc/init.d/portsentry
45 $(SED) 's|^\(.*_FILE\)="/usr/local/psionic/\(portsentry/.*\)"|\1="/var/run/\2"|g' \
46 $(1)/etc/portsentry.conf
47 endef
48
49 $(eval $(call BuildPackage,portsentry))