pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/39905: patch: DESTDIR support for tcp_wrappers
>Number: 39905
>Category: pkg
>Synopsis: patch: DESTDIR support for tcp_wrappers (required by 227 pkgs)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 12 19:00:00 +0000 2008
>Originator: cheusov%tut.by@localhost
>Release: NetBSD 4.0_STABLE
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_STABLE NetBSD 4.0_STABLE (GENERIC) #3:
Sun Oct 19 20:54:51 EEST 2008
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Below is the patch for DESTDIR support security/tcp_wrappers
package required by 227 other packages.
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/tcp_wrappers/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile 16 Oct 2007 23:49:02 -0000 1.32
+++ Makefile 12 Nov 2008 18:44:34 -0000
@@ -11,8 +11,9 @@
COMMENT= Monitor and filter incoming requests for network services
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
-USE_LIBTOOL= yes
+USE_LIBTOOL= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.tcp_wrappers
PKG_SUPPORTED_OPTIONS= inet6
@@ -54,20 +55,22 @@
$$file.BAK > $$file; \
done
+DOCDIR= ${PREFIX}/share/doc/tcp_wrappers
+INSTALLATION_DIRS+= ${DOCDIR}
+
do-install:
cd ${WRKSRC}; ${LIBTOOL} --mode=install \
- ${INSTALL_LIB} libwrap.la ${PREFIX}/lib
+ ${INSTALL_LIB} libwrap.la ${DESTDIR}${PREFIX}/lib
cd ${WRKSRC}; ${LIBTOOL} --mode=install \
${INSTALL_PROGRAM} \
- tcpdmatch try-from safe_finger tcpdchk ${PREFIX}/bin
- cd ${WRKSRC}; ${INSTALL_DATA} tcpd.h ${PREFIX}/include
+ tcpdmatch try-from safe_finger tcpdchk ${DESTDIR}${PREFIX}/bin
+ cd ${WRKSRC}; ${INSTALL_DATA} tcpd.h ${DESTDIR}${PREFIX}/include
cd ${WRKSRC}; ${LIBTOOL} --mode=install \
- ${INSTALL_PROGRAM} tcpd ${PREFIX}/libexec
- cd ${WRKSRC}; ${INSTALL_DATA} *.3 ${PREFIX}/${PKGMANDIR}/man3
- cd ${WRKSRC}; ${INSTALL_DATA} *.5 ${PREFIX}/${PKGMANDIR}/man5
- cd ${WRKSRC}; ${INSTALL_DATA} *.8 ${PREFIX}/${PKGMANDIR}/man8
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tcp_wrappers
+ ${INSTALL_PROGRAM} tcpd ${DESTDIR}${PREFIX}/libexec
+ cd ${WRKSRC}; ${INSTALL_DATA} *.3 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3
+ cd ${WRKSRC}; ${INSTALL_DATA} *.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
+ cd ${WRKSRC}; ${INSTALL_DATA} *.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
cd ${WRKSRC}; ${INSTALL_DATA} README README.NIS README.ipv6 \
- ${PREFIX}/share/doc/tcp_wrappers
+ ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index