Port portsentry to -ng
[openwrt/svn-archive/archive.git] / net / portsentry / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=portsentry
12 PKG_VERSION:=1.2
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=3ebd3618ba9abfea2525e236bd44cebd
15
16 PKG_SOURCE_URL:=@SF/sentrytools
17 PKG_SOURCE:=$(PKG_NAME)-1.2.tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_beta
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/portsentry
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Portscan protection utility
28 DESCRIPTION:=Software for protection against port scans
29 URL:=http://sourceforge.net/projects/sentrytools
30 endef
31
32 define Package/portsentry/conffiles
33 /etc/portsentry.conf
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) linux
38 endef
39
40 define Package/portsentry/install
41 mkdir -p $(1)/usr/bin
42 mkdir -p $(1)/etc
43 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(1)/etc/
44 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,portsentry))