enabled when DEVELOPER=1
[openwrt.git] / openwrt / 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_URL:=ftp://ftp.porcupine.org/pub/security
11 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 #$(eval $(call PKG_template,LIBWRAP,libwrap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 .NOTPARALLEL:
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -j1 -C $(PKG_BUILD_DIR) \
27 $(TARGET_CONFIGURE_OPTS) \
28 OPT_CFLAGS="$(TARGET_CFLAGS)" \
29 LIBS=-lnsl \
30 NETGROUP= \
31 VSYSLOG= \
32 BUGS= \
33 EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
34 -Dss_family=__ss_family -Dss_len=__ss_len" \
35 FACILITY=LOG_DAEMON \
36 SEVERITY=LOG_INFO \
37 REAL_DAEMON_DIR=/usr/sbin \
38 STYLE="-DPROCESS_OPTIONS" \
39 tidy all
40 touch $@
41
42 $(IPKG_LIBWRAP):
43 install -d -m0755 $(IDIR_LIBWRAP)/usr/lib
44 cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so.* $(IDIR_LIBWRAP)/usr/lib/
45 $(RSTRIP) $(IDIR_LIBWRAP)
46 $(IPKG_BUILD) $(IDIR_LIBWRAP) $(PACKAGE_DIR)
47
48 $(STAGING_DIR)/usr/lib/libwrap.a: $(PKG_BUILD_DIR)/.built
49 mkdir -p $(STAGING_DIR)/usr/include
50 cp -fpR $(PKG_BUILD_DIR)/tcpd.h $(STAGING_DIR)/usr/include/
51 mkdir -p $(STAGING_DIR)/usr/lib
52 cp -fpR $(PKG_BUILD_DIR)/libwrap.a $(STAGING_DIR)/usr/lib/
53 # cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so* $(STAGING_DIR)/usr/lib/
54 touch $@
55
56 install-dev: $(STAGING_DIR)/usr/lib/libwrap.a
57
58 uninstall-dev:
59 rm -rf \
60 $(STAGING_DIR)/usr/include/tcpd.h \
61 $(STAGING_DIR)/usr/lib/libwrap.{a,so*} \
62
63 compile: install-dev
64 clean: uninstall-dev
This page took 0.048915 seconds and 5 git commands to generate.