summaryrefslogtreecommitdiff
path: root/games/rollemup
diff options
context:
space:
mode:
authorsakamoto <sakamoto>1999-11-29 04:35:47 +0000
committersakamoto <sakamoto>1999-11-29 04:35:47 +0000
commit3968d2a10e2bb533572ec6bede087f1834e6a2d7 (patch)
treead87d023f3e7dba64b40958bc545cf063fba091f /games/rollemup
parent542b289843504d2dc948330738a6b43bd21bc4d3 (diff)
downloadpkgsrc-3968d2a10e2bb533572ec6bede087f1834e6a2d7.tar.gz
Fix typos, ${GAMES_DIR} and MESSAGE.
Suggested by MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>.
Diffstat (limited to 'games/rollemup')
-rw-r--r--games/rollemup/Makefile24
-rw-r--r--games/rollemup/files/rollemup.sh2
-rw-r--r--games/rollemup/pkg/MESSAGE2
3 files changed, 17 insertions, 11 deletions
diff --git a/games/rollemup/Makefile b/games/rollemup/Makefile
index 2cbdbcacb94..8f1a125a4dd 100644
--- a/games/rollemup/Makefile
+++ b/games/rollemup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1999/11/23 16:54:40 hubertf Exp $
+# $NetBSD: Makefile,v 1.5 1999/11/29 04:35:47 sakamoto Exp $
#
DISTNAME= Rollemup
@@ -21,6 +21,8 @@ NO_CONFIGURE= yes
NO_PACKAGE= ${RESTRICTED}
NO_CDROM= ${RESTRICTED}
+MESSAGE_FILE= ${WRKDIR}/MESSAGE
+
PLIST_SRC= ${WRKDIR}/PLIST.src
GAMES_DIR= share/games
@@ -37,8 +39,12 @@ IGNORE= requires Linux glibc2 libraries - see compat_linux(8)
.endif
do-build:
- @${SED} -e 's|$${PREFIX}|${PREFIX}|g' ${FILESDIR}/rollemup.sh \
- > ${WRKDIR}/rollemup
+ @${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
+ -e 's|$${GAMES_DIR}|${GAMES_DIR}|g' \
+ ${FILESDIR}/rollemup.sh > ${WRKDIR}/rollemup
+ @${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
+ -e 's|$${GAMES_DIR}|${GAMES_DIR}|g' \
+ ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
@${SED} -e 's|$${PREFIX}|${PREFIX}|g' ${FILESDIR}/README.Rollemup \
> ${WRKDIR}/README.Rollemup
@@ -55,11 +61,11 @@ do-install:
for DIR in `find ${GAMES_DIR}/Rollemup -type d | sort -r`; do \
${ECHO} "@dirrm $$DIR" >> ${PLIST_SRC}; \
done)
- @chown root:games ${PREFIX}/bin/Rollemup
- @chmod 2755 ${PREFIX}/bin/Rollemup
- @chown -R root:games ${PREFIX}/${GAMES_DIR}/Rollemup
- @chmod 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Games
- @chmod 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Upload
- @chmod 664 ${PREFIX}/${GAMES_DIR}/Rollemup/Rollemup.ini
+ @${CHOWN} root:games ${PREFIX}/bin/Rollemup
+ @${CHMOD} 2755 ${PREFIX}/bin/Rollemup
+ @${CHOWN} -R root:games ${PREFIX}/${GAMES_DIR}/Rollemup
+ @${CHMOD} 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Games
+ @${CHMOD} 775 ${PREFIX}/${GAMES_DIR}/Rollemup/Upload
+ @${CHMOD} 664 ${PREFIX}/${GAMES_DIR}/Rollemup/Rollemup.ini
.include "../../mk/bsd.pkg.mk"
diff --git a/games/rollemup/files/rollemup.sh b/games/rollemup/files/rollemup.sh
index 6845f252fb4..c490efb8178 100644
--- a/games/rollemup/files/rollemup.sh
+++ b/games/rollemup/files/rollemup.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-(cd ${PREFIX}/share/games/Rollemup; ${PREFIX}/bin/Rollemup)
+(cd ${PREFIX}/${GAMES_DIR}/Rollemup; ${PREFIX}/bin/Rollemup)
diff --git a/games/rollemup/pkg/MESSAGE b/games/rollemup/pkg/MESSAGE
index d6e34657445..65ecff2cdaf 100644
--- a/games/rollemup/pkg/MESSAGE
+++ b/games/rollemup/pkg/MESSAGE
@@ -1 +1 @@
-Please read ${PREFIX}/share/games/Rollumup/README.Rollemup
+Please read ${PREFIX}/${GAMES_DIR}/Rollemup/README.Rollemup