Index: head/games/trojka/Makefile =================================================================== --- head/games/trojka/Makefile (revision 406108) +++ head/games/trojka/Makefile (revision 406109) @@ -1,20 +1,19 @@ # Created by: Edwin Mons # $FreeBSD$ PORTNAME= trojka PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= ftp://ftp.funet.fi/pub/unix/games/ DISTNAME= ${PORTNAME} MAINTAINER= e@ik.nu COMMENT= Game of skill LICENSE= TROJKA LICENSE_NAME= Trojka Copyright -LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LICENSE_FILE= ${WRKSRC}/COPYRIGHT - -SUB_FILES= pkg-message +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept .include Index: head/games/trojka/files/pkg-message.in =================================================================== --- head/games/trojka/files/pkg-message.in (revision 406108) +++ head/games/trojka/files/pkg-message.in (nonexistent) @@ -1,7 +0,0 @@ -============================================================ -You now have suid binary (2755): - - %%PREFIX%%/bin/trojka - -Scores will not be saved if you don't set suid. -============================================================ Property changes on: head/games/trojka/files/pkg-message.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/games/trojka/files/patch-Makefile =================================================================== --- head/games/trojka/files/patch-Makefile (revision 406108) +++ head/games/trojka/files/patch-Makefile (revision 406109) @@ -1,36 +1,35 @@ ---- Makefile.orig Sat Oct 21 05:17:43 1995 -+++ Makefile Tue Jul 18 11:39:08 2000 -@@ -6,14 +6,25 @@ +--- Makefile.orig 1995-10-20 21:17:43 UTC ++++ Makefile +@@ -6,14 +6,24 @@ # - -+SCOREDIR=$(PREFIX)/share/trojka ++SCOREDIR=/var/games +SCOREFILE=$(SCOREDIR)/trojka.scores +CFLAGS+= -DSCOREFILE=\"$(SCOREFILE)\" OBJS= trojka.o screen.o scan.o hiscore.o system.o +all: freebsd trojka.6.out + make: @echo please specify: hpux, xenix68, linux or sunos install: - cp trojka /usr/games -+ install -c -d -m 0755 $(DESTDIR)$(SCOREDIR) -+ install -c -s trojka $(DESTDIR)$(PREFIX)/bin -+ install -c -m 0644 README $(DESTDIR)$(SCOREDIR) -+ install -c -m 0664 /dev/null $(DESTDIR)$(SCOREFILE) -+ install -c -m 0444 trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6 ++ ${BSD_INSTALL_PROGRAM} trojka $(DESTDIR)$(PREFIX)/bin ++ ${BSD_INSTALL_MAN} trojka.6.out $(DESTDIR)$(PREFIX)/man/man6/trojka.6 ++ mkdir -p $(DESTDIR)$(SCOREDIR) ++ touch $(DESTDIR)$(SCOREFILE).sample + +trojka.6.out: trojka.6 + sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out clean: rm -f $(PROGS) *.o core a.out trojka.scores -@@ -53,3 +64,5 @@ +@@ -53,3 +63,5 @@ hpux: linux: make trojka "CFLAGS=-DLINUX" + +freebsd: trojka Index: head/games/trojka/files/patch-trojka.6 =================================================================== --- head/games/trojka/files/patch-trojka.6 (revision 406108) +++ head/games/trojka/files/patch-trojka.6 (revision 406109) @@ -1,11 +1,11 @@ --- trojka.6.orig Mon Jul 17 21:03:06 2000 +++ trojka.6 Mon Jul 17 21:03:36 2000 @@ -40,7 +40,7 @@ .SH FILES .nf -/usr/local/games/lib/trojka.scores The Trojka hiscore file -+%%PREFIX%%/share/trojka/trojka.scores The Trojka hiscore file ++/var/games/trojka.scores The Trojka hiscore file .SH HISTORY First version written in 1989 for MS-Dog. Not long thereafter (in 1990) Index: head/games/trojka/pkg-plist =================================================================== --- head/games/trojka/pkg-plist (revision 406108) +++ head/games/trojka/pkg-plist (revision 406109) @@ -1,11 +1,3 @@ -@mode 2755 -@group games -bin/trojka -@group -@mode +@(,games,2755) bin/trojka man/man6/trojka.6.gz -%%DATADIR%%/README -@group games -%%DATADIR%%/trojka.scores -@group -@dirrm %%DATADIR%% +@sample(,games,664) /var/games/trojka.scores.sample