summaryrefslogtreecommitdiffstats
path: root/package/portsentry/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 19:17:17 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-16 19:17:17 +0000
commitc5d540327a93ac4d3b6a3826cf6f20fb7a700acd (patch)
tree6bf5f55313ee1c06ec631f40ac3804410140edc8 /package/portsentry/Makefile
parent3a09403a94c91065a9611fb36faa2c44f21c4863 (diff)
add portsentry package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1469 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/portsentry/Makefile')
-rw-r--r--package/portsentry/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/portsentry/Makefile b/package/portsentry/Makefile
new file mode 100644
index 000000000..7c5dd3cf7
--- /dev/null
+++ b/package/portsentry/Makefile
@@ -0,0 +1,34 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=portsentry
+PKG_VERSION:=1.2
+PKG_RELEASE:=1
+PKG_MD5SUM:=3ebd3618ba9abfea2525e236bd44cebd
+
+PKG_SOURCE_URL:=@SF/sentrytools
+PKG_SOURCE:=$(PKG_NAME)-1.2.tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_beta
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PORTSENTRY,portsentry,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) linux
+ touch $@
+
+$(IPKG_PORTSENTRY):
+ mkdir -p $(IDIR_PORTSENTRY)/usr/bin
+ mkdir -p $(IDIR_PORTSENTRY)/etc
+ cp $(PKG_BUILD_DIR)/$(PKG_NAME).conf $(IDIR_PORTSENTRY)/etc/
+ cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_PORTSENTRY)/usr/bin/
+ $(STRIP) $(IDIR_PORTSENTRY)/usr/bin/*
+ $(IPKG_BUILD) $(IDIR_PORTSENTRY) $(PACKAGE_DIR)
+
+mostlyclean:
+ $(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built