diff options
author | rillig <rillig@pkgsrc.org> | 2005-07-17 21:47:00 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-07-17 21:47:00 +0000 |
commit | 618c57199069f1527d8825d6bfefb61bb4ab4197 (patch) | |
tree | 9b9edea55d9e4f6e575d1091eac758288fc76b9b /x11 | |
parent | b608b444d8a7d36e226c347ba3430e7380b6d087 (diff) | |
download | pkgsrc-618c57199069f1527d8825d6bfefb61bb4ab4197.tar.gz |
Changed the way the host.def file is updated. When doing unprivileged
builds, this file may have mode 0444 and was unwritable.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/imake/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/x11/imake/Makefile b/x11/imake/Makefile index 7dbdd09714a..49147777eff 100644 --- a/x11/imake/Makefile +++ b/x11/imake/Makefile @@ -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 @@ do-build: ${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}; \ |