2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=tcp_wrappers
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.porcupine.org
/pub
/security
16 PKG_MD5SUM
:=e6fa25f71226d090f34de3f6b122fb5a
19 PKG_LICENE_FILES
:=DISCLAIMER
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/libwrap
28 TITLE
:=Security wrapper library for TCP services
29 URL
:=ftp
://ftp.porcupine.org
/pub
/security
/index.html
32 TARGET_CFLAGS
+= $(FPIC
)
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 $(TARGET_CONFIGURE_OPTS
) \
37 OPT_CFLAGS
="$(TARGET_CFLAGS)" \
42 EXTRA_CFLAGS
="-DSYS_ERRLIST_DEFINED -DHAVE_STRERROR -DHAVE_WEAKSYMS -D_REENTRANT -DINET6=1 \
43 -Dss_family=__ss_family -Dss_len=__ss_len" \
46 REAL_DAEMON_DIR
=/usr
/sbin \
47 STYLE
="-DPROCESS_OPTIONS" \
51 define Build
/InstallDev
52 $(INSTALL_DIR
) $(1)/usr
/include
53 $(CP
) $(PKG_BUILD_DIR
)/tcpd.h
$(1)/usr
/include/
54 $(INSTALL_DIR
) $(1)/usr
/lib
55 $(CP
) $(PKG_BUILD_DIR
)/libwrap.a
$(1)/usr
/lib
/
56 $(CP
) $(PKG_BUILD_DIR
)/shared
/libwrap.so
* $(1)/usr
/lib
/
59 define Package
/libwrap
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_BUILD_DIR
)/shared
/libwrap.so.
* $(1)/usr
/lib
/
64 $(eval
$(call BuildPackage
,libwrap
))