From 004e47e5b091448f3c76862035061bad61cfce9a Mon Sep 17 00:00:00 2001 From: frueauf Date: Tue, 14 Jul 1998 10:56:15 +0000 Subject: cat ${PKGDIR}/MESSAGE in bsd.pkg.mk if it exists, don't do it in every package Makefile. --- pkgtools/xpkgwedge/Makefile | 10 +++++++--- pkgtools/xpkgwedge/pkg/MESSAGE | 18 ------------------ pkgtools/xpkgwedge/pkg/MESSAGE.pre | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 pkgtools/xpkgwedge/pkg/MESSAGE create mode 100644 pkgtools/xpkgwedge/pkg/MESSAGE.pre (limited to 'pkgtools') diff --git a/pkgtools/xpkgwedge/Makefile b/pkgtools/xpkgwedge/Makefile index 1ce41c243b8..cf2f0b4513a 100644 --- a/pkgtools/xpkgwedge/Makefile +++ b/pkgtools/xpkgwedge/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 1998/07/01 15:56:35 tv Exp $ +# $NetBSD: Makefile,v 1.4 1998/07/14 10:56:16 frueauf Exp $ # DISTNAME= xpkgwedge-0.2 @@ -25,7 +25,11 @@ pre-extract: pre-configure: @${CP} ${FILESDIR}/Imakefile ${FILESDIR}/xpkgwedge.def ${WRKSRC} -post-install: - @${SED} -e s,@@PREFIX@@,${LOCALBASE}, ${PKGDIR}/MESSAGE +pre-install: + @${SED} -e 's|@@PREFIX@@|${LOCALBASE}|g' < ${PKGDIR}/MESSAGE.pre \ + > ${PKGDIR}/MESSAGE + +pre-clean: + @${RM} ${PKGDIR}/MESSAGE .include "../../mk/bsd.pkg.mk" diff --git a/pkgtools/xpkgwedge/pkg/MESSAGE b/pkgtools/xpkgwedge/pkg/MESSAGE deleted file mode 100644 index f1f2442d940..00000000000 --- a/pkgtools/xpkgwedge/pkg/MESSAGE +++ /dev/null @@ -1,18 +0,0 @@ -============================================================================== - -NOTES: - -- Add the following line in /etc/mk.conf to enable building of X pkgs into - the regular pkg binary tree: - X11BASE=${LOCALBASE} - -- You MUST set the environment variable XAPPLRESDIR in /etc/profile and - /etc/csh.login by hand in order to make pkgs built with xpkgwedge run - properly. The setting should point to: - @@PREFIX@@/lib/X11/app-defaults - - If any users set XAPPLRESDIR in their own environment, these settings - will not work - such users should instead append their own directories to - XAPPLRESDIR after a : character (similar to PATH). - -============================================================================== diff --git a/pkgtools/xpkgwedge/pkg/MESSAGE.pre b/pkgtools/xpkgwedge/pkg/MESSAGE.pre new file mode 100644 index 00000000000..f1f2442d940 --- /dev/null +++ b/pkgtools/xpkgwedge/pkg/MESSAGE.pre @@ -0,0 +1,18 @@ +============================================================================== + +NOTES: + +- Add the following line in /etc/mk.conf to enable building of X pkgs into + the regular pkg binary tree: + X11BASE=${LOCALBASE} + +- You MUST set the environment variable XAPPLRESDIR in /etc/profile and + /etc/csh.login by hand in order to make pkgs built with xpkgwedge run + properly. The setting should point to: + @@PREFIX@@/lib/X11/app-defaults + + If any users set XAPPLRESDIR in their own environment, these settings + will not work - such users should instead append their own directories to + XAPPLRESDIR after a : character (similar to PATH). + +============================================================================== -- cgit v1.2.3