File: rules

package info (click to toggle)
phpsysinfo 2.3-4sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,576 kB
  • ctags: 1,566
  • sloc: php: 8,060; sh: 67; makefile: 14
file content (28 lines) | stat: -rwxr-xr-x 941 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
#  # Copyright © 2003-2004 Frederik Schüler <fschueler@gmx.net>

# export DH_VERBOSE=1

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_INSTALL_MANPAGES_phpsysinfo := debian/phpsysinfo.1

common-install-indep::
	mkdir -p debian/phpsysinfo/usr/share/phpsysinfo
	cp -a images debian/phpsysinfo/usr/share/phpsysinfo/
	cp -a includes debian/phpsysinfo/usr/share/phpsysinfo/
	cp -a templates debian/phpsysinfo/usr/share/phpsysinfo/
	cp -a index.php phpsysinfo.dtd debian/phpsysinfo/usr/share/phpsysinfo/
	dh_link /usr/share/phpsysinfo /var/www/phpsysinfo
	dh_installman debian/phpsysinfo.1


	# Set directory permissions
	chmod -R 755 `find debian/phpsysinfo/usr/share/phpsysinfo/ -type d`
	# Set other files permissions
	chmod -R 644 `find debian/phpsysinfo/usr/share/phpsysinfo/ -type f`
	
	chown root:root debian/phpsysinfo -R