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 | 5c9746523df5658dcec7e24d64f911764decf45d (patch) | |
tree | 9b9edea55d9e4f6e575d1091eac758288fc76b9b /x11/imake | |
parent | c681cb7366a044912f8e7e61adddc2b472b846fe (diff) | |
download | pkgsrc-5c9746523df5658dcec7e24d64f911764decf45d.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/imake')
-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}; \ |