ldapsaisie/debian/rules

33 lines
1.5 KiB
Text
Raw Permalink Normal View History

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:
2023-09-28 16:43:07 +02:00
make -C $(CURDIR)/doc -f Makefile debian
2013-03-31 05:25:54 +02:00
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
# Move local directory as /usr/local/share/ldapsaisie
# Note: a symbolic link will be install by dh_link
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie
# Remove all files in local directory
find $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie -type f -exec rm -f \{\} \;
# Change default log file path
sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
# 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
# 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)
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: