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