View | Details | Raw Unified | Return to bug 205626
Collapse All | Expand All

(-)Makefile (-2 lines)
Lines 15-20 Link Here
15
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
15
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
16
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
17
17
18
SUB_FILES=	pkg-message
19
20
.include <bsd.port.mk>
18
.include <bsd.port.mk>
(-)files/patch-Makefile (-10 / +9 lines)
Lines 1-11 Link Here
1
--- Makefile.orig	Sat Oct 21 05:17:43 1995
1
--- Makefile.orig	1995-10-20 21:17:43 UTC
2
+++ Makefile	Tue Jul 18 11:39:08 2000
2
+++ Makefile
3
@@ -6,14 +6,25 @@
3
@@ -6,14 +6,24 @@
4
 #
4
 #
5
 
5
 
6
 
6
 
7
-
7
-
8
+SCOREDIR=$(PREFIX)/share/trojka
8
+SCOREDIR=/var/games
9
+SCOREFILE=$(SCOREDIR)/trojka.scores
9
+SCOREFILE=$(SCOREDIR)/trojka.scores
10
+CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\"
10
+CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\"
11
 OBJS= trojka.o screen.o scan.o hiscore.o system.o
11
 OBJS= trojka.o screen.o scan.o hiscore.o system.o
Lines 17-27 Link Here
17
 
17
 
18
 install:
18
 install:
19
-	cp trojka /usr/games
19
-	cp trojka /usr/games
20
+	install -c -d -m 0755 $(DESTDIR)$(SCOREDIR)
20
+	${BSD_INSTALL_PROGRAM} trojka $(DESTDIR)$(PREFIX)/bin
21
+	install -c -s trojka $(DESTDIR)$(PREFIX)/bin
21
+	${BSD_INSTALL_MAN} trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6
22
+	install -c -m 0644 README $(DESTDIR)$(SCOREDIR)
22
+	mkdir -p $(DESTDIR)$(SCOREDIR)
23
+	install -c -m 0664 /dev/null $(DESTDIR)$(SCOREFILE)
23
+	touch $(DESTDIR)$(SCOREFILE).sample
24
+	install -c -m 0444 trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6
25
+
24
+
26
+trojka.6.out:	trojka.6
25
+trojka.6.out:	trojka.6
27
+	sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
26
+	sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
Lines 28-34 Link Here
28
 
27
 
29
 clean:
28
 clean:
30
 	rm -f $(PROGS) *.o core a.out trojka.scores
29
 	rm -f $(PROGS) *.o core a.out trojka.scores
31
@@ -53,3 +64,5 @@
30
@@ -53,3 +63,5 @@ hpux:	
32
 
31
 
33
 linux:
32
 linux:
34
 	make trojka "CFLAGS=-DLINUX"
33
 	make trojka "CFLAGS=-DLINUX"
(-)files/patch-trojka.6 (-1 / +1 lines)
Lines 5-11 Link Here
5
 .SH FILES
5
 .SH FILES
6
 .nf
6
 .nf
7
-/usr/local/games/lib/trojka.scores	 The Trojka hiscore file
7
-/usr/local/games/lib/trojka.scores	 The Trojka hiscore file
8
+%%PREFIX%%/share/trojka/trojka.scores         The Trojka hiscore file
8
+/var/games/trojka.scores         The Trojka hiscore file
9
 
9
 
10
 .SH HISTORY
10
 .SH HISTORY
11
 First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
11
 First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
(-)files/pkg-message.in (-7 lines)
Lines 1-7 Link Here
1
============================================================
2
You now have suid binary (2755):
3
4
   %%PREFIX%%/bin/trojka
5
6
Scores will not be saved if you don't set suid.
7
============================================================
(-)pkg-plist (-10 / +2 lines)
Lines 1-11 Link Here
1
@mode 2755
1
@(,games,2755) bin/trojka
2
@group games
3
bin/trojka
4
@group
5
@mode
6
man/man6/trojka.6.gz
2
man/man6/trojka.6.gz
7
%%DATADIR%%/README
3
@sample(,games,664) /var/games/trojka.scores.sample
8
@group games
9
%%DATADIR%%/trojka.scores
10
@group
11
@dirrm %%DATADIR%%

Return to bug 205626