enable dirname and id by default (needed by openswan)
[openwrt.git] / package / tcp_wrappers / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := tcp_wrappers
6 PKG_VERSION := 7.6
7 PKG_RELEASE := 1
8 PKG_MD5SUM := e6fa25f71226d090f34de3f6b122fb5a
9
10 PKG_SOURCE_SITE := ftp://ftp.porcupine.org/pub/security
11 PKG_SOURCE_FILE := $(PKG_NAME)_$(PKG_VERSION).tar.gz
12 PKG_SOURCE_CAT := zcat
13 PKG_SOURCE_DIR := $(PKG_NAME)_$(PKG_VERSION)
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
15
16 # only need libwrap.a at the moment
17 #PKG_IPK := $(PACKAGE_DIR)/zlib_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
18
19 .NOTPARALLEL:
20
21 $(DL_DIR)/$(PKG_SOURCE_FILE):
22 mkdir -p $(DL_DIR)
23 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
24
25 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE_FILE)
26 mkdir -p $(TOOL_BUILD_DIR)
27 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
28 $(PATCH) $(PKG_BUILD_DIR) ./patches
29 touch $(PKG_BUILD_DIR)/.patched
30
31 $(PKG_BUILD_DIR)/libwrap.a: $(PKG_BUILD_DIR)/.patched
32 $(MAKE) -j1 -C $(PKG_BUILD_DIR) \
33 $(TARGET_CONFIGURE_OPTS) \
34 COPTS="$(TARGET_CFLAGS)" \
35 LIBS=-lnsl \
36 NETGROUP= \
37 VSYSLOG= \
38 BUGS= \
39 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
40 -Dss_family=__ss_family -Dss_len=__ss_len" \
41 FACILITY=LOG_DAEMON \
42 SEVERITY=LOG_INFO \
43 REAL_DAEMON_DIR=/usr/sbin \
44 STYLE="-DPROCESS_OPTIONS" \
45 tidy all
46
47 $(STAGING_DIR)/lib/libwrap.a: $(PKG_BUILD_DIR)/libwrap.a
48 mkdir -p $(STAGING_DIR)/include/
49 cp -f $(PKG_BUILD_DIR)/tcpd.h $(STAGING_DIR)/include/
50 cp -f $^ $@
51
52 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
53 prepare: $(PKG_BUILD_DIR)/.patched
54 compile: $(STAGING_DIR)/lib/libwrap.a
55 install:
56
57 clean:
58 rm -rf $(PKG_BUILD_DIR)
59 rm -f $(STAGING_DIR)/lib/libwrap.a
60
This page took 0.049314 seconds and 5 git commands to generate.