svn commit: r359017 - in head/games/trojka: . files
Jason E. Hale
jhale at FreeBSD.org
Mon Jun 23 23:00:53 UTC 2014
Author: jhale
Date: Mon Jun 23 23:00:51 2014
New Revision: 359017
URL: http://svnweb.freebsd.org/changeset/ports/359017
QAT: https://qat.redports.org/buildarchive/r359017/
Log:
- Support staging
- Add LICENSE
- Rename generic patches
Approved by: portmgr (blanket approval)
Added:
head/games/trojka/files/patch-Makefile
- copied, changed from r359013, head/games/trojka/files/patch-aa
head/games/trojka/files/patch-sys_custom.h
- copied unchanged from r359013, head/games/trojka/files/patch-ac
head/games/trojka/files/patch-system.c
- copied unchanged from r359013, head/games/trojka/files/patch-ab
head/games/trojka/files/patch-trojka.6
- copied unchanged from r359013, head/games/trojka/files/patch-ad
Deleted:
head/games/trojka/files/patch-aa
head/games/trojka/files/patch-ab
head/games/trojka/files/patch-ac
head/games/trojka/files/patch-ad
Modified:
head/games/trojka/Makefile
head/games/trojka/files/pkg-message.in
head/games/trojka/pkg-plist
Modified: head/games/trojka/Makefile
==============================================================================
--- head/games/trojka/Makefile Mon Jun 23 22:29:07 2014 (r359016)
+++ head/games/trojka/Makefile Mon Jun 23 23:00:51 2014 (r359017)
@@ -10,11 +10,11 @@ DISTNAME= ${PORTNAME}
MAINTAINER= e at ik.nu
COMMENT= Game of skill
-MAN6= trojka.6
-SUB_FILES= pkg-message
+LICENSE= TROJKA
+LICENSE_NAME= Trojka Copyright
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-NO_STAGE= yes
-post-install:
- @${CAT} ${PKGMESSAGE}
+SUB_FILES= pkg-message
.include <bsd.port.mk>
Copied and modified: head/games/trojka/files/patch-Makefile (from r359013, head/games/trojka/files/patch-aa)
==============================================================================
--- head/games/trojka/files/patch-aa Mon Jun 23 21:44:09 2014 (r359013, copy source)
+++ head/games/trojka/files/patch-Makefile Mon Jun 23 23:00:51 2014 (r359017)
@@ -17,11 +17,11 @@
install:
- cp trojka /usr/games
-+ install -c -d -m 0755 $(SCOREDIR)
-+ install -c -m 2755 -g games -s trojka $(PREFIX)/bin
-+ install -c -m 0644 COPYRIGHT README $(SCOREDIR)
-+ install -c -m 0664 -g games /dev/null $(SCOREFILE)
-+ install -c -m 0444 trojka.6.out $(PREFIX)/man/man6/trojka.6
++ 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
+
+trojka.6.out: trojka.6
+ sed "s|%%PREFIX%%|$(PREFIX)|" trojka.6 > trojka.6.out
Copied: head/games/trojka/files/patch-sys_custom.h (from r359013, head/games/trojka/files/patch-ac)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/trojka/files/patch-sys_custom.h Mon Jun 23 23:00:51 2014 (r359017, copy of r359013, head/games/trojka/files/patch-ac)
@@ -0,0 +1,12 @@
+--- sys_custom.h.orig Mon Jul 17 21:02:18 2000
++++ sys_custom.h Mon Jul 17 21:02:41 2000
+@@ -7,7 +7,9 @@
+ #ifndef _sys_custom_
+ #define _sys_custom_
+
++#ifndef SCOREFILE
+ #define SCOREFILE "/usr/games/lib/trojka.scores"
++#endif
+
+ #define UMASK 0666 /* creation mask for hiscorefile */
+
Copied: head/games/trojka/files/patch-system.c (from r359013, head/games/trojka/files/patch-ab)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/trojka/files/patch-system.c Mon Jun 23 23:00:51 2014 (r359017, copy of r359013, head/games/trojka/files/patch-ab)
@@ -0,0 +1,30 @@
+--- system.c.orig Sat Oct 21 05:16:20 1995
++++ system.c Mon Jul 17 21:09:48 2000
+@@ -23,6 +23,9 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <fcntl.h>
++#ifdef __FreeBSD__
++#include <sys/ioctl.h>
++#endif
+
+ #include "trojka.h"
+
+@@ -42,7 +45,7 @@
+
+ char getkey() /* get key from keyboard */
+ {
+-#if SUNOS | HPUX | LINUX
++#if SUNOS | HPUX | LINUX | __FreeBSD__
+ long count;
+ char ch;
+
+@@ -119,7 +122,7 @@
+ int delay(millisecs)
+ int millisecs;
+ {
+-#if SUNOS | LINUX
++#if SUNOS | LINUX | __FreeBSD__
+ usleep(millisecs * 1200); /* usleep does microsecs; need millisecs */
+ #endif
+ #ifdef HPUX
Copied: head/games/trojka/files/patch-trojka.6 (from r359013, head/games/trojka/files/patch-ad)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/trojka/files/patch-trojka.6 Mon Jun 23 23:00:51 2014 (r359017, copy of r359013, head/games/trojka/files/patch-ad)
@@ -0,0 +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
+
+ .SH HISTORY
+ First version written in 1989 for MS-Dog. Not long thereafter (in 1990)
Modified: head/games/trojka/files/pkg-message.in
==============================================================================
--- head/games/trojka/files/pkg-message.in Mon Jun 23 22:29:07 2014 (r359016)
+++ head/games/trojka/files/pkg-message.in Mon Jun 23 23:00:51 2014 (r359017)
@@ -3,5 +3,5 @@ You now have suid binary (2755):
%%PREFIX%%/bin/trojka
-Scores will not be writed if you don't set suid.
+Scores will not be saved if you don't set suid.
============================================================
Modified: head/games/trojka/pkg-plist
==============================================================================
--- head/games/trojka/pkg-plist Mon Jun 23 22:29:07 2014 (r359016)
+++ head/games/trojka/pkg-plist Mon Jun 23 23:00:51 2014 (r359017)
@@ -1,5 +1,11 @@
+ at mode 2755
+ at group games
bin/trojka
-%%DATADIR%%/COPYRIGHT
+ at group
+ at mode
+man/man6/trojka.6.gz
%%DATADIR%%/README
+ at group games
%%DATADIR%%/trojka.scores
+ at group
@dirrm %%DATADIR%%
More information about the svn-ports-all
mailing list