~ubuntu-branches/ubuntu/vivid/symfony/vivid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/make -f

export DH_OPTIONS

PEAR_LIB_DIR := $(shell pear config-get php_dir)
PEAR_DATA_DIR := $(shell pear config-get data_dir)
PEAR_DOC_DIR := $(shell pear config-get doc_dir)

configure:

build:

clean:
	dh_testdir
	dh_testroot
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k -i
	
	dh_install lib/* $(PEAR_LIB_DIR)/symfony/
	dh_install data/* $(PEAR_DATA_DIR)/symfony/
	dh_install doc/* $(PEAR_DOC_DIR)/symfony/
	
	rm -f ./debian/php5-symfony1.0/usr/share/php/docs/symfony/LICENSE
	rm -f ./debian/php5-symfony1.0/usr/share/php/symfony/vendor/propel-generator/LICENSE	
	
	# remove empty dirs
	-rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/skeleton/app/app/lib/.sf
	-rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/generator/sfPropelAdmin/default/skeleton/templates
	-rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/generator/sfPropelAdmin/default/skeleton/validate
	-rmdir ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/modules/default/config

	# stop lintian complaining about modes
	find -perm -a=x -type f | xargs chmod -c a-x 

	chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/bin/create_sandbox.sh
	chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/bin/symfony
	chmod a+x ./debian/php5-symfony1.0$(PEAR_LIB_DIR)/symfony/vendor/propel-generator/bin/propel-gen
	chmod a+x ./debian/php5-symfony1.0$(PEAR_LIB_DIR)/symfony/vendor/propel-generator/pear/pear-propel-gen
	chmod a+x ./debian/php5-symfony1.0$(PEAR_DATA_DIR)/symfony/skeleton/project/symfony
	
	-mkdir -p debian/php5-symfony1.0/usr/share/lintian/overrides
	install -o root -g root -m 644 debian/lintian debian/php5-symfony1.0/usr/share/lintian/overrides/php5-symfony1.0


binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary binary-indep binary-arch install configure