2021-09-01 12:06:32 +02:00
|
|
|
#!/usr/bin/make -f
|
2021-10-08 21:37:53 +02:00
|
|
|
export DH_VERBOSE=1
|
2022-04-06 18:05:20 +02:00
|
|
|
phpdir := $(shell readlink -f $$(php-config --ini-path)/..)
|
2023-01-12 12:54:01 +01:00
|
|
|
INSTDIR := debian/gromox
|
2022-04-06 18:05:20 +02:00
|
|
|
|
2021-09-01 12:06:32 +02:00
|
|
|
%:
|
|
|
|
dh $@ --parallel --with autoreconf
|
2021-10-08 21:37:53 +02:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
2023-01-12 12:54:01 +01:00
|
|
|
find ${INSTDIR} -type f -name "*.la" -print -delete
|
|
|
|
perl -i -lpe 's{Type=simple}{Type=simple\nRestart=on-failure}' ${INSTDIR}/lib/systemd/system/*.service
|
2022-04-06 18:05:20 +02:00
|
|
|
for i in /etc/gromox /var/lib/gromox /var/lib/gromox/domain \
|
2024-02-06 19:16:08 +01:00
|
|
|
/var/lib/gromox/queue \
|
2021-10-08 21:37:53 +02:00
|
|
|
/var/lib/gromox/queue/mess /var/lib/gromox/queue/save \
|
2024-02-06 19:16:08 +01:00
|
|
|
/var/lib/gromox/queue/cache \
|
2021-10-08 21:37:53 +02:00
|
|
|
/var/lib/gromox/queue/timer /var/lib/gromox/user \
|
|
|
|
/var/log/gromox /run/gromox \
|
|
|
|
/usr/lib/sysctl.d; do \
|
|
|
|
mkdir -pv debian/gromox/$$i; \
|
|
|
|
done
|
2022-04-06 18:05:20 +02:00
|
|
|
mkdir -pv debian/gromox${phpdir}/fpm/pool.d
|
|
|
|
cp -av debian/gromox/usr/share/gromox/fpm-gromox.conf.sample debian/gromox${phpdir}/fpm/pool.d/gromox.conf
|
|
|
|
mkdir -pv debian/gromox${phpdir}/mods-available debian/gromox${phpdir}/cli/conf.d debian/gromox${phpdir}/fpm/conf.d
|
|
|
|
mv -v debian/gromox${phpdir}/cli/conf.d/mapi.ini debian/gromox${phpdir}/mods-available/
|
|
|
|
ln -s ${phpdir}/mods-available/mapi.ini debian/gromox${phpdir}/cli/conf.d/mapi.ini
|
|
|
|
ln -s ${phpdir}/mods-available/mapi.ini debian/gromox${phpdir}/fpm/conf.d/mapi.ini
|