File: rules

package info (click to toggle)
simpleid 0.8.1-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 644 kB
  • sloc: php: 4,173; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 1,072 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
#!/usr/bin/make -f

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

# We use the Debian packaged jquery, a symlink is created 
# using debian/simpleid.links
DEB_DH_ALWAYS_EXCLUDE = simpleid/html/jquery.js

DEB_INSTALL_CHANGELOGS_ALL = simpleid/CHANGELOG.txt

SIMPLEID_WEB_CONF = etc/simpleid/apache.conf

binary-install/simpleid::
	echo -n "<?php define('SIMPLEID_VERSION', '"$(DEB_VERSION)"'); ?>" > debian/simpleid/usr/share/simpleid/www/version.inc.php

binary-fixup/simpleid::
	chown root.www-data debian/simpleid/var/lib/simpleid/identities
	chmod 0750 debian/simpleid/var/lib/simpleid/identities
	chown www-data.www-data debian/simpleid/var/lib/simpleid/cache debian/simpleid/var/lib/simpleid/store
	chmod 0770 debian/simpleid/var/lib/simpleid/cache debian/simpleid/var/lib/simpleid/store
	echo '<Directory "/usr/share/simpleid/www">' >> debian/simpleid/$(SIMPLEID_WEB_CONF)
	cat simpleid/www/.htaccess.dist >> debian/simpleid/$(SIMPLEID_WEB_CONF)
	echo '</Directory>' >> debian/simpleid/$(SIMPLEID_WEB_CONF)
	rm debian/simpleid/usr/share/simpleid/www/.htaccess.dist