2005-03-25 01:17:53 +02:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
PKG_NAME:=tcp_wrappers
|
|
|
|
PKG_VERSION:=7.6
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=e6fa25f71226d090f34de3f6b122fb5a
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.porcupine.org/pub/security
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
#$(eval $(call PKG_template,LIBWRAP,libwrap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
.NOTPARALLEL:
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
touch $@
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2005-04-08 12:08:38 +03:00
|
|
|
$(MAKE) -j1 -C $(PKG_BUILD_DIR) \
|
2005-03-25 01:17:53 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2005-05-21 19:05:11 +03:00
|
|
|
OPT_CFLAGS="$(TARGET_CFLAGS)" \
|
2005-03-25 01:17:53 +02:00
|
|
|
LIBS=-lnsl \
|
|
|
|
NETGROUP= \
|
|
|
|
VSYSLOG= \
|
|
|
|
BUGS= \
|
|
|
|
EXTRA_CFLAGS="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
|
|
|
|
-Dss_family=__ss_family -Dss_len=__ss_len" \
|
|
|
|
FACILITY=LOG_DAEMON \
|
|
|
|
SEVERITY=LOG_INFO \
|
|
|
|
REAL_DAEMON_DIR=/usr/sbin \
|
|
|
|
STYLE="-DPROCESS_OPTIONS" \
|
|
|
|
tidy all
|
2005-05-21 19:05:11 +03:00
|
|
|
touch $@
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
$(IPKG_LIBWRAP):
|
|
|
|
install -d -m0755 $(IDIR_LIBWRAP)/usr/lib
|
2005-06-08 22:54:05 +03:00
|
|
|
cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so.* $(IDIR_LIBWRAP)/usr/lib/
|
2005-05-21 19:05:11 +03:00
|
|
|
$(RSTRIP) $(IDIR_LIBWRAP)
|
|
|
|
$(IPKG_BUILD) $(IDIR_LIBWRAP) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(STAGING_DIR)/usr/lib/libwrap.a: $(PKG_BUILD_DIR)/.built
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
2005-06-08 22:54:05 +03:00
|
|
|
cp -fpR $(PKG_BUILD_DIR)/tcpd.h $(STAGING_DIR)/usr/include/
|
2005-05-21 19:05:11 +03:00
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
2005-06-08 22:54:05 +03:00
|
|
|
cp -fpR $(PKG_BUILD_DIR)/libwrap.a $(STAGING_DIR)/usr/lib/
|
|
|
|
# cp -fpR $(PKG_BUILD_DIR)/shared/libwrap.so* $(STAGING_DIR)/usr/lib/
|
2005-05-21 19:05:11 +03:00
|
|
|
touch $@
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
install-dev: $(STAGING_DIR)/usr/lib/libwrap.a
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-05-21 19:05:11 +03:00
|
|
|
uninstall-dev:
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/tcpd.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libwrap.{a,so*} \
|
2005-03-25 01:17:53 +02:00
|
|
|
|
2005-10-22 15:12:59 +03:00
|
|
|
compile-targets: install-dev
|
|
|
|
clean-targets: uninstall-dev
|