pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/imake Changed the way the host.def file is updated...
details: https://anonhg.NetBSD.org/pkgsrc/rev/56bc300fa285
branches: trunk
changeset: 496961:56bc300fa285
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jul 17 21:47:00 2005 +0000
description:
Changed the way the host.def file is updated. When doing unprivileged
builds, this file may have mode 0444 and was unwritable.
diffstat:
x11/imake/Makefile | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (29 lines):
diff -r 5dd79af5765d -r 56bc300fa285 x11/imake/Makefile
--- a/x11/imake/Makefile Sun Jul 17 21:46:50 2005 +0000
+++ b/x11/imake/Makefile Sun Jul 17 21:47:00 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/04/11 21:48:08 tv Exp $
+# $NetBSD: Makefile,v 1.18 2005/07/17 21:47:00 rillig Exp $
DISTNAME= ${DISTFILES}
PKGNAME= imake-${XF_VER}
@@ -61,12 +61,13 @@
${MAKE_PROGRAM} -f xmakefile VerifyOS version.def Makefiles includes
post-install:
- @${CP} ${X11ROOT}/lib/X11/config/host.def \
- ${X11ROOT}/lib/X11/config/host.def.orig
- @${SED} -e "s|\#define ProjectRoot ${X11ROOT}||" \
- ${X11ROOT}/lib/X11/config/host.def.orig > \
- ${X11ROOT}/lib/X11/config/host.def
- @${RM} ${X11ROOT}/lib/X11/config/host.def.orig
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ hostdef=${X11ROOT:Q}/lib/X11/config/host.def; \
+ hosttmp=${WRKSRC:Q}/host.def.tmp; \
+ ${SED} -e "s|\#define ProjectRoot ${X11ROOT}||" \
+ "$${hostdef}" > "$${hosttmp}"; \
+ ${INSTALL_DATA} "$${hosttmp}" "$${hostdef}"; \
+ ${RM} -f "$${hosttmp}"
@( \
${ECHO}; \
Home |
Main Index |
Thread Index |
Old Index