pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/tmux tmux: Do not force sysconfdir to `/etc'



details:   https://anonhg.NetBSD.org/pkgsrc/rev/350cd19030cb
branches:  trunk
changeset: 309121:350cd19030cb
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Jun 09 11:23:05 2018 +0000

description:
tmux: Do not force sysconfdir to `/etc'

When sysconfdir is PREFIX/etc tmux automagically hardcode it to /etc.
This is a bit awkward in the pkgsrc context, so add a SUBST class to avoid this
hardcoding and always honor the --sysconfdir configure argument.

Bump PKGREVISION

diffstat:

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

diffs (26 lines):

diff -r 49e08ebc930a -r 350cd19030cb misc/tmux/Makefile
--- a/misc/tmux/Makefile        Sat Jun 09 07:24:21 2018 +0000
+++ b/misc/tmux/Makefile        Sat Jun 09 11:23:05 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2018/05/26 17:05:28 leot Exp $
+# $NetBSD: Makefile,v 1.45 2018/06/09 11:23:05 leot Exp $
 
 DISTNAME=      tmux-2.7
+PKGREVISION=   1
 CATEGORIES=    misc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tmux/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}
@@ -15,6 +16,13 @@
 
 USE_TOOLS+=    pkg-config
 
+SUBST_CLASSES+=                        sysconfdir
+SUBST_STAGE.sysconfdir=                pre-configure
+SUBST_MESSAGE.sysconfdir=      Do not force sysconfdir to /etc
+SUBST_FILES.sysconfdir=                configure configure.ac
+SUBST_SED.sysconfdir=          -e '/Default tmux\.conf goes in \/etc/d'
+SUBST_SED.sysconfdir+=         -e '/sysconfdir=\/etc/d'
+
 .include "../../mk/bsd.prefs.mk"
 .include "../../mk/compiler.mk"
 .if !empty(MACHINE_PLATFORM:MSunOS-5.1[0-9]-*) && \



Home | Main Index | Thread Index | Old Index