File: rules

package info (click to toggle)
phpsysinfo 3.2.5-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,580 kB
  • ctags: 3,554
  • sloc: xml: 15,282; php: 12,220; sh: 29; makefile: 8
file content (18 lines) | stat: -rwxr-xr-x 785 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
#  # Copyright © 2003-2006 Frederik Schüler <fs@debian.org>

#export DH_VERBOSE=1

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

# chown everything to nobody:nogroup to make suphp happy
common-binary-post-install-indep::
	find debian/phpsysinfo/usr/share/phpsysinfo/ -type d -empty -delete
	find debian/phpsysinfo/usr/share/phpsysinfo/ -type d -exec chmod 0755 {} \;
	find debian/phpsysinfo/usr/share/phpsysinfo/ -type f -exec chmod 0644 {} \;
	find debian/phpsysinfo/usr/share/phpsysinfo/ -type f -exec chown nobody:nogroup {} \;
	#cp config.php.new debian/phpsysinfo/etc/phpsysinfo/config.php
	cp phpsysinfo.ini.new debian/phpsysinfo/etc/phpsysinfo/phpsysinfo.ini
	chown nobody:nogroup debian/phpsysinfo/etc/phpsysinfo/*