source: freewrt/package/scanlogd/Makefile@ c92444e

freewrt_1_0 freewrt_2_0
Last change on this file since c92444e was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

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