pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/xdg-utils



Module Name:    pkgsrc
Committed By:   leot
Date:           Mon Aug 20 00:43:33 UTC 2018

Modified Files:
        pkgsrc/misc/xdg-utils: Makefile

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/misc/xdg-utils/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/xdg-utils/Makefile
diff -u pkgsrc/misc/xdg-utils/Makefile:1.13 pkgsrc/misc/xdg-utils/Makefile:1.14
--- pkgsrc/misc/xdg-utils/Makefile:1.13 Sat May 12 10:11:49 2018
+++ pkgsrc/misc/xdg-utils/Makefile      Mon Aug 20 00:43:33 2018
@@ -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_MESSAGE.gsed=  Use GNU grep/sed ins
 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