FreeBSD Bugzilla – Attachment 164678 Details for
Bug 205626
games/trojka: move score to /var/games, modernize plist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
trojka.patch (text/plain), 2.94 KB, created by
Dmitry Marakasov
on 2015-12-26 12:12:48 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2015-12-26 12:12:48 UTC
Size:
2.94 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 404125) >+++ Makefile (working copy) >@@ -15,6 +15,4 @@ > LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > LICENSE_FILE= ${WRKSRC}/COPYRIGHT > >-SUB_FILES= pkg-message >- > .include <bsd.port.mk> >Index: files/patch-Makefile >=================================================================== >--- files/patch-Makefile (revision 404125) >+++ files/patch-Makefile (working copy) >@@ -1,11 +1,11 @@ >---- 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 >@@ -17,11 +17,10 @@ > > 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 >@@ -28,7 +27,7 @@ > > clean: > rm -f $(PROGS) *.o core a.out trojka.scores >-@@ -53,3 +64,5 @@ >+@@ -53,3 +63,5 @@ hpux: > > linux: > make trojka "CFLAGS=-DLINUX" >Index: files/patch-trojka.6 >=================================================================== >--- files/patch-trojka.6 (revision 404125) >+++ files/patch-trojka.6 (working copy) >@@ -5,7 +5,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: files/pkg-message.in >=================================================================== >--- files/pkg-message.in (revision 404125) >+++ 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. >-============================================================ >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 404125) >+++ pkg-plist (working copy) >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205626
: 164678