aboutsummaryrefslogtreecommitdiffstats
path: root/games/crafty-open-medium
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-10-08 02:04:30 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-10-08 02:04:30 +0800
commitf3f790d3782bf86caf255ecb768a69665e420e9a (patch)
tree8398007c3ea4be52e6eaf1df75c52709faf97080 /games/crafty-open-medium
parent9d1ecd3101e196c416d311717dbe2ad2b863abd5 (diff)
downloadfreebsd-ports-gnome-f3f790d3782bf86caf255ecb768a69665e420e9a.tar.gz
freebsd-ports-gnome-f3f790d3782bf86caf255ecb768a69665e420e9a.tar.zst
freebsd-ports-gnome-f3f790d3782bf86caf255ecb768a69665e420e9a.zip
- Pet portlint
- Fix installation from non-root - Drop @dirrm* from plist
Diffstat (limited to 'games/crafty-open-medium')
-rw-r--r--games/crafty-open-medium/Makefile8
-rw-r--r--games/crafty-open-medium/pkg-plist3
2 files changed, 4 insertions, 7 deletions
diff --git a/games/crafty-open-medium/Makefile b/games/crafty-open-medium/Makefile
index bc4b61a81253..65d5909c63f7 100644
--- a/games/crafty-open-medium/Makefile
+++ b/games/crafty-open-medium/Makefile
@@ -7,14 +7,14 @@ PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= LOCAL/dd/crafty
DISTNAME= medium
+DIST_SUBDIR= crafty
MAINTAINER= ports@FreeBSD.org
-COMMENT= The medium opening book (about 1.9 MByte) for crafty
+COMMENT= Medium opening book (about 1.9 MByte) for crafty
BUILD_DEPENDS= crafty:${PORTSDIR}/games/crafty
RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty
-DIST_SUBDIR= crafty
USES= zip
NO_WRKSUBDIR= yes
CONFLICTS= crafty-open-enormous-* crafty-open-large-* crafty-open-default-*
@@ -23,13 +23,11 @@ do-build:
@${ECHO_MSG} '================================================================'
@${ECHO_MSG} 'Ignore warnings about illegal moves. These warnings are normal.'
@${ECHO_MSG} '================================================================'
- (${CHOWN} nobody ${WRKDIR}; cd ${WRKDIR}; crafty <${FILESDIR}/book-building)
+ (cd ${WRKDIR} && crafty <${FILESDIR}/book-building)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/crafty
${INSTALL_DATA} ${WRKDIR}/book.bin \
${STAGEDIR}${PREFIX}/lib/crafty/book.bin
- ${CHOWN} nobody:nogroup ${STAGEDIR}${PREFIX}/lib/crafty/book.bin
- ${CHMOD} 664 ${STAGEDIR}${PREFIX}/lib/crafty/book.bin
.include <bsd.port.mk>
diff --git a/games/crafty-open-medium/pkg-plist b/games/crafty-open-medium/pkg-plist
index bb5658da5ab7..4a4aa82683d0 100644
--- a/games/crafty-open-medium/pkg-plist
+++ b/games/crafty-open-medium/pkg-plist
@@ -1,2 +1 @@
-lib/crafty/book.bin
-@dirrmtry lib/crafty
+@(nobody,nogroup,664) lib/crafty/book.bin