source: packages/net/scanlogd/Makefile

Last change on this file was 40156, checked in by juhosg, 3 years ago

packages/scanlogd: fix whitespaces

Signed-off-by: Dirk Neukirchen <dirkneukirchen@…>
Signed-off-by: Gabor Juhos <juhosg@…>

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006-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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=scanlogd
11PKG_VERSION:=2.2.6
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.openwall.com/scanlogd/ \
16        ftp://ftp.wiretapped.net/pub/openwall/ \
17        http://distro.ibiblio.org/pub/linux/distributions/openwall/
18PKG_MD5SUM:=7b8187ea718ebe47f22805b921b909ab
19
20PKG_INIT_PRIO:=60
21
22include $(INCLUDE_DIR)/package.mk
23
24define Package/scanlogd
25  SECTION:=net
26  CATEGORY:=Network
27  SUBMENU:=Firewall
28  DEPENDS:=+libpcap +libnet0 +libnids
29  TITLE:=Port scan detection tool
30  URL:=http://www.openwall.com/scanlogd
31endef
32
33define Package/scanlogd/description
34        Scanlogd is a TCP port scan detection tool, originally designed
35        to illustrate various attacks an IDS developer has to deal with.
36        Thus, unlike some of the other port scan detection tools out there,
37        scanlogd is designed to be totally safe to use.
38endef
39
40define Build/Configure
41        $(SED) 's,^#define \(SCANLOGD_CHROOT\).*,#define \1 "/var/run/scanlogd",' \
42            -e 's,^#undef \(SCANLOGD_DEVICE\),#define \1 "all",' \
43            $(PKG_BUILD_DIR)/params.h
44endef
45
46define Build/Compile
47        $(MAKE) -C $(PKG_BUILD_DIR) \
48                $(TARGET_CONFIGURE_OPTS) \
49                CC="$(TARGET_CC)" LD="$(TARGET_CC)" CFLAGS="-c $(TARGET_CFLAGS)" \
50                LDFLAGS= \
51                PCAP_H="$(TARGET_CPPFLAGS)" \
52                NIDS_H="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libnet-1.0.x/include" \
53                NIDS_L="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libnet-1.0.x/lib -lnids -lnet -lpcap" \
54                libnids
55endef
56
57define Package/scanlogd/install
58        $(INSTALL_DIR) $(1)/usr/sbin
59        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
60        $(INSTALL_DIR) $(1)/etc/init.d
61        $(INSTALL_BIN) ./files/scanlogd.init $(1)/etc/init.d/scanlogd
62endef
63
64$(eval $(call BuildPackage,scanlogd))
Note: See TracBrowser for help on using the repository browser.