summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-08-13 21:02:17 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-08-13 21:02:17 +0000
commitce32bf638c6e5d5c87c851cc6ecc4646a364ddb8 (patch)
treea1c49cad84477108433b94484b8722928354272d
parent7a0615ec856a191c68c3fa9c0b80fdd73debc5aa (diff)
Install resource files in /usr/X11R6/share/X11/app-defaults
/etc/X11/app-defaults stays 1st in the libXt search path so, people and ports can put customized versions there if needed. If you didn't customize the versions in /etc/X11/app-defaults, they should be removed to avoid future issues when one file changes. discussed at g2k14 and ok ajacoutot@
-rw-r--r--app/ssh-askpass/Makefile4
-rw-r--r--app/xlockmore/Makefile.bsd-wrapper4
-rw-r--r--app/xsystrace/Makefile5
-rw-r--r--app/xterm/Makefile13
-rw-r--r--lib/libXt/Makefile.bsd-wrapper4
5 files changed, 15 insertions, 15 deletions
diff --git a/app/ssh-askpass/Makefile b/app/ssh-askpass/Makefile
index 60fab046b..abb388f4a 100644
--- a/app/ssh-askpass/Makefile
+++ b/app/ssh-askpass/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.13 2011/06/23 22:48:59 naddy Exp $
+# $OpenBSD: Makefile,v 1.14 2014/08/13 21:02:16 matthieu Exp $
.include <bsd.xconf.mk>
PROG= ssh-askpass
@@ -33,7 +33,7 @@ x11-ssh-askpass.o: $(CLASS)_ad.h
afterinstall:
${INSTALL_DATA} $(CLASS).ad \
- $(DESTDIR)/etc/X11/app-defaults/$(CLASS)
+ $(DESTDIR)${X11BASE}/share/X11/app-defaults/$(CLASS)
beforedepend: $(CLASS)_ad.h
diff --git a/app/xlockmore/Makefile.bsd-wrapper b/app/xlockmore/Makefile.bsd-wrapper
index 0f07281ef..a151374c5 100644
--- a/app/xlockmore/Makefile.bsd-wrapper
+++ b/app/xlockmore/Makefile.bsd-wrapper
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.11 2011/12/10 14:54:18 matthieu Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.12 2014/08/13 21:02:16 matthieu Exp $
.include <bsd.xconf.mk>
@@ -11,7 +11,7 @@ config.status:
CONFIG_SITE=$(CONFIG_SITE) \
sh ${.CURDIR}/configure --prefix=${X11BASE} \
--datarootdir=${X11BASE} \
- --enable-appdefaultdir=/etc/X11/app-defaults \
+ --enable-appdefaultdir=${X11BASE}/share/X11/app-defaults \
--enable-syslog --without-motif --without-ttf \
--without-gtk2 --without-gtk --without-esound \
--without-rplay --without-ftgl
diff --git a/app/xsystrace/Makefile b/app/xsystrace/Makefile
index 000eb29d2..996938c08 100644
--- a/app/xsystrace/Makefile
+++ b/app/xsystrace/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.12 2011/06/23 22:48:59 naddy Exp $
+# $OpenBSD: Makefile,v 1.13 2014/08/13 21:02:16 matthieu Exp $
.include <bsd.xconf.mk>
PROG= xsystrace
@@ -15,7 +15,8 @@ SRCS= main.c interface.c callbacks.c policy.c
afterinstall:
${INSTALL_DATA} \
- ${.CURDIR}/Xsystrace.ad ${DESTDIR}/etc/X11/app-defaults/Xsystrace
+ ${.CURDIR}/Xsystrace.ad \
+ ${DESTDIR}${X11BASE}/share/X11/app-defaults/Xsystrace
MANDIR= ${X11BASE}/man/man
diff --git a/app/xterm/Makefile b/app/xterm/Makefile
index 7e184568e..908890c1d 100644
--- a/app/xterm/Makefile
+++ b/app/xterm/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.25 2014/07/31 20:13:40 matthieu Exp $
+# $OpenBSD: Makefile,v 1.26 2014/08/13 21:02:16 matthieu Exp $
.include <bsd.xconf.mk>
SUBDIR= icons resize
@@ -26,7 +26,6 @@ SRCS= TekPrsTbl.c Tekproc.c VTPrsTbl.c button.c cachedGCs.c \
scrollback.c scrollbar.c tabs.c trace.c util.c version.c xstrings.c
MANDIR= ${X11BASE}/man/man
-XETC?= /etc/X11
.if ${MACHINE_ARCH} == "sh"
charproc.o: charproc.c
@@ -61,7 +60,7 @@ PATCH_YMD != sed -n '/XTERM_DATE/s,[^0-9/.-]*,,gp' ${.CURDIR}/version.h
sed -e 's#__vendorversion__#"X Window System"#g' \
-e 's#__mansuffix__#1#g' \
-e 's#__miscmansuffix__#7#g' \
- -e 's#__apploaddir__#${X11ETC}/app-defaults#g' \
+ -e 's#__apploaddir__#${X11BASE}/share/X11/app-defaults#g' \
-e 's%__app_version__%Patch\ \#'$(PATCH_NUM)% \
-e 's%__app_date__%'${PATCH_YMD}% \
-e s%__default_termname__%xterm% \
@@ -85,13 +84,13 @@ afterinstall:
${INSTALL} ${INSTALL_COPY} -m 755 ${.CURDIR}/koi8rxterm \
${DESTDIR}${BINDIR}
${INSTALL_DATA} ${.CURDIR}/XTerm.ad \
- ${DESTDIR}${XETC}/app-defaults/XTerm
+ ${DESTDIR}${X11BASE}/share/X11/app-defaults/XTerm
${INSTALL_DATA} ${.CURDIR}/XTerm-col.ad \
- ${DESTDIR}${XETC}/app-defaults/XTerm-color
+ ${DESTDIR}${X11BASE}/share/X11/app-defaults/XTerm-color
${INSTALL_DATA} ${.CURDIR}/UXTerm.ad \
- ${DESTDIR}${XETC}/app-defaults/UXTerm
+ ${DESTDIR}${X11BASE}/share/X11/app-defaults/UXTerm
${INSTALL_DATA} ${.CURDIR}/KOI8RXTerm.ad \
- ${DESTDIR}${XETC}/app-defaults/KOI8RXTerm
+ ${DESTDIR}${X11BASE}/share/X11/app-defaults/KOI8RXTerm
obj: _xenocara_obj
diff --git a/lib/libXt/Makefile.bsd-wrapper b/lib/libXt/Makefile.bsd-wrapper
index f81591726..66e550612 100644
--- a/lib/libXt/Makefile.bsd-wrapper
+++ b/lib/libXt/Makefile.bsd-wrapper
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.7 2013/08/13 07:07:18 guenther Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.8 2014/08/13 21:02:16 matthieu Exp $
SHARED_LIBS= Xt 11.0
-CONFIGURE_ARGS= --with-appdefaultdir=/etc/X11/app-defaults \
+CONFIGURE_ARGS= --with-appdefaultdir=/usr/X11R6/share/X11/app-defaults \
--without-xmlto --without-fop --without-xsltproc --without-glib
.include <bsd.xorg.mk>