diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-24 23:49:33 +0800 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-24 23:49:33 +0800 |
commit | 1cfbe6951da2519997f8ba785adce7d14fb2cd80 (patch) | |
tree | 945e25e5c9a8ae5579eeb9d0fa403410f71ec712 /games/greed | |
parent | 7a3a48c2f5f566f3999714ccc0ad5886321096c9 (diff) | |
download | freebsd-ports-gnome-1cfbe6951da2519997f8ba785adce7d14fb2cd80.tar.gz freebsd-ports-gnome-1cfbe6951da2519997f8ba785adce7d14fb2cd80.tar.zst freebsd-ports-gnome-1cfbe6951da2519997f8ba785adce7d14fb2cd80.zip |
This port was not stage-safe as it was making direct writes to /var. Fix that,
along with making do-install substantially easier to read. While here, stop
muting the build command.
Diffstat (limited to 'games/greed')
-rw-r--r-- | games/greed/Makefile | 9 | ||||
-rw-r--r-- | games/greed/pkg-plist | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/games/greed/Makefile b/games/greed/Makefile index 121638296222..9125f08806a7 100644 --- a/games/greed/Makefile +++ b/games/greed/Makefile @@ -15,16 +15,15 @@ LICENSE= BSD3CLAUSE SCOREFILE?= /var/games/greed.hs CFLAGS+= -DSCOREFILE=\"${SCOREFILE}\" -DNOTBSD -DRELEASE=\"${PORTVERSION}\" LDFLAGS+= -lcurses +PLIST_SUB+= SCOREFILE=${SCOREFILE:S|^/||} do-build: - @cd ${WRKSRC}&&${CC} ${CFLAGS} -o greed greed.c ${LDFLAGS} + (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_MAN} ${WRKSRC}/greed.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ - @a=${SCOREFILE};[ -f $$a ]||:>$$a&&${CHOWN} root:games $$a&&${CHMOD} 664 $$a - @${ECHO_CMD} '@exec a=${SCOREFILE};[ -f $$a ]||:>$$a&&\ - ${CHOWN} root:games $$a&&${CHMOD} 664 $$a' >> ${TMPPLIST} - @${ECHO_CMD} '@unexec a=${SCOREFILE};[ -s $$a ]||${RM} -f $$a' >> ${TMPPLIST} + @${MKDIR} ${STAGEDIR}${SCOREFILE:H} + ${TOUCH} ${STAGEDIR}${SCOREFILE}.sample .include <bsd.port.mk> diff --git a/games/greed/pkg-plist b/games/greed/pkg-plist index 38781473fda5..2974cd9dd8b7 100644 --- a/games/greed/pkg-plist +++ b/games/greed/pkg-plist @@ -1,2 +1,6 @@ bin/greed man/man6/greed.6.gz +@cwd / +@group games +@mode 664 +@sample %%SCOREFILE%%.sample |