[Pkg-bugzilla-commits] r133 - trunk/bugzilla-2.18.4
Alexis Sukrieh
sukria-guest at costa.debian.org
Sun Oct 2 20:56:56 UTC 2005
Author: sukria-guest
Date: 2005-10-02 20:56:56 +0000 (Sun, 02 Oct 2005)
New Revision: 133
Added:
trunk/bugzilla-2.18.4/Makefile
Log:
added custom Makefile
Added: trunk/bugzilla-2.18.4/Makefile
===================================================================
--- trunk/bugzilla-2.18.4/Makefile 2005-10-02 20:51:42 UTC (rev 132)
+++ trunk/bugzilla-2.18.4/Makefile 2005-10-02 20:56:56 UTC (rev 133)
@@ -0,0 +1,109 @@
+# Makefile written for the Debian package.
+# Based on the Remi Perrot's one, done for
+# the 2.18 release.
+
+# Destination paths
+# For a better maintenance, we'll create by hand each
+# bugzilla's sub directories.
+DESTDIR =
+BUGZILLA_PERLDIR= $(DESTDIR)/usr/share/perl5
+BUGZILLA_CONFIG = $(DESTDIR)/etc/bugzilla
+BUGZILLA_CGIDIR = $(DESTDIR)/usr/lib/cgi-bin/bugzilla
+BUGZILLA_ROOT = $(DESTDIR)/usr/share/bugzilla
+BUGZILLA_WWW = $(BUGZILLA_ROOT)/web
+BUGZILLA_LIBDIR = $(BUGZILLA_ROOT)
+BUGZILLA_DATADIR = $(DESTDIR)/var/lib/bugzilla
+BUGZILLA_CONTRIB= $(BUGZILLA_ROOT)/contrib
+
+# Source paths
+cgi_files = *.cgi
+lib_files = *.pm CGI.pl defparams.pl globals.pl move.pl runtests.pl
+lib_perlscripts = checksetup.pl collectstats.pl defparams.pl importxml.pl testserver.pl whineatnews.pl
+lib_dir = Bugzilla
+static_files = *.js *.txt *.gif *.png *.jpg quicksearchhack.html quicksearch.html
+config_files = debian/default-files/localconfig debian/default-files/index.html
+
+install: install_static_dirs install_static_files install_lib_files \
+ install_cgi install_config install_template install_contrib
+
+install_fr:
+ @echo "Extracting french templates"
+ install -d $(BUGZILLA_ROOT)/template
+ tar zxf l10n/fr.tar.gz -C $(BUGZILLA_ROOT)/template
+
+install_contrib:
+ $(shell cp -r -p contrib $(DESTDIR)/usr/share/bugzilla/contrib )
+
+install_static_dirs:
+ @for this_dir in $(shell find css -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_WWW)/$$this_dir ;\
+ done
+ @for this_dir in $(shell find js -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_WWW)/$$this_dir ;\
+ done
+ mkdir -p data/duplicates
+ mkdir -p data/webdot
+ @for this_dir in $(shell find data -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_DATADIR)/$$this_dir ;\
+ done
+ @for this_dir in $(shell find graphs -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_DATADIR)/$$this_dir ;\
+ done
+ @for this_dir in $(shell find skins -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_WWW)/$$this_dir ;\
+ done
+
+install_template:
+ @for this_dir in $(shell find template -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_ROOT)/$$this_dir ;\
+ done
+ @for this_file in $(shell find template -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_ROOT)/`dirname $$this_file` ;\
+ done
+
+
+install_static_files:
+ install -d -m 0755 -o root -g root $(BUGZILLA_WWW)
+ install -m 0644 -o root -g root $(static_files) $(BUGZILLA_WWW)
+ @for this_file in $(shell find css -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_WWW)/`dirname $$this_file` ;\
+ done
+ @for this_file in $(shell find js -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_WWW)/`dirname $$this_file` ;\
+ done
+ # The tricky point here, is to leave "params" alone, that's a conffile now
+ # We'll handle it by hand in postinst.
+ @for this_file in $(shell find data -type f -name '!params') ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_DATADIR)/`dirname $$this_file` ;\
+ done
+ @for this_file in $(shell find graph -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_DATADIR)/`dirname $$this_file` ;\
+ done
+ @for this_file in $(shell find skins -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_WWW)/`dirname $$this_file` ;\
+ done
+
+install_lib_files:
+ install -m 0644 -o root -g root $(lib_files) $(BUGZILLA_ROOT)
+ install -d -m 0755 -o root -g root $(BUGZILLA_ROOT)/lib
+ install -m 0755 -o root -g root $(lib_perlscripts) $(BUGZILLA_ROOT)/lib
+ install -d -m 0755 -o root -g root $(BUGZILLA_PERLDIR)
+ @for this_dir in $(shell find Bugzilla -type d) ; do \
+ install -d -m 0755 -o root -g root $(BUGZILLA_PERLDIR)/$$this_dir ;\
+ done
+ @for this_file in $(shell find Bugzilla -type f) ; do \
+ install -m 0644 -o root -g root $$this_file $(BUGZILLA_PERLDIR)/`dirname $$this_file` ;\
+ done
+ install -d -m 0755 -o root -g root $(BUGZILLA_DATADIR)
+
+install_cgi:
+ install -d -m 0755 -o root -g root $(BUGZILLA_CGIDIR)
+ install -m 0755 -o root -g root $(cgi_files) $(BUGZILLA_CGIDIR)
+
+install_config:
+ install -d -m 0755 -o root -g root $(BUGZILLA_CONFIG)
+ install -m 0644 -o root -g root $(config_files) $(BUGZILLA_CONFIG)
+
+deb:
+ dpkg-buildpackage -rfakeroot -us -uc
+
More information about the Pkg-bugzilla-commits
mailing list