[patchteam] - Daemonlogger is a packet logger and soft tap developed by Martin Roesch...
[openwrt/svn-archive/archive.git] / net / daemonlogger / 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:=daemonlogger
11 PKG_VERSION:=1.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=463
15 PKG_SOURCE_URL:=http://www.snort.org/downloads/
16 PKG_CAT:=zcat
17 PKG_MD5SUM:=acb64aa6cd5777e297569f100b5c39ee
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/daemonlogger
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpcap +libdnet
29 TITLE:=Software Network Tap
30 URL:=http://www.snort.org/snort-downloads/additional-downloads
31 endef
32
33 CONFIGURE_VARS += \
34 BUILD_CC="$(TARGET_CC)" \
35 HOSTCC="$(HOSTCC)"
36
37 MAKE_FLAGS := CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
38
39 define Package/daemonlogger/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/daemonlogger $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,daemonlogger))