summaryrefslogtreecommitdiff
path: root/security/tcp_wrappers
diff options
context:
space:
mode:
authorjlam <jlam>2002-08-25 18:38:05 +0000
committerjlam <jlam>2002-08-25 18:38:05 +0000
commitb28e357f6ee52e603c887fc42483ea19558d4048 (patch)
treed2b31bb9a6a069ebfb63079b9dddde1e6688bc4b /security/tcp_wrappers
parent4d330b06ae2802c2520909a77c9b2b5998f05140 (diff)
downloadpkgsrc-b28e357f6ee52e603c887fc42483ea19558d4048.tar.gz
Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
Diffstat (limited to 'security/tcp_wrappers')
-rw-r--r--security/tcp_wrappers/Makefile26
-rw-r--r--security/tcp_wrappers/buildlink2.mk30
2 files changed, 43 insertions, 13 deletions
diff --git a/security/tcp_wrappers/Makefile b/security/tcp_wrappers/Makefile
index 9a00522aed4..6970cbbbcce 100644
--- a/security/tcp_wrappers/Makefile
+++ b/security/tcp_wrappers/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/11/29 01:12:47 hubertf Exp $
+# $NetBSD: Makefile,v 1.7 2002/08/25 18:39:57 jlam Exp $
DISTNAME= tcp_wrappers_7.6-ipv6.1
PKGNAME= tcp_wrappers-7.6.1
@@ -12,7 +12,8 @@ COMMENT= Monitor and filter incoming requests for network services
ONLY_FOR_PLATFORM= SunOS-*-* # in NetBSD base system
-USE_LIBTOOL= YES
+USE_BUILDLINK2= # defined
+USE_LIBTOOL= # defined
ALL_TARGET= sunos5
@@ -21,17 +22,16 @@ MAKE_ENV+= IPV6=-DHAVE_IPV6
.endif
do-install:
+ cd ${WRKSRC}; ${PKGLIBTOOL} ${INSTALL_DATA} libwrap.la ${PREFIX}/lib
+ cd ${WRKSRC}; ${PKGLIBTOOL} ${INSTALL_PROGRAM} \
+ tcpdmatch try-from safe_finger tcpdchk ${PREFIX}/bin
+ cd ${WRKSRC}; ${INSTALL_DATA} tcpd.h ${PREFIX}/include
+ cd ${WRKSRC}; ${PKGLIBTOOL} ${INSTALL_PROGRAM} tcpd ${PREFIX}/libexec
+ cd ${WRKSRC}; ${INSTALL_DATA} *.3 ${PREFIX}/man/man3
+ cd ${WRKSRC}; ${INSTALL_DATA} *.5 ${PREFIX}/man/man5
+ cd ${WRKSRC}; ${INSTALL_DATA} *.8 ${PREFIX}/man/man8
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tcp_wrappers
- cd ${WRKSRC} && \
- ${LIBTOOL} ${INSTALL_DATA} libwrap.la ${PREFIX}/lib && \
- ${LIBTOOL} ${INSTALL_PROGRAM} tcpdmatch try-from safe_finger tcpdchk \
- ${PREFIX}/bin && \
- ${INSTALL_DATA} tcpd.h ${PREFIX}/include && \
- ${LIBTOOL} ${INSTALL_PROGRAM} tcpd ${PREFIX}/libexec && \
- ${INSTALL_DATA} *.3 ${PREFIX}/man/man3 && \
- ${INSTALL_DATA} *.5 ${PREFIX}/man/man5 && \
- ${INSTALL_DATA} *.8 ${PREFIX}/man/man8 && \
- ${INSTALL_DATA} README README.NIS README.ipv6 \
- ${PREFIX}/share/doc/tcp_wrappers
+ cd ${WRKSRC}; ${INSTALL_DATA} README README.NIS README.ipv6 \
+ ${PREFIX}/share/doc/tcp_wrappers
.include "../../mk/bsd.pkg.mk"
diff --git a/security/tcp_wrappers/buildlink2.mk b/security/tcp_wrappers/buildlink2.mk
new file mode 100644
index 00000000000..ef0bac60f8e
--- /dev/null
+++ b/security/tcp_wrappers/buildlink2.mk
@@ -0,0 +1,30 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:58 jlam Exp $
+
+.if !defined(TCP_WRAPPERS_BUILDLINK2_MK)
+TCP_WRAPPERS_BUILDLINK2_MK= # defined
+
+BUILDLINK_DEPENDS.tcp_wrappers?= tcp_wrappers>=7.6.1nb1
+BUILDLINK_PKGSRCDIR.tcp_wrappers?= ../../security/tcp_wrappers
+
+.if exists(/usr/include/tcpd.h)
+_NEED_TCP_WRAPPERS= NO
+.else
+_NEED_TCP_WRAPPERS= YES
+.endif
+
+.if ${_NEED_TCP_WRAPPERS} == "YES"
+BUILDLINK_PACKAGES+= tcp_wrappers
+EVAL_PREFIX+= BUILDLINK_PREFIX.tcp_wrappers=tcp_wrappers
+BUILDLINK_PREFIX.tcp_wrappers_DEFAULT= ${LOCALBASE}
+.else
+BUILDLINK_PREFIX.tcp_wrappers= /usr
+.endif
+
+BUILDLINK_FILES.tcp_wrappers= include/tcpd.h
+BUILDLINK_FILES.tcp_wrappers+= lib/libwrap.*
+
+BUILDLINK_TARGETS+= tcp_wrappers-buildlink
+
+tcp_wrappers-buildlink: _BUILDLINK_USE
+
+.endif # TCP_WRAPPERS_BUILDLINK2_MK