source: freewrt/package/scanlogd/Makefile@ 45e7b1b

freewrt_1_0 freewrt_2_0
Last change on this file since 45e7b1b was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= scanlogd
10PKG_VERSION:= 2.2.6
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 7b8187ea718ebe47f22805b921b909ab
13
14PKG_SOURCE_URL:= http://www.openwall.com/scanlogd/ \
15 ftp://ftp.wiretapped.net/pub/openwall/ \
16 http://distro.ibiblio.org/pub/linux/distributions/openwall/
17PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19include $(TOPDIR)/mk/package.mk
20
21$(eval $(call PKG_template,SCANLOGD,scanlogd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 $(SED) "s,/var/empty,/tmp/.scanlogd," $(WRKBUILD)/params.h
25 $(SED) "s,#undef SCANLOGD_DEVICE,#define SCANLOGD_DEVICE \"all\"," $(WRKBUILD)/params.h
26 touch $@
27
28$(WRKBUILD)/.built:
29 $(MAKE) -C $(WRKBUILD) \
30 $(TARGET_CONFIGURE_OPTS) \
31 CC=$(TARGET_CC) LD=$(TARGET_CC) CFLAGS="-c $(TARGET_CFLAGS)" \
32 LDFLAGS= \
33 PCAP_H="-I$(STAGING_DIR)/usr/include" \
34 NIDS_H="-I$(STAGING_DIR)/usr/include" \
35 NIDS_L="-L$(STAGING_DIR)/usr/lib -lnids -lnet -lpcap" \
36 libnids
37 touch $@
38
39$(IPKG_SCANLOGD):
40 install -d -m0755 $(IDIR_SCANLOGD)/etc/init.d
41 install -m0755 ./files/scanlogd.init $(IDIR_SCANLOGD)/etc/init.d/S60scanlogd
42 install -d -m0755 $(IDIR_SCANLOGD)/usr/sbin
43 install -m0755 $(WRKBUILD)/$(PKG_NAME) $(IDIR_SCANLOGD)/usr/sbin/
44 $(RSTRIP) $(IDIR_SCANLOGD)
45 $(IPKG_BUILD) $(IDIR_SCANLOGD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.