3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:= tcp_wrappers
8 PKG_MD5SUM
:= e6fa25f71226d090f34de3f6b122fb5a
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
)
16 # only need libwrap.a at the moment
17 #PKG_IPK := $(PACKAGE_DIR)/zlib_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
21 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
23 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
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
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)" \
39 EXTRA_CFLAGS
="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
40 -Dss_family=__ss_family -Dss_len=__ss_len" \
43 REAL_DAEMON_DIR
=/usr
/sbin \
44 STYLE
="-DPROCESS_OPTIONS" \
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/
52 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
53 prepare
: $(PKG_BUILD_DIR
)/.patched
54 compile
: $(STAGING_DIR
)/lib
/libwrap.a
58 rm -rf
$(PKG_BUILD_DIR
)
59 rm -f
$(STAGING_DIR
)/lib
/libwrap.a