From 77bc2886827a8349202e979f9284f4ad451941b5 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 27 Nov 2024 15:41:24 +0100 Subject: [PATCH] Merge branch 'beta' into merge_generalImprovements --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 18 ++++++++++++++++++ debian/copyright | 24 ++++++++++++++++++++++++ debian/cron.d | 10 ++++++++++ debian/links | 3 +++ debian/postinst | 16 ++++++++++++++++ debian/postrm | 12 ++++++++++++ debian/rules | 18 ++++++++++++++++++ debian/source.lintian-overrides | 1 + 10 files changed, 108 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/cron.d create mode 100644 debian/links create mode 100755 debian/postinst create mode 100755 debian/postrm create mode 100755 debian/rules create mode 100644 debian/source.lintian-overrides diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..6edff849 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +hedera-web (24.50.12) stable; urgency=low + + * Initial Release. + + -- Juan Ferrer Toribio Wed, 19 Aug 2015 12:00:00 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..9a037142 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..46b92b74 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: hedera-web +Priority: optional +Maintainer: Juan Ferrer Toribio +Build-Depends: build-essential, debhelper, nodejs +Standards-Version: 3.9.3 +Section: misc +Homepage: https://verdnatura.es +Vcs-Git: https://gitea.verdnatura.es/verdnatura/hedera-web + +Package: hedera-web +Architecture: all +Depends: apache2 | httpd, nodejs, php-cli, php-vn-lib, php-apcu, php-imap, php-soap, libphp-phpmailer, php-gd, php-pear +Suggests: php-text-captcha, php-zip, cron +Section: misc +Priority: optional +Description: Verdnatura's web page + Web page used by Verdnatura, it includes user authetication, a simple CMS and + a webpshop. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..39423370 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +Format: http://dep.debian.net/deps/dep5 +Name: hedera-web +Source: https://gitea.verdnatura.es/verdnatura/hedera-web + +Files: * +Copyright: 2011-2015 Juan Ferrer Toribio +License: GPL-3.0+ + +License: GPL-3.0+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public + License can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/cron.d b/debian/cron.d new file mode 100755 index 00000000..1037bb2c --- /dev/null +++ b/debian/cron.d @@ -0,0 +1,10 @@ +MAILTO=webmaster +*/1 * * * * root hedera-web.php -m misc/mail +*/4 * * * * root hedera-web.php -m tpv/confirm-mail +*/2 * * * * root hedera-web.php -m edi/load +0 23 * * * root hedera-web.php -m edi/clean +0 5 * * * root hedera-web.php -m edi/update +0 5 * * * root hedera-web.php -m misc/exchange-rate +0 0 * * * root hedera-web.php -m image/sync +0 1 * * * root /usr/share/hedera-web/utils/image-clean.sh > /dev/null +0 */1 * * * root /usr/share/hedera-web/utils/update-browscap.sh > /dev/null diff --git a/debian/links b/debian/links new file mode 100644 index 00000000..ba27c5f5 --- /dev/null +++ b/debian/links @@ -0,0 +1,3 @@ +usr/share/hedera-web/hedera-web.php usr/bin/hedera-web.php +etc/hedera-web/apache.conf etc/apache2/conf-available/hedera-web.conf +etc/hedera-web/php.ini etc/php/7.0/apache2/conf.d/99-hedera-web.ini \ No newline at end of file diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 00000000..3513ea26 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +/usr/share/hedera-web/utils/update-browscap.sh > /dev/null + +if [ -e /usr/share/apache2/apache2-maintscript-helper ] +then + . /usr/share/apache2/apache2-maintscript-helper + apache2_invoke enmod rewrite + apache2_invoke enmod headers + apache2_invoke enconf hedera-web.conf +fi + +#service php7.3-fpm restart +#service cron restart diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 00000000..95001e35 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,12 @@ +#!/bin/bash + +set -e + +if [ -e /usr/share/apache2/apache2-maintscript-helper ] +then + . /usr/share/apache2/apache2-maintscript-helper + apache2_invoke disconf hedera-web.conf +fi + +#rm -rf /usr/share/hedera-web/node_modules +#service cron restart diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..c752a06c --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +%: + dh $@ + +clean: + npm run clean + dh_clean $@ + +build: + pnpm install --prefer-offline + pnpm exec quasar build + + mkdir -p build-deps + cp package.json build-deps + (cd build-deps && npm install --omit=dev --no-audit --prefer-offline) diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides new file mode 100644 index 00000000..fac393f9 --- /dev/null +++ b/debian/source.lintian-overrides @@ -0,0 +1 @@ +hedera-web: package-contains-npm-ignore-file \ No newline at end of file