1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Allow staging as a regular user

- Bump portrevision as a file was packaged with wrong group
This commit is contained in:
Antoine Brodin 2014-09-12 17:39:03 +00:00
parent c645608f0c
commit 8e59eeb00d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368052
2 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= greed
PORTVERSION= 3.10
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://catb.org/~esr/greed/ CENKES
PKGNAMESUFFIX= -game
@ -15,13 +16,13 @@ LICENSE= BSD3CLAUSE
SCOREFILE?= /var/games/greed.hs
CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${PORTVERSION}\"
LDFLAGS+= -lcurses
PLIST_SUB+= SCOREFILE=${SCOREFILE:S|^/||}
PLIST_SUB+= SCOREFILE=${SCOREFILE}
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS})
do-install:
${INSTALL_PROGRAM} -m 2555 -o root -g games ${WRKSRC}/greed ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/greed ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/greed.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
@${MKDIR} ${STAGEDIR}${SCOREFILE:H}
${TOUCH} ${STAGEDIR}${SCOREFILE}.sample

View File

@ -1,3 +1,3 @@
bin/greed
@(,games,2555) bin/greed
man/man6/greed.6.gz
@sample(,games,664) /%%SCOREFILE%%.sample
@sample(,games,664) %%SCOREFILE%%.sample