From a6e37d6244f205ee5a16e227c7ad6837212f9e4d Mon Sep 17 00:00:00 2001 From: pgollucci Date: Sun, 31 Jan 2010 03:43:34 +0000 Subject: - use $SUB_FILES to dynamically adjust pkg-message PR: ports/142536 Submitted by: Sevan Janiyan --- games/zangband/Makefile | 4 ++-- games/zangband/files/MESSAGE.in | 14 -------------- games/zangband/files/pkg-message.in | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 games/zangband/files/MESSAGE.in create mode 100644 games/zangband/files/pkg-message.in (limited to 'games/zangband') diff --git a/games/zangband/Makefile b/games/zangband/Makefile index 17e6b15f0dd8..8df068c00a55 100644 --- a/games/zangband/Makefile +++ b/games/zangband/Makefile @@ -25,8 +25,9 @@ CONFIGURE_ARGS= --datadir=${PREFIX}/lib --mandir=${PREFIX}/man \ NO_CDROM= Possible copyright infringement WRKSRC= ${WRKDIR}/${PORTNAME} -PKGMESSAGE= ${WRKDIR}/MESSAGE PLIST_SUB+= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB} +SUB_FILES= pkg-message +SUB_LIST= ANGBANDBIN=${ANGBANDBIN} ANGBANDLIB=${ANGBANDLIB} SHAREOWN= games SHAREGRP= games @@ -54,7 +55,6 @@ post-install: ${CHMOD} -R o+r help ; \ ${CHMOD} 1777 save user \ ) - @${SED} -e "s|%%PREFIX%%|${PREFIX}|g;s|%%ANGBANDBIN%%|${ANGBANDBIN}|g;s|%%ANGBANDLIB%%|${ANGBANDLIB}|g" ${FILESDIR}/MESSAGE.in > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} .include diff --git a/games/zangband/files/MESSAGE.in b/games/zangband/files/MESSAGE.in deleted file mode 100644 index fdc6faa71449..000000000000 --- a/games/zangband/files/MESSAGE.in +++ /dev/null @@ -1,14 +0,0 @@ - ============================================================================ - To reduce the number of term windows opened, use -n: - %%PREFIX%%/%%ANGBANDBIN%% -- -n2 - - The binary will changed its owner to 'games:games' and added SETGID bit. - Then players can record their score to public score files. - You can set fonts by using environment variables such as ANGBAND_X11_FONT, - ANGBAND_X11_FONT_1 (the number represents sub-window id). - - WARNING! - You now have the following world-writable (mode 1777) directories: - %%PREFIX%%/%%ANGBANDLIB%%/save - %%PREFIX%%/%%ANGBANDLIB%%/user - ============================================================================ diff --git a/games/zangband/files/pkg-message.in b/games/zangband/files/pkg-message.in new file mode 100644 index 000000000000..fdc6faa71449 --- /dev/null +++ b/games/zangband/files/pkg-message.in @@ -0,0 +1,14 @@ + ============================================================================ + To reduce the number of term windows opened, use -n: + %%PREFIX%%/%%ANGBANDBIN%% -- -n2 + + The binary will changed its owner to 'games:games' and added SETGID bit. + Then players can record their score to public score files. + You can set fonts by using environment variables such as ANGBAND_X11_FONT, + ANGBAND_X11_FONT_1 (the number represents sub-window id). + + WARNING! + You now have the following world-writable (mode 1777) directories: + %%PREFIX%%/%%ANGBANDLIB%%/save + %%PREFIX%%/%%ANGBANDLIB%%/user + ============================================================================ -- cgit