pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/38527: DESTDIR support for net/pptp
>Number: 38527
>Category: pkg
>Synopsis: DESTDIR support for net/pptp
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 27 10:35: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:
Wed Apr 23 00:58:08 EEST 2008
cheusov%chen.chizhovka.net@localhost:/srv/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
DESTDIR support
http://www.mova.org/~cheusov/pub/pkgsrc-pbulk/NetBSD/current-destdir/log/20080426.0859/net/pptp/stage_package.html
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/pptp/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile 12 May 2006 09:30:55 -0000 1.11
+++ Makefile 27 Apr 2008 10:30:27 -0000
@@ -11,19 +11,21 @@
NOT_FOR_PLATFORM= Interix-*-*
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_ENV+= ROOT_USER=${ROOT_USER}
-MAKE_FLAGS+= BINDIR=${PREFIX:Q}/sbin
-MAKE_FLAGS+= MANDIR=${PREFIX:Q}/${PKGMANDIR:Q}/man8
-MAKE_FLAGS+= PPPDIR=${PREFIX:Q}/share/examples/pptp
+MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX:Q}/sbin
+MAKE_FLAGS+= MANDIR=${DESTDIR}${PREFIX:Q}/${PKGMANDIR:Q}/man8
+MAKE_FLAGS+= PPPDIR=${DESTDIR}${PREFIX:Q}/share/examples/pptp
INSTALLATION_DIRS= bin ${PKGMANDIR:Q}/man8 share/examples/pptp
INSTALLATION_DIRS+= share/doc/pptp/Documentation share/doc/pptp/Reference
DOCDIR= ${PREFIX}/share/doc/pptp
post-install:
- cd ${WRKSRC:Q}/Documentation && ${INSTALL_DATA} *
${DOCDIR:Q}/Documentation
- cd ${WRKSRC:Q}/Reference && ${INSTALL_DATA} * ${DOCDIR:Q}/Reference
- cd ${WRKSRC:Q} && ${INSTALL_DATA} INSTALL NEWS README USING ${DOCDIR:Q}
+ cd ${WRKSRC:Q}/Documentation && ${INSTALL_DATA} *
${DESTDIR}${DOCDIR:Q}/Documentation
+ cd ${WRKSRC:Q}/Reference && ${INSTALL_DATA} *
${DESTDIR}${DOCDIR:Q}/Reference
+ cd ${WRKSRC:Q} && ${INSTALL_DATA} INSTALL NEWS README USING
${DESTDIR}${DOCDIR:Q}
.include "../../mk/bsd.prefs.mk"
Home |
Main Index |
Thread Index |
Old Index