diff options
author | Marshall Scott <bacchist@gmail.com> | 2010-05-12 23:29:07 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:29:07 +0200 |
commit | 2c051649490cb12da98fce62ff5e2aca7d0ac6c0 (patch) | |
tree | 0a3742c5516cd17d50a864748309777a280e7e01 /games/angband/Fix_DESTDIR_support.patch | |
parent | 76d073ed29c22e570ea421b2d49ccc034909c9da (diff) | |
download | slackbuilds-2c051649490cb12da98fce62ff5e2aca7d0ac6c0.tar.gz |
games/angband: Added to 12.2 repository
Diffstat (limited to 'games/angband/Fix_DESTDIR_support.patch')
-rw-r--r-- | games/angband/Fix_DESTDIR_support.patch | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/games/angband/Fix_DESTDIR_support.patch b/games/angband/Fix_DESTDIR_support.patch new file mode 100644 index 0000000000..51cc9433f7 --- /dev/null +++ b/games/angband/Fix_DESTDIR_support.patch @@ -0,0 +1,93 @@ +Trivial patch by Robby Workman <rworkman@slackware.com> +This simply fixes the install-posthook files to respect DESTDIR settings +instead of trying to write to the real / filesystem. This will only be +noticed if you enable setgid functionality... + +diff -Nur angband-3.1.0beta.orig/lib/apex/Makefile angband-3.1.0beta/lib/apex/Makefile +--- angband-3.1.0beta.orig/lib/apex/Makefile 2008-05-17 08:08:23.000000000 -0500 ++++ angband-3.1.0beta/lib/apex/Makefile 2009-03-23 00:05:28.102772735 -0500 +@@ -6,10 +6,10 @@ + + install-posthook: + if [ "x$(SETEGID)" != "x" ]; then \ +- printf "%10s %-20s\n" TOUCH ${DATA_PATH}/apex/scores.raw; \ ++ printf "%10s %-20s\n" TOUCH $(DESTDIR)${DATA_PATH}/apex/scores.raw; \ + if [ "x$(DRY)" = "x" ]; then \ +- touch ${DATA_PATH}/apex/scores.raw; \ +- chown -R root:${SETEGID} ${DATA_PATH}/apex; \ +- chmod -R g+w ${DATA_PATH}/apex; \ ++ touch $(DESTDIR)${DATA_PATH}/apex/scores.raw; \ ++ chown -R root:${SETEGID} $(DESTDIR)${DATA_PATH}/apex; \ ++ chmod -R g+w $(DESTDIR)${DATA_PATH}/apex; \ + fi; \ + fi; +diff -Nur angband-3.1.0beta.orig/lib/bone/Makefile angband-3.1.0beta/lib/bone/Makefile +--- angband-3.1.0beta.orig/lib/bone/Makefile 2008-05-17 08:08:23.000000000 -0500 ++++ angband-3.1.0beta/lib/bone/Makefile 2009-03-23 00:05:36.083328120 -0500 +@@ -7,7 +7,7 @@ + install-posthook: + if [ "x$(SETEGID)" != "x" ]; then \ + if [ "x$(DRY)" = "x" ]; then \ +- chown root:${SETEGID} ${DATA_PATH}/bone; \ +- chmod 070 ${DATA_PATH}/bone; \ ++ chown root:${SETEGID} $(DESTDIR)${DATA_PATH}/bone; \ ++ chmod 070 $(DESTDIR)${DATA_PATH}/bone; \ + fi; \ + fi +diff -Nur angband-3.1.0beta.orig/lib/data/Makefile angband-3.1.0beta/lib/data/Makefile +--- angband-3.1.0beta.orig/lib/data/Makefile 2008-06-02 12:36:12.000000000 -0500 ++++ angband-3.1.0beta/lib/data/Makefile 2009-03-23 00:05:43.223826793 -0500 +@@ -9,23 +9,23 @@ + + install-posthook: + if [ "x$(SETEGID)" != "x" ]; then \ +- printf "%10s %s*.raw\n" TOUCH ${DATA_PATH}/data/; \ ++ printf "%10s %s*.raw\n" TOUCH $(DESTDIR)${DATA_PATH}/data/; \ + if [ "x$(DRY)" = "x" ]; then \ +- touch ${DATA_PATH}/data/artifact.raw; \ +- touch ${DATA_PATH}/data/ego_item.raw; \ +- touch ${DATA_PATH}/data/flavor.raw; \ +- touch ${DATA_PATH}/data/limits.raw; \ +- touch ${DATA_PATH}/data/monster.raw; \ +- touch ${DATA_PATH}/data/object.raw; \ +- touch ${DATA_PATH}/data/p_class.raw; \ +- touch ${DATA_PATH}/data/p_hist.raw; \ +- touch ${DATA_PATH}/data/p_race.raw; \ +- touch ${DATA_PATH}/data/prices.raw; \ +- touch ${DATA_PATH}/data/shop_own.raw; \ +- touch ${DATA_PATH}/data/spells.raw; \ +- touch ${DATA_PATH}/data/terrain.raw; \ +- touch ${DATA_PATH}/data/vault.raw; \ +- chown -R root:${SETEGID} ${DATA_PATH}/data; \ +- chmod -R g+w ${DATA_PATH}/data; \ ++ touch $(DESTDIR)${DATA_PATH}/data/artifact.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/ego_item.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/flavor.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/limits.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/monster.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/object.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/p_class.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/p_hist.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/p_race.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/prices.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/shop_own.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/spells.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/terrain.raw; \ ++ touch $(DESTDIR)${DATA_PATH}/data/vault.raw; \ ++ chown -R root:${SETEGID} $(DESTDIR)${DATA_PATH}/data; \ ++ chmod -R g+w $(DESTDIR)${DATA_PATH}/data; \ + fi; \ + fi +diff -Nur angband-3.1.0beta.orig/lib/save/Makefile angband-3.1.0beta/lib/save/Makefile +--- angband-3.1.0beta.orig/lib/save/Makefile 2008-05-17 08:08:23.000000000 -0500 ++++ angband-3.1.0beta/lib/save/Makefile 2009-03-23 00:06:04.161286215 -0500 +@@ -7,7 +7,7 @@ + install-posthook: + if [ "x$(SETEGID)" != "x" ]; then \ + if [ "x$(DRY)" = "x" ]; then \ +- chown root:${SETEGID} ${DATA_PATH}/save; \ +- chmod 070 ${DATA_PATH}/save; \ ++ chown root:${SETEGID} $(DESTDIR)${DATA_PATH}/save; \ ++ chmod 070 $(DESTDIR)${DATA_PATH}/save; \ + fi; \ + fi |