File: rules

package info (click to toggle)
phpldapadmin 1.2.6.7-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 5,528 kB
  • sloc: php: 17,684; javascript: 5,299; xml: 1,498; sh: 379; python: 148; makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 1,277 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

%:
	dh $@

override_dh_installdocs:
	mkdir debian/tmp
	cp ./hooks/classes/README ./debian/tmp/hooks-classes-README.txt
	cp ./hooks/functions/README ./debian/tmp/hooks-functions-README.txt
	cp ./hooks/functions/example.php ./debian/tmp/hooks-functions-example.php
	cp ./doc/ldif-Simpsons ./debian/tmp/Simpsons.ldif
	cp ./doc/ldif-Flintstones ./debian/tmp/Flintstones.ldif
	cp ./doc/ldif-example-com ./debian/tmp/example-com.ldif
	cp ./doc/ldif-example.com ./debian/tmp/example.com.ldif
	dh_installdocs

override_dh_fixperms:
	dh_fixperms
	# Two files with x permissions for no good reason
	find debian -path '*/htdocs/*' -name 'export*.php' -print -exec chmod -x {} +
    # rwx for owner, rx for group, r for others
	find debian -path '*/templates*' -type d -print -exec chmod 0755 {} +
    # rwx for owner, rx for group, r for others
	find debian -path '*/hooks*' -type d -print -exec chmod 0755 {} +
    # rw for owner, r for group, r for others
	find debian -path '*/templates/*' -type f -print -exec chmod 0644 {} +
    # rw for owner, r for group, r for others
	find debian -path '*/hooks/*' -type f -print -exec chmod 0644 {} +

override_dh_compress:
	dh_compress -Xuidpool.schema -X.ldif

override_dh_installdebconf:
	dh_installdebconf -pphpldapadmin