diff options
author | leot <leot@pkgsrc.org> | 2018-06-09 11:23:05 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2018-06-09 11:23:05 +0000 |
commit | ac843c4ec17ff8129291c45f7f359b5bc47b2be1 (patch) | |
tree | 46880d5503f76b369a6995df707c21b2c7718077 /misc/tmux | |
parent | 24b8607cfacd243f449b798f9d34d66b54dbad3c (diff) | |
download | pkgsrc-ac843c4ec17ff8129291c45f7f359b5bc47b2be1.tar.gz |
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 (limited to 'misc/tmux')
-rw-r--r-- | misc/tmux/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/tmux/Makefile b/misc/tmux/Makefile index 3a4ead786ad..47d3220aa1d 100644 --- a/misc/tmux/Makefile +++ b/misc/tmux/Makefile @@ -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_TERMINFO= yes 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]-*) && \ |