File: rules

package info (click to toggle)
serverstats 0.8.2-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 604 kB
  • ctags: 796
  • sloc: php: 4,238; perl: 90; sh: 15; makefile: 12
file content (17 lines) | stat: -rwxr-xr-x 879 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

# Add here any variable or target overrides you need.
DEB_FIXPERMS_EXCLUDE := serverstats

common-binary-post-install-indep::
	find debian/serverstats/usr/share/serverstats/ -type d -exec chmod 0755 {} \;
	find debian/serverstats/usr/share/serverstats/ -type f -exec chmod 0644 {} \;
	find debian/serverstats/usr/share/serverstats/sources/external/ -type f -name \*.pl -exec chmod 0755 {} \;
	find debian/serverstats/usr/share/serverstats/sources/ -type f -name \*.sh -exec chmod 0755 {} \;
	chmod 0755 debian/serverstats/usr/share/serverstats/update.php
	chown nobody:nogroup debian/serverstats/var/lib/serverstats/cache
	chown nobody:nogroup debian/serverstats/var/lib/serverstats/rrd
	chown www-data:www-data debian/serverstats/var/lib/serverstats/graph
	cp config.sample/* debian/serverstats/etc/serverstats/