pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/39930: [maintainer update] USER_DESTDIR patch for wm/ctwm



>Number:         39930
>Category:       pkg
>Synopsis:       [maintainer update] USER_DESTDIR patch for wm/ctwm
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 15 21:10:07 +0000 2008
>Originator:     Rhialto
>Release:        NetBSD 4.0
>Organization:
        
>Environment:
        
        
System: NetBSD radl.falu.nl 4.0 NetBSD 4.0 
(Radl-s_Pervasion_of_the_Incorrect_Chord) #5: Fri May 16 23:41:31 CEST 2008 
root%radl.falu.nl@localhost:/usr/src/sys/arch/amd64/compile/RADL4.0 amd64
Architecture: x86_64
Machine: amd64
>Description:
        Aleksey Cheusov <cheusov%tut.by@localhost>  sent me the following patch.
        I don't have much experience withh DESTDIR but it appears to 
        be ok.

>How-To-Repeat:
        
>Fix:
        

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/wm/ctwm/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- Makefile    17 Feb 2007 08:27:11 -0000      1.21
+++ Makefile    15 Nov 2008 19:56:36 -0000
@@ -10,6 +10,8 @@
 COMMENT=       Window manager with support for multiple virtual screens and 
Gnome 1.x
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 USE_IMAKE=     YES
 
 .include "../../mk/bsd.prefs.mk"
@@ -31,9 +33,9 @@
 EXAMPLEDIR=${PREFIX}/share/examples/ctwm
 
 pre-install:
-       ${INSTALL_DATA_DIR} ${EXAMPLEDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR}
 .for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc system.ctwmrc 
system.ctwmrc.gnome
-       ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLEDIR}
+       ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EXAMPLEDIR}
 .endfor
 
 .include "../../graphics/jpeg/buildlink3.mk"

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert    -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl      -- Cetero censeo "authored" delendum esse.

>Unformatted:
 
        
        


Home | Main Index | Thread Index | Old Index