summaryrefslogtreecommitdiffstats
path: root/cgit-0.8.1-Makefile-install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'cgit-0.8.1-Makefile-install.patch')
-rw-r--r--cgit-0.8.1-Makefile-install.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/cgit-0.8.1-Makefile-install.patch b/cgit-0.8.1-Makefile-install.patch
new file mode 100644
index 0000000..89825e9
--- /dev/null
+++ b/cgit-0.8.1-Makefile-install.patch
@@ -0,0 +1,33 @@
+diff -up cgit-0.8.1/Makefile.install cgit-0.8.1/Makefile
+--- cgit-0.8.1/Makefile.install 2008-10-11 14:22:57.000000000 -0400
++++ cgit-0.8.1/Makefile 2009-01-11 11:56:51.000000000 -0500
+@@ -1,11 +1,13 @@
+ CGIT_VERSION = v0.8.1
+ CGIT_SCRIPT_NAME = cgit.cgi
+ CGIT_SCRIPT_PATH = /var/www/htdocs/cgit
++CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH)
+ CGIT_CONFIG = /etc/cgitrc
+ CACHE_ROOT = /var/cache/cgit
+ SHA1_HEADER = <openssl/sha.h>
+ GIT_VER = 1.6.0.2
+ GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2
++INSTALL = install
+
+ #
+ # Let the user override the above settings.
+@@ -112,10 +114,11 @@ test: all
+ $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all
+
+ install: all
+- mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)
+- install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
+- install cgit.css $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.css
+- install cgit.png $(DESTDIR)$(CGIT_SCRIPT_PATH)/cgit.png
++ $(INSTALL) -m0755 -d $(DESTDIR)$(CGIT_SCRIPT_PATH)
++ $(INSTALL) -m0755 cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)
++ $(INSTALL) -m0755 -d $(DESTDIR)$(CGIT_DATA_PATH)
++ $(INSTALL) -m0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
++ $(INSTALL) -m0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
+
+ uninstall:
+ rm -f $(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)