From 3b03b017f909edb8239c970d3d51e9f145564ba8 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 5 Mar 2000 15:54:48 +0000 Subject: [PATCH] Add DESTDIR to all the places that are missing it in xkobo's Imakefile. Turn Fake on --- games/xkobo/Makefile | 15 +++++++++------ games/xkobo/patches/patch-aa | 24 +++++++++++++++--------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/games/xkobo/Makefile b/games/xkobo/Makefile index 60e8ea86f39..a1f1744efa4 100644 --- a/games/xkobo/Makefile +++ b/games/xkobo/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.8 2000/02/15 05:04:28 turan Exp $ +# $OpenBSD: Makefile,v 1.9 2000/03/05 15:54:48 espie Exp $ DISTNAME= xkobo-1.11 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ ftp://ftp.uoknor.edu/mirrors/X/contrib/games/ MASTER_SITE_SUBDIR= games +NEED_VERSION=1.218 .if defined(HARDER) PATCH_LIST=patch-* extra-hard @@ -14,12 +15,14 @@ PKGNAME=${DISTNAME}-harder MAINTAINER= espie@openbsd.org LICENSE_TYPE= GPL -PERMIT_PACKAGE_CDROM= YES -PERMIT_PACKAGE_FTP= YES -PERMIT_DISTFILES_CDROM= YES -PERMIT_DISTFILES_FTP= YES +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +FAKE= Yes +USE_IMAKE= Yes -USE_IMAKE= yes ALL_TARGET= xkobo post-install: diff --git a/games/xkobo/patches/patch-aa b/games/xkobo/patches/patch-aa index 7bfdddd6a4e..eef28e8a0a1 100644 --- a/games/xkobo/patches/patch-aa +++ b/games/xkobo/patches/patch-aa @@ -1,6 +1,6 @@ --- Imakefile.orig Fri Jan 10 03:29:36 1997 -+++ Imakefile Tue Mar 23 13:48:15 1999 -@@ -6,7 +6,7 @@ ++++ Imakefile Sun Mar 5 16:06:52 2000 +@@ -6,7 +6,7 @@ WAIT_MSEC = 30 SHIPS = 5 /* RECORDS */ @@ -9,7 +9,7 @@ /* C++ COMPILER */ /* CXX = g++ */ -@@ -69,11 +69,11 @@ +@@ -69,15 +69,15 @@ xkp256.c: # xkp256.tif #ifdef SECURE_SCOREFILES install:: @@ -18,11 +18,17 @@ - chown $(XKOBO_ADMINISTER) $(BINDIR)/xkobo - chown -R $(XKOBO_ADMINISTER) $(HSCORE_DIR) - chmod 4755 $(BINDIR)/xkobo -+ if [ -d $(HSCORE_DIR) ]; then chmod 575 $(HSCORE_DIR); \ -+ else mkdirhier $(HSCORE_DIR); chmod 575 $(HSCORE_DIR); fi -+ chgrp $(XKOBO_ADMINISTER) $(BINDIR)/xkobo -+ chgrp -R $(XKOBO_ADMINISTER) $(HSCORE_DIR) -+ chmod 2755 $(BINDIR)/xkobo ++ if [ -d $(DESTDIR)$(HSCORE_DIR) ]; then chmod 575 $(DESTDIR)$(HSCORE_DIR); \ ++ else mkdirhier $(DESTDIR)$(HSCORE_DIR); chmod 575 $(DESTDIR)$(HSCORE_DIR); fi ++ chgrp $(XKOBO_ADMINISTER) $(DESTDIR)$(BINDIR)/xkobo ++ chgrp -R $(XKOBO_ADMINISTER) $(DESTDIR)$(HSCORE_DIR) ++ chmod 2755 $(DESTDIR)$(BINDIR)/xkobo #else /* SECURE_SCOREFILES */ install:: - if [ -d $(HSCORE_DIR) ]; then chmod 777 $(HSCORE_DIR); \ +- if [ -d $(HSCORE_DIR) ]; then chmod 777 $(HSCORE_DIR); \ +- else mkdirhier $(HSCORE_DIR); chmod 777 $(HSCORE_DIR); fi ++ if [ -d $(DESTDIR)$(HSCORE_DIR) ]; then chmod 777 $(DESTDIR)$(HSCORE_DIR); \ ++ else mkdirhier $(DESTDIR)$(HSCORE_DIR); chmod 777 $(DESTDIR)$(HSCORE_DIR); fi + #endif /* SECURE_SCOREFILES */ + + clean::