summaryrefslogtreecommitdiff
path: root/games/xjewel/patches/patch-aa
blob: 020316c56d5ba30d8d0c1c3087d35bbce491c6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-aa,v 1.2 2006/01/13 00:16:13 joerg Exp $

--- Imakefile.orig	1994-02-16 10:35:06.000000000 +0000
+++ Imakefile
@@ -4,12 +4,12 @@
 CDEBUGFLAGS = -O  
 
 # CHANGE HSCORE_FILE TO SUIT
-#HSCORE_FILE=/usr/local/lib/xjewel.scores
-HSCORE_FILE=xjewel.scores
+HSCORE_FILE=/var/games/xjewel.scores
 
 # ADD YOUR ARCHITECTURE IF YOU USE SELECT INSTEAD OF POLL
 #if defined(HPArchitecture) || defined(ApolloArchitecture) || \
- 	defined(UltrixArchitecture)
+ 	defined(UltrixArchitecture) || defined(NetBSDArchitecture) || \
+	defined(DragonFlyArchitecture)
 #define sel -DUSE_SELECT
 #else
 #define sel 
@@ -21,10 +21,10 @@ HSCORE_FILE=xjewel.scores
 # DEFINE 'GETPWENT' if you dont have the cuserid ftn (hscore.c)
 # DEFINE 'SLOW_FONTS=n' if your server is overly fast on fonts
 # DEFINE 'SLOW_DRAW=n' if your server is overly fast on drawing
-USERDEFS = -DICON_WINDOW
+USERDEFS = -DICON_WINDOW -DGETPWENT
 
 # CHANGE FFILE TO REFLECT THE EXTENSION USED FOR COMPILED FONTS
-FFILE = snf
+FFILE = pcf.gz
 
 ##############################################################################
 # X-STUFF...
@@ -42,15 +42,19 @@ CFONT   = bitmaps/seven_seg.$(FFILE)
 
 
 # LETS GET TO IT...
+INSTPGMFLAGS = -s -m 2555 -o root -g games
 ComplexProgramTarget(xjewel)
 
 # IF YOUR SERVER DOES NOT LIKE THE DEFAULT FONT COMPILER, EDIT HERE...
 FontTarget($(FONT))
 	$(MKFONTDIR) bitmaps/
 
+MANSUFFIX=6
+
 # FORCE FONT TO BE BUILT
 all:: $(CFONT)
 
 install::
-	touch  $(HSCORE_FILE)
-	chmod a+w $(HSCORE_FILE)
+	touch $(HSCORE_FILE)
+	chown games:games $(HSCORE_FILE)
+	chmod 664 $(HSCORE_FILE)