2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 by Joey Hess.
5
# This version is for a hypothetical package that builds an
6
# architecture-dependant package, as well as an architecture-independent
9
# Uncomment this to turn on verbose mode.
12
# This is the debhelper compatability version to use.
15
configure: configure-stamp
18
# Add here commands to configure the package.
23
build: configure-stamp build-stamp
27
# Add here commands to compile the package.
35
rm -f build-stamp configure-stamp
37
# Add here commands to clean up after the build process.
49
# Add here commands to install the package into debian/bugzilla.
50
$(MAKE) install DESTDIR=$(CURDIR)/debian/bugzilla \
51
STATIC_DIR=/usr/share/bugzilla/web \
52
LIB_DIR=/usr/share/bugzilla/lib \
53
CGI_DIR=/usr/lib/cgi-bin/bugzilla \
54
TEMPLATE_DIR=/usr/share/bugzilla/template \
55
DATA_DIR_PARENT=/var/lib/bugzilla
57
install -g www-data -o root -m 640 \
58
localconfig $(CURDIR)/debian/bugzilla/etc/bugzilla
60
mv $(CURDIR)/debian/bugzilla/usr/share/bugzilla/web/index.html \
61
$(CURDIR)/debian/bugzilla/var/lib/bugzilla/web/
66
# Build architecture-independent files here.
67
# Pass -i to all debhelper commands in this target to reduce clutter.
68
binary-indep: build install
74
dh_installchangelogs docs/rel_notes.txt -i
77
dh_fixperms -i -Xvar/lib/bugzilla -Xetc/bugzilla
85
.PHONY: build clean binary-indep binary-arch binary install configure