diff options
author | leot <leot@pkgsrc.org> | 2018-08-20 00:43:33 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2018-08-20 00:43:33 +0000 |
commit | 1d8359d7954537eb7dda941137e6578f47e569c8 (patch) | |
tree | 7d809c6a799b2bec1f7c9d075af09f6736c03c3f /misc | |
parent | 150a1f69ab72510ec155080b3857d415688a94f9 (diff) | |
download | pkgsrc-1d8359d7954537eb7dda941137e6578f47e569c8.tar.gz |
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 (limited to 'misc')
-rw-r--r-- | misc/xdg-utils/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/xdg-utils/Makefile b/misc/xdg-utils/Makefile index 5388baa2425..8b6d20afe5c 100644 --- a/misc/xdg-utils/Makefile +++ b/misc/xdg-utils/Makefile @@ -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 instead of grep/sed. 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-* |