Statistics
| Branch: | Tag: | Revision:

root / debian / rules @ bb84cf5f

History | View | Annotate | Download (1.1 kB)

1
#!/usr/bin/make -f
2
# Sample debian/rules that uses debhelper.
3
# This file is public domain software, originally written by Joey Hess.
4
#
5

    
6
# Uncomment this to turn on verbose mode.
7
export DH_VERBOSE=1
8

    
9
BUILDDIR := debian
10
DESTDIR := ${CURDIR}/${BUILDDIR}
11

    
12
PACKAGES = \
13
	snf-astakos-app \
14
	snf-common \
15
	snf-cyclades-app \
16
	snf-cyclades-gtools \
17
	snf-webproject \
18
	snf-pithos-app \
19
	snf-pithos-backend \
20
	snf-tools
21

    
22
%:
23
	dh $@ --with python2
24

    
25

    
26
override_dh_auto_install:
27
	for package in $(PACKAGES); do \
28
		cd $$package ; \
29
		python setup.py install --root=$(DESTDIR)/$$package --install-layout=deb ; \
30
		cd - ; \
31
	done
32
	-for py in $(shell pyversions -vr debian/control); do \
33
		rm $(DESTDIR)/*/usr/lib/python$$py/*-packages/*-nspkg.pth; \
34
	done
35
	dh_install
36

    
37
override_dh_fixperms:
38
	dh_fixperms
39
	chmod 0640 $(DESTDIR)/*/etc/synnefo/*
40
	chmod 0750 $(DESTDIR)/*/etc/synnefo
41
	chown -R root:www-data $(DESTDIR)/*/etc/synnefo
42

    
43
override_dh_installinit:
44
	dh_installinit --name=snf-ganeti-eventd --error-handler=true -- defaults 20 80 -i
45
	dh_installinit --name=snf-dispatcher --error-handler=true -- defaults 20 80 -i
46

    
47
override_dh_build: