Received: by mail.netbsd.org (Postfix, from userid 605) id 2E39C84D24; Thu, 22 Apr 2021 18:53:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 698F784D17 for ; Thu, 22 Apr 2021 18:53:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 83LMlBuqr8mt for ; Thu, 22 Apr 2021 18:53:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9228E84CE1 for ; Thu, 22 Apr 2021 18:53:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 8BD6DFA95; Thu, 22 Apr 2021 18:53:55 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1619117635203820" MIME-Version: 1.0 Date: Thu, 22 Apr 2021 18:53:55 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/games To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20210422185355.8BD6DFA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1619117635203820 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Thu Apr 22 18:53:55 UTC 2021 Modified Files: pkgsrc/games: Makefile Added Files: pkgsrc/games/nbsdgames: DESCR Makefile PLIST distinfo pkgsrc/games/nbsdgames/patches: patch-Makefile Log Message: add games/nbsdgames A package of 17 text-based modern games: Jewels, Sudoku, Mines, Reversi, Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, Memoblocks, Fisher, Muncher, Miketron, Redsquare, Darrt, and Snakeduel. To generate a diff of this commit: cvs rdiff -u -r1.503 -r1.504 pkgsrc/games/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/games/nbsdgames/DESCR \ pkgsrc/games/nbsdgames/Makefile pkgsrc/games/nbsdgames/PLIST \ pkgsrc/games/nbsdgames/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/games/nbsdgames/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1619117635203820 Content-Disposition: inline Content-Length: 5964 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/games/Makefile diff -u pkgsrc/games/Makefile:1.503 pkgsrc/games/Makefile:1.504 --- pkgsrc/games/Makefile:1.503 Thu Apr 8 19:53:08 2021 +++ pkgsrc/games/Makefile Thu Apr 22 18:53:55 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.503 2021/04/08 19:53:08 markd Exp $ +# $NetBSD: Makefile,v 1.504 2021/04/22 18:53:55 nia Exp $ # COMMENT= Games @@ -291,6 +291,7 @@ SUBDIR+= moria SUBDIR+= mrrescue SUBDIR+= naev SUBDIR+= nagi +SUBDIR+= nbsdgames SUBDIR+= nethack SUBDIR+= nethack-lib SUBDIR+= nethack-tty Added files: Index: pkgsrc/games/nbsdgames/DESCR diff -u /dev/null pkgsrc/games/nbsdgames/DESCR:1.1 --- /dev/null Thu Apr 22 18:53:55 2021 +++ pkgsrc/games/nbsdgames/DESCR Thu Apr 22 18:53:55 2021 @@ -0,0 +1,3 @@ +A package of 17 text-based modern games: Jewels, Sudoku, Mines, Reversi, +Checkers, Battleship, SOS, Rabbithole, Pipes, Fifteen, Memoblocks, Fisher, +Muncher, Miketron, Redsquare, Darrt, and Snakeduel. Index: pkgsrc/games/nbsdgames/Makefile diff -u /dev/null pkgsrc/games/nbsdgames/Makefile:1.1 --- /dev/null Thu Apr 22 18:53:55 2021 +++ pkgsrc/games/nbsdgames/Makefile Thu Apr 22 18:53:55 2021 @@ -0,0 +1,51 @@ +# $NetBSD: Makefile,v 1.1 2021/04/22 18:53:55 nia Exp $ + +DISTNAME= nbsdgames-v4.0 +PKGNAME= ${DISTNAME:S/-v/-/1} +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_GITHUB:=abakh/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/abakh/nbsdgames +COMMENT= New BSD Games - a package of 17 text-based modern games +LICENSE= public-domain + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} + +USE_TOOLS+= gmake +USE_LANGUAGES= c99 + +BUILD_DEFS+= VARBASE + +.include "../../mk/curses.buildlink3.mk" + +CFLAGS+= ${BUILDLINK_LDADD.curses} + +.if !empty(CURSES_TYPE:M*ncurses*) +CFLAGS+= -DNO_MOUSE=1 +.endif + +.include "../../mk/bsd.prefs.mk" + +MAKE_FLAGS+= GAMES_DIR=${DESTDIR}${PREFIX}/bin + +SUBST_CLASSES+= paths +SUBST_STAGE.paths= pre-configure +SUBST_FILES.paths+= config.h +SUBST_SED.paths+= -e "s,/usr/games,${VARBASE}/games,g" + +INSTALLATION_DIRS+= bin + +.if empty(UNPRIVILEGED:M[yY][eE][sS]) +. for game in pewels jewels fisher muncher miketron darrt +SPECIAL_PERMS+= bin/${game} ${SETGID_GAMES_PERMS} +. endfor +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/pp_scores ${GAMEDATA_PERMS} +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/jw_scores ${GAMEDATA_PERMS} +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/fsh_scores ${GAMEDATA_PERMS} +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/mnch_scores ${GAMEDATA_PERMS} +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/mt_scores ${GAMEDATA_PERMS} +REQD_FILES_PERMS+= /dev/null ${VARBASE}/games/drt_scores ${GAMEDATA_PERMS} +.endif + +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/games/nbsdgames/PLIST diff -u /dev/null pkgsrc/games/nbsdgames/PLIST:1.1 --- /dev/null Thu Apr 22 18:53:55 2021 +++ pkgsrc/games/nbsdgames/PLIST Thu Apr 22 18:53:55 2021 @@ -0,0 +1,18 @@ +@comment $NetBSD: PLIST,v 1.1 2021/04/22 18:53:55 nia Exp $ +bin/battleship +bin/checkers +bin/darrt +bin/fifteen +bin/fisher +bin/jewels +bin/memoblocks +bin/miketron +bin/mines +bin/muncher +bin/pipes +bin/rabbithole +bin/redsquare +bin/reversi +bin/snakeduel +bin/sos +bin/sudoku Index: pkgsrc/games/nbsdgames/distinfo diff -u /dev/null pkgsrc/games/nbsdgames/distinfo:1.1 --- /dev/null Thu Apr 22 18:53:55 2021 +++ pkgsrc/games/nbsdgames/distinfo Thu Apr 22 18:53:55 2021 @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2021/04/22 18:53:55 nia Exp $ + +SHA1 (nbsdgames-v4.0.tar.gz) = 5d85b84b76a6cd60d7582313d2a7f909af6a395e +RMD160 (nbsdgames-v4.0.tar.gz) = b3254f172b2abc57ac26e97262a7aa7d135cef23 +SHA512 (nbsdgames-v4.0.tar.gz) = d04f0c75c07198c16c2b58a23fbf3600af26c77c5ae9694cc58127416d17212e9e2ab4b6ccd096e7e5b6ea44dea8c1854ffbcc857019e2592669388f81de16cc +Size (nbsdgames-v4.0.tar.gz) = 276246 bytes +SHA1 (patch-Makefile) = 9e6709a04c131bd59e15c9e81bdd58b2c3dd7e1a Index: pkgsrc/games/nbsdgames/patches/patch-Makefile diff -u /dev/null pkgsrc/games/nbsdgames/patches/patch-Makefile:1.1 --- /dev/null Thu Apr 22 18:53:55 2021 +++ pkgsrc/games/nbsdgames/patches/patch-Makefile Thu Apr 22 18:53:55 2021 @@ -0,0 +1,30 @@ +$NetBSD: patch-Makefile,v 1.1 2021/04/22 18:53:55 nia Exp $ + +Honor CFLAGS. Don't attempt to create scores files, let pkgsrc do that. + +--- Makefile.orig 2021-04-19 07:30:54.000000000 +0000 ++++ Makefile +@@ -1,15 +1,4 @@ + # -*- Makefile -*- +-ifndef $(CFLAGS) +- CFLAGS= -O3 -lncurses -Wno-unused-result +- #-O3 --std=c99 -lcurses -DNO_MOUSE for NetBSD curses +- #adding --std=c99 makes warnings in GNU, and the blame is upon glibc feature test macros. my code is correct. +-endif +-ifndef $(GAMES_DIR) +- GAMES_DIR=/usr/games +-endif +-ifndef $(SCORES_DIR) +- SCORES_DIR=/usr/games +-endif + all: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel + scorefiles: + touch $(SCORES_DIR)/pp_scores +@@ -64,6 +53,6 @@ clean: + rm ./jewels ./sudoku ./checkers ./mines ./reversi ./battleship ./rabbithole ./sos ./pipes ./fifteen ./memoblocks ./fisher ./muncher ./miketron ./redsquare ./darrt ./snakeduel + uninstall: + rm $(GAMES_DIR)/jewels $(GAMES_DIR)/sudoku $(GAMES_DIR)/checkers $(GAMES_DIR)/mines $(GAMES_DIR)/reversi $(GAMES_DIR)/battleship $(GAMES_DIR)/rabbithole $(GAMES_DIR)/sos $(GAMES_DIR)/pipes $(GAMES_DIR)/fifteen $(GAMES_DIR)/memoblocks $(GAMES_DIR)/fisher $(GAMES_DIR)/muncher $(GAMES_DIR)/miketron $(GAMES_DIR)/redsquare $(GAMES_DIR)/darrt $(GAMES_DIR)/snakeduel +-install: scorefiles jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel ++install: jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel + cp jewels sudoku mines reversi checkers battleship rabbithole sos pipes fifteen memoblocks fisher muncher miketron redsquare darrt snakeduel $(GAMES_DIR) + --_----------=_1619117635203820--