aboutsummaryrefslogtreecommitdiff
path: root/games/tt
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-03-07 21:30:44 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-03-07 21:30:44 +0000
commit818d50f480c93015bee4af0e3cb28c693fe38883 (patch)
tree9ebd7cd8cecdbb880c19b2fc2b46907f71cbeb31 /games/tt
parentef251613e6812ea92cb36541dbf8dd7b835d18a2 (diff)
downloadports-818d50f480c93015bee4af0e3cb28c693fe38883.tar.gz
ports-818d50f480c93015bee4af0e3cb28c693fe38883.zip
Notes
Diffstat (limited to 'games/tt')
-rw-r--r--games/tt/Makefile4
-rw-r--r--games/tt/distinfo6
-rw-r--r--games/tt/files/patch-tt.c26
-rw-r--r--games/tt/files/patch-utils.c31
-rw-r--r--games/tt/files/patch-utils.h11
5 files changed, 26 insertions, 52 deletions
diff --git a/games/tt/Makefile b/games/tt/Makefile
index fbaf7705a996..a874d77930d6 100644
--- a/games/tt/Makefile
+++ b/games/tt/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= tt
-PORTVERSION= 14.0
+PORTVERSION= 15.0
CATEGORIES= games
MASTER_SITES= http://www.miketaylor.org.uk/tech/tt/
@@ -16,7 +16,7 @@ COMMENT= Tetris for Terminals
ALL_TARGET= tt
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/tt ${PREFIX}/bin
+ ${INSTALL_PROGRAM} -g games -m 2555 ${WRKSRC}/tt ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
diff --git a/games/tt/distinfo b/games/tt/distinfo
index 0fe1eba43f45..d51d3eacd0b2 100644
--- a/games/tt/distinfo
+++ b/games/tt/distinfo
@@ -1,3 +1,3 @@
-MD5 (tt-14.0.tar.gz) = 9d6c558f07ed5b904e4e8ffcfc6b43c4
-SHA256 (tt-14.0.tar.gz) = 11bc49190e22b9a396c265947ead4807edabc6cfef7e03254f9e71211f26c56e
-SIZE (tt-14.0.tar.gz) = 32585
+MD5 (tt-15.0.tar.gz) = dbf69201eb802cbcda4e2bc5fbbdbb27
+SHA256 (tt-15.0.tar.gz) = 0cff24a7cdc0de7bc292943f0c01e7e1562072d78d1a653ca5bd5bfc80cf3aee
+SIZE (tt-15.0.tar.gz) = 45319
diff --git a/games/tt/files/patch-tt.c b/games/tt/files/patch-tt.c
index c87cc23aa8eb..af47135628a1 100644
--- a/games/tt/files/patch-tt.c
+++ b/games/tt/files/patch-tt.c
@@ -13,17 +13,14 @@
/*-------------------------------------------------------------------------*/
-extern time_t time ();
--extern char *ctime ();
--extern char *malloc ();
--extern char *getenv ();
--extern char *getlogin ();
++/* extern time_t time ();
+ extern char *ctime ();
+-/*extern char *malloc ();*/
++extern char *malloc ();
+ extern char *getenv ();
+ extern char *getlogin ();
-extern struct passwd *getpwuid ();
-+//extern time_t time ();
-+//extern char *ctime ();
-+//extern char *malloc ();
-+//extern char *getenv ();
-+//extern char *getlogin ();
-+//extern struct passwd *getpwuid ();
++extern struct passwd *getpwuid (); */
static int get_key ();
@@ -35,3 +32,12 @@
/* These four variables determine which game we're playing */
struct piece *pieces = pieces4;
+@@ -198,7 +199,7 @@
+ (void) umask (0000); /* 000 octal, just to make the point */
+
+ #ifdef LOCKF
+- if ((lock_fd = open (SCORE_FILE, O_RDWR | O_CREAT, 0666)) == -1)
++ if ((lock_fd = open (SCORE_FILE, O_RDWR | O_CREAT, 0664)) == -1)
+ die (LE_OPEN, "Couldn't open(2) score-file for lockf()");
+
+ while (i++ < 5) { /* Make up to five attempts */
diff --git a/games/tt/files/patch-utils.c b/games/tt/files/patch-utils.c
index a3c1c60cbe1b..f875d6357682 100644
--- a/games/tt/files/patch-utils.c
+++ b/games/tt/files/patch-utils.c
@@ -1,32 +1,11 @@
--- utils.c.orig Fri Sep 12 18:01:20 2003
+++ utils.c Fri Sep 12 22:21:05 2003
-@@ -30,8 +30,7 @@
- # include <poll.h>
- #endif
- #include <curses.h>
--#undef va_start /* required with Red Hat's ncurses :-P */
--#include <varargs.h>
-+#include <stdarg.h>
- #include <sys/types.h>
- #include <sys/time.h>
- #include <sys/ioctl.h> /* M001 */
-@@ -75,16 +74,13 @@
- \***************************************************************************/
-
- /*VARARGS*/
--char *form (va_alist)
-- va_dcl
-+char *form (const char *fmt_string, ...)
- {
- va_list pvar;
-- char *fmt_string;
+@@ -82,7 +82,7 @@
static char result[LINELEN];
-- va_start (pvar);
-- fmt_string = va_arg (pvar, char*);
-- (void) vsprintf (result, fmt_string, pvar);
-+ va_start (pvar, fmt_string);
-+ (void) vsnprintf (result, LINELEN, fmt_string, pvar);
- va_end (pvar);
+ va_start (ap, fmt);
+- (void) vsprintf (result, fmt, ap);
++ (void) vsnprintf (result, LINELEN, fmt, ap);
+ va_end (ap);
return (result);
}
diff --git a/games/tt/files/patch-utils.h b/games/tt/files/patch-utils.h
deleted file mode 100644
index 1b5921090d35..000000000000
--- a/games/tt/files/patch-utils.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- utils.h.orig Fri Sep 12 22:12:44 2003
-+++ utils.h Fri Sep 12 22:13:00 2003
-@@ -12,7 +12,7 @@
- \***************************************************************************/
-
- extern char *basename ();
--extern char *form ();
-+extern char *form (const char *fmt_string, ...);
- extern void die ();
- extern void get_termcap ();
- extern void flush_keyboard ();