pkgsrc-Changes-HG archive

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

[pkgsrc/pkgsrc-2016Q3]: pkgsrc/databases/geneweb Pullup ticket #5131 - reques...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6cbdc1719e51
branches:  pkgsrc-2016Q3
changeset: 408782:6cbdc1719e51
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Sat Oct 15 18:06:08 2016 +0000

description:
Pullup ticket #5131 - requested by dholland
databases/geneweb: build fix

Revisions pulled up:
- databases/geneweb/Makefile                                    1.44

---
   Module Name: pkgsrc
   Committed By:        dholland
   Date:                Sun Oct  9 21:25:11 UTC 2016

   Modified Files:
        pkgsrc/databases/geneweb: Makefile

   Log Message:
   Fix install rule. Switch to user-destdir. Should retire PR 51545.
   PKGREVISION -> 10 because prior packages might have unintended mode 600
   data files.

diffstat:

 databases/geneweb/Makefile |  39 ++++++++++++++++-----------------------
 1 files changed, 16 insertions(+), 23 deletions(-)

diffs (87 lines):

diff -r 3097f045c79e -r 6cbdc1719e51 databases/geneweb/Makefile
--- a/databases/geneweb/Makefile        Sat Oct 15 18:02:14 2016 +0000
+++ b/databases/geneweb/Makefile        Sat Oct 15 18:06:08 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.43 2016/05/05 11:45:37 jaapb Exp $
+# $NetBSD: Makefile,v 1.43.4.1 2016/10/15 18:06:08 bsiegert Exp $
 #
 
 DISTNAME=      geneweb-5.01
-PKGREVISION=   9
+PKGREVISION=   10
 CATEGORIES=    databases
 EXTRACT_SUFX=  .tgz
 MASTER_SITES=  ftp://ftp.inria.fr/INRIA/Projects/cristal/geneweb/Src/ \
@@ -15,9 +15,9 @@
 # A macports packages is at:
 #  http://db.macports.org/port/show/903
 
-PKG_DESTDIR_SUPPORT=   destdir
+PKG_DESTDIR_SUPPORT=   user-destdir
 
-USE_TOOLS+=    gmake
+USE_TOOLS+=    gmake pax
 HAS_CONFIGURE= YES
 
 # ocaml can compile in two modes; if the optimizing compiler
@@ -39,27 +39,22 @@
 # (not checked in 5.01)
 INSTALL_PROGRAM =  ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
 
-# XXX How does this relate to do-install?
-INSTALLATION_DIRS=     bin libexec sbin
+INSTALLATION_DIRS=     bin libexec sbin share/examples/geneweb \
+                       share/doc/geneweb share/geneweb/etc \
+                       share/geneweb/gwtp_tmp share/geneweb/images \
+                       share/geneweb/lang share/geneweb/setup
 
 post-build:
                cd ${WRKSRC} && ${GMAKE} distrib
 
-# XXX do not use CP
-# XXX better permission fix
 # XXX maybe:
 #   gwc2 update_nldb
 # XXX doc should be in html
 # XXX LICENSE.txt should be installed
 
 do-install:
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/geneweb
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/geneweb
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/geneweb/etc
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/geneweb/gwtp_tmp
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/geneweb/images
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/geneweb/lang
-               ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/geneweb/setup
+               ${CHMOD} -R go+rX ${WRKSRC}/distribution/gw
+               ${CHMOD} 444 ${WRKSRC}/distribution/gw/etc/*
                cd ${WRKSRC}/distribution/gw && \
                ${INSTALL_PROGRAM} gwd ${DESTDIR}${PREFIX}/libexec && \
                ${INSTALL_PROGRAM} consang ${DESTDIR}${PREFIX}/bin && \
@@ -69,20 +64,18 @@
                ${INSTALL_PROGRAM} gwb2ged ${DESTDIR}${PREFIX}/bin && \
                ${INSTALL_PROGRAM} gwsetup ${DESTDIR}${PREFIX}/sbin && \
                ${INSTALL_PROGRAM} gwu ${DESTDIR}${PREFIX}/bin && \
-               ${CP} -Rp doc/* ${DESTDIR}${PREFIX}/share/doc/geneweb && \
-               ${CHMOD} 444 etc/* && \
-               ${CP} -Rp etc ${DESTDIR}${PREFIX}/share/geneweb && \
-               ${CP} -Rp gwtp_tmp ${DESTDIR}${PREFIX}/share/geneweb && \
-               ${CP} -Rp images ${DESTDIR}${PREFIX}/share/geneweb && \
-               ${CP} -Rp lang ${DESTDIR}${PREFIX}/share/geneweb && \
-               ${CP} -Rp setup ${DESTDIR}${PREFIX}/share/geneweb && \
+               (cd doc && pax -rw -pp * ${DESTDIR}${PREFIX}/share/doc/geneweb) && \
+               pax -rw -pp etc ${DESTDIR}${PREFIX}/share/geneweb && \
+               pax -rw -pp gwtp_tmp ${DESTDIR}${PREFIX}/share/geneweb && \
+               pax -rw -pp images ${DESTDIR}${PREFIX}/share/geneweb && \
+               pax -rw -pp lang ${DESTDIR}${PREFIX}/share/geneweb && \
+               pax -rw -pp setup ${DESTDIR}${PREFIX}/share/geneweb && \
                ${INSTALL_DATA} a.gwf ${DESTDIR}${PREFIX}/share/examples/geneweb && \
                ${INSTALL_DATA} only.txt ${DESTDIR}${PREFIX}/share/examples/geneweb
                ${TOUCH} ${DESTDIR}${PREFIX}/share/geneweb/gwtp_tmp/passwd
                ${TOUCH} ${DESTDIR}${PREFIX}/share/geneweb/gwtp_tmp/gwtp.log
                ${CHMOD} 600 ${DESTDIR}${PREFIX}/share/geneweb/gwtp_tmp/passwd
                ${CHMOD} 600 ${DESTDIR}${PREFIX}/share/geneweb/gwtp_tmp/gwtp.log
-               ${CHOWN} -R root:${ROOT_GROUP} ${DESTDIR}${PREFIX}/share/geneweb
 
 .include "../../lang/camlp5/buildlink3.mk"
 .include "../../lang/ocaml/buildlink3.mk"



Home | Main Index | Thread Index | Old Index