pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/xdg-utils xdg-utils: Avoid hardcoded paths via a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/414f81d131ef
branches:  trunk
changeset: 384242:414f81d131ef
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon Aug 20 00:43:33 2018 +0000

description:
xdg-utils: Avoid hardcoded paths via a SUBST

Previously all xdg-utils scripts just honored system /usr/local and /etc, fix
that by substitute them via SUBST framework.

Bump PKGREVISION

diffstat:

 misc/xdg-utils/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 86fa36a35bbe -r 414f81d131ef misc/xdg-utils/Makefile
--- a/misc/xdg-utils/Makefile   Sun Aug 19 20:30:22 2018 +0000
+++ b/misc/xdg-utils/Makefile   Mon Aug 20 00:43:33 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2018/05/12 10:11:49 leot Exp $
+# $NetBSD: Makefile,v 1.14 2018/08/20 00:43:33 leot Exp $
 
 DISTNAME=      xdg-utils-1.1.3
+PKGREVISION=   1
 CATEGORIES=    misc
 MASTER_SITES=  https://portland.freedesktop.org/download/
 
@@ -23,6 +24,13 @@
 SUBST_SED.gsed+=       -e "s, sed , ${TOOLS_PATH.gsed} ,g"
 SUBST_SED.gsed+=       -e "s, grep , ${TOOLS_PATH.grep} ,g"
 
+SUBST_CLASSES+=                paths
+SUBST_FILES.paths=     scripts/xdg-*.in
+SUBST_STAGE.paths=     pre-configure
+SUBST_MESSAGE.paths=   Avoid hardcoded paths.
+SUBST_SED.paths+=      -e "s,/usr/local,${PREFIX},g"
+SUBST_SED.paths+=      -e "s,/etc,${PKG_SYSCONFDIR},g"
+
 # "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh
 REPLACE_BASH+= scripts/xdg-*
 



Home | Main Index | Thread Index | Old Index