From 412094c25c410d97dac0f61033c7a7ba7b431a12 Mon Sep 17 00:00:00 2001 From: camield Date: Wed, 26 Apr 2000 14:39:29 +0000 Subject: [PATCH] Better fake. --- net/publicfile/Makefile | 7 ++++-- net/publicfile/patches/patch-Makefile | 32 ++++++++++++++++++--------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/net/publicfile/Makefile b/net/publicfile/Makefile index ae91297555b..dabedbf8230 100644 --- a/net/publicfile/Makefile +++ b/net/publicfile/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2000/04/04 08:19:41 camield Exp $ +# $OpenBSD: Makefile,v 1.5 2000/04/26 14:39:29 camield Exp $ DISTNAME= publicfile-0.52 HOMEPAGE= http://cr.yp.to/publicfile.html @@ -16,7 +16,7 @@ PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes NO_CONFIGURE= Yes -ALL_TARGET= default WRKINST=${WRKINST} +ALL_TARGET= default INSTALL_TARGET= setup check FAKE= Yes @@ -28,4 +28,7 @@ pre-build: @echo ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc @echo ${PREFIX}/publicfile > ${WRKSRC}/conf-home +pre-install: + @echo ${PREFIX}/publicfile > ${WRKSRC}/conf-home + .include diff --git a/net/publicfile/patches/patch-Makefile b/net/publicfile/patches/patch-Makefile index cba6dc2548b..3b165da1d06 100644 --- a/net/publicfile/patches/patch-Makefile +++ b/net/publicfile/patches/patch-Makefile @@ -1,15 +1,25 @@ -$OpenBSD: patch-Makefile,v 1.1 2000/04/04 08:19:41 camield Exp $ +$OpenBSD: patch-Makefile,v 1.2 2000/04/26 14:39:30 camield Exp $ -Needed for fake installation. +Needed for fake installation. This way the installer can easily be +rebuilt with the fake prefix, without rebuilding _everything_. ---- Makefile.orig Tue Apr 4 10:13:38 2000 -+++ Makefile Tue Apr 4 10:13:52 2000 -@@ -26,7 +26,7 @@ +--- Makefile.orig Tue Nov 9 08:23:46 1999 ++++ Makefile Wed Apr 26 16:36:46 2000 +@@ -82,7 +82,7 @@ + ./compile case_startb.c - auto_home.c: \ - auto-str conf-home -- ./auto-str auto_home `head -1 conf-home` > auto_home.c -+ ./auto-str auto_home ${WRKINST}`head -1 conf-home` > auto_home.c + check: \ +-it instcheck ++instcheck + ./instcheck - auto_home.o: \ - compile auto_home.c + chkshsgr: \ +@@ -389,7 +389,7 @@ + ./choose c trysysel select.h1 select.h2 > select.h + + setup: \ +-it install ++install + ./install + + sig.a: \