openbsd-ports/games/xkobo/patches/patch-Imakefile
naddy 52fab76073 - Regen ancient patches.
- C++ fix for gcc3.
ok espie@
2002-10-06 00:49:02 +00:00

36 lines
1.3 KiB
Plaintext

$OpenBSD: patch-Imakefile,v 1.1 2002/10/06 00:49:02 naddy Exp $
--- Imakefile.orig Fri Jan 10 03:29:36 1997
+++ Imakefile Sun Oct 6 00:55:01 2002
@@ -6,7 +6,7 @@ WAIT_MSEC = 30
SHIPS = 5
/* RECORDS */
-HSCORE_DIR = /usr/local/games/xkobo-scores
+HSCORE_DIR = /var/games/xkobo.scores
/* C++ COMPILER */
/* CXX = g++ */
@@ -69,15 +69,15 @@ xkp256.c: # xkp256.tif
#ifdef SECURE_SCOREFILES
install::
- if [ -d $(HSCORE_DIR) ]; then chmod 755 $(HSCORE_DIR); \
- else mkdirhier $(HSCORE_DIR); chmod 755 $(HSCORE_DIR); fi
- chown $(XKOBO_ADMINISTER) $(BINDIR)/xkobo
- chown -R $(XKOBO_ADMINISTER) $(HSCORE_DIR)
- chmod 4755 $(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); \
- 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::