summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/qstat/Makefile22
-rw-r--r--games/qstat/distinfo4
-rw-r--r--games/qstat/files/patch-aa8
-rw-r--r--games/qstat/pkg-plist5
4 files changed, 23 insertions, 16 deletions
diff --git a/games/qstat/Makefile b/games/qstat/Makefile
index 4359f70..6d20c92 100644
--- a/games/qstat/Makefile
+++ b/games/qstat/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= qstat
-PORTVERSION= 2.6
+PORTVERSION= 2.8
CATEGORIES= games net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,8 +14,17 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= pat@FreeBSD.org
COMMENT= A command line program to query game servers on the net
-do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/qstat ${PREFIX}/bin
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+
+post-extract:
+ @${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.default
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|\(qstat\.cfg\)|\1\.default|' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
.if !defined(NOPORTDOCS)
@${ECHO_MSG} ""
@${ECHO_MSG} "Installing documents and templates in: \
@@ -23,8 +32,11 @@ do-install:
@${ECHO_MSG} ""
@${MKDIR} ${DOCSDIR}/info ${DOCSDIR}/template
@${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/template/* ${DOCSDIR}/template
- @${INSTALL_DATA} ${WRKSRC}/info/* ${DOCSDIR}/info
+ @${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \
+ ${DOCSDIR}/template
+ @${INSTALL_DATA} ${WRKSRC}/info/*.txt ${DOCSDIR}/info
.endif
+ @[ -f ${PREFIX}/etc/qstat.cfg ] || \
+ ${CP} ${PREFIX}/etc/qstat.cfg.default ${PREFIX}/etc/qstat.cfg
.include <bsd.port.mk>
diff --git a/games/qstat/distinfo b/games/qstat/distinfo
index b2a6085..e4978d9 100644
--- a/games/qstat/distinfo
+++ b/games/qstat/distinfo
@@ -1,2 +1,2 @@
-MD5 (qstat-2.6.tar.gz) = 68e96ea9dd444ddd7759db02444d398a
-SIZE (qstat-2.6.tar.gz) = 133834
+MD5 (qstat-2.8.tar.gz) = 893a5d650e1d1c262704837ae164207d
+SIZE (qstat-2.8.tar.gz) = 217742
diff --git a/games/qstat/files/patch-aa b/games/qstat/files/patch-aa
deleted file mode 100644
index ba28214..0000000
--- a/games/qstat/files/patch-aa
+++ /dev/null
@@ -1,8 +0,0 @@
---- Makefile.orig Fri May 7 18:42:29 1999
-+++ Makefile Fri May 7 18:42:44 1999
-@@ -1,5 +1,4 @@
-
--CFLAGS =
-
- # Uncomment if you have gcc
- # CC = gcc
diff --git a/games/qstat/pkg-plist b/games/qstat/pkg-plist
index dcb42ff..517fe8d 100644
--- a/games/qstat/pkg-plist
+++ b/games/qstat/pkg-plist
@@ -1,13 +1,16 @@
bin/qstat
+@unexec if cmp -s %D/etc/qstat.cfg %D/etc/qstat.cfg.default; then rm -f %D/etc/qstat.cfg; fi
+etc/qstat.cfg.default
+@exec [ -f %B/qstat.cfg ] || cp %B/%f %B/qstat.cfg
%%PORTDOCS%%share/doc/qstat/qstatdoc.html
%%PORTDOCS%%share/doc/qstat/info/UT2003.txt
%%PORTDOCS%%share/doc/qstat/info/GhostRecon.txt
+%%PORTDOCS%%share/doc/qstat/info/a2s.txt
%%PORTDOCS%%share/doc/qstat/template/README.txt
%%PORTDOCS%%share/doc/qstat/template/brocTh.html
%%PORTDOCS%%share/doc/qstat/template/brocTp.html
%%PORTDOCS%%share/doc/qstat/template/brocTs.html
%%PORTDOCS%%share/doc/qstat/template/brocTt.html
-%%PORTDOCS%%share/doc/qstat/template/ghostrecon.lst
%%PORTDOCS%%share/doc/qstat/template/ghostreconTh.html
%%PORTDOCS%%share/doc/qstat/template/ghostreconTp.html
%%PORTDOCS%%share/doc/qstat/template/ghostreconTs.html
OpenPOWER on IntegriCloud