2013-03-31 05:25:54 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2014-06-30 14:54:03 +02:00
|
|
|
%:
|
2020-06-14 23:42:11 +02:00
|
|
|
dh $@ --with bash-completion
|
2013-03-31 05:25:54 +02:00
|
|
|
|
2014-06-30 14:54:03 +02:00
|
|
|
override_dh_auto_build:
|
2013-03-31 05:25:54 +02:00
|
|
|
make -C $(CURDIR)/doc/exports/html -f Makefile debian
|
|
|
|
|
2014-06-30 14:54:03 +02:00
|
|
|
override_dh_clean:
|
2013-03-31 05:25:54 +02:00
|
|
|
dh_clean
|
|
|
|
make -C $(CURDIR)/doc -f Makefile clean
|
|
|
|
|
2014-06-30 14:54:03 +02:00
|
|
|
override_dh_install:
|
|
|
|
dh_install -X .gitignore -X .placefolder -X tmp
|
2013-03-31 05:25:54 +02:00
|
|
|
|
2020-05-06 14:54:10 +02:00
|
|
|
# Move local directory as /usr/local/share/ldapsaisie
|
|
|
|
# Note: a symbolic link will be install by dh_link
|
2013-06-28 10:10:26 +02:00
|
|
|
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie
|
2020-05-06 14:54:10 +02:00
|
|
|
# Remove all files in local directory
|
2013-06-28 10:10:26 +02:00
|
|
|
find $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie -type f -exec rm -f \{\} \;
|
2020-05-06 14:54:10 +02:00
|
|
|
|
|
|
|
# Change default log file path
|
2013-07-09 13:55:54 +02:00
|
|
|
sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
|
2020-05-06 14:54:10 +02:00
|
|
|
# Change default public_root_url
|
|
|
|
sed -i "s/^\(\s*'public_root_url' => \).*/\1'\/ldapsaisie\/',/" $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
|
2021-07-08 10:39:09 +02:00
|
|
|
# Change LS_VERSION
|
|
|
|
sed -i "s/^define('LS_VERSION',.*/define('LS_VERSION', '$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')');/" $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/includes/core.php
|
2020-05-06 14:54:10 +02:00
|
|
|
|
|
|
|
# Make a copy of default config.inc.php to /usr/local/share/ldapsaisie/conf/config.inc.example.php (=/etc/ldapsaisie/local/conf/config.inc.php)
|
2013-07-09 13:55:54 +02:00
|
|
|
cp $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie/conf/config.inc.example.php
|
2013-03-31 05:25:54 +02:00
|
|
|
|
2014-06-30 14:54:03 +02:00
|
|
|
override_dh_usrlocal:
|