Merge branch 'new_files_placement' - Resolved rename/delete conflicts
ogdhcp/pipeline/head This commit looks good Details
ogdhcp/pipeline/tag There was a failure building this commit Details

main 0.6.3
Nicolas Arenas 2025-03-26 11:01:10 +01:00
commit 83c3ac8bef
6 changed files with 26 additions and 63 deletions

Binary file not shown.

View File

@ -1,23 +0,0 @@
#!/usr/bin/env php
<?php
if (!ini_get('date.timezone')) {
ini_set('date.timezone', 'UTC');
}
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
if (PHP_VERSION_ID >= 80000) {
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
} else {
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
require PHPUNIT_COMPOSER_INSTALL;
PHPUnit\TextUI\Command::main();
}
} else {
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
}

6
debian/control vendored
View File

@ -4,7 +4,7 @@ Priority: optional
Maintainer: vagrant <vagrant@build>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
debhelper-compat (= 13)
Standards-Version: 4.6.2
Homepage: <insert the upstream URL, if relevant>
#Vcs-Browser: https://salsa.debian.org/debian/ogdhcp
@ -13,6 +13,7 @@ Homepage: <insert the upstream URL, if relevant>
Package: ogdhcp
Architecture: any
Multi-Arch: foreign
Recommends: kea-dhcp4-server, kea-common, kea-ctrl-agent
Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.5.0),
php,
php-cli,
@ -29,9 +30,6 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, debconf (>= 1.5.0),
php-bcmath,
composer,
unzip,
kea-dhcp4-server,
kea-common,
kea-ctrl-agent,
jq,
net-tools,
nginx

25
debian/ogdhcp.dirs vendored
View File

@ -1,11 +1,16 @@
/opt/opengnsys/ogdhcp
/opt/opengnsys/ogdhcp/bin
/opt/opengnsys/ogdhcp/config
/opt/opengnsys/ogdhcp/docs
/opt/opengnsys/ogdhcp/public
/opt/opengnsys/ogdhcp/src
/opt/opengnsys/ogdhcp/api
/opt/opengnsys/ogdhcp/api/bin
/opt/opengnsys/ogdhcp/api/config
/opt/opengnsys/ogdhcp/api/public
/opt/opengnsys/ogdhcp/api/src
/opt/opengnsys/ogdhcp/api/templates
/opt/opengnsys/ogdhcp/api/var/
/opt/opengnsys/ogdhcp/api/var/cache
/opt/opengnsys/ogdhcp/api/var/log
/opt/opengnsys/ogdhcp/api/vendor
/opt/opengnsys/ogdhcp/etc
/opt/opengnsys/ogdhcp/etc/kea/backup
/opt/opengnsys/ogdhcp/templates
/opt/opengnsys/ogdhcp/var/cache
/opt/opengnsys/ogdhcp/var/log
/opt/opengnsys/ogdhcp/vendor
/opt/opengnsys/ogdhcp/docs

13
debian/ogdhcp.install vendored
View File

@ -1,15 +1,4 @@
config /opt/opengnsys/ogdhcp/
public /opt/opengnsys/ogdhcp/
src /opt/opengnsys/ogdhcp/
api /opt/opengnsys/ogdhcp/
etc /opt/opengnsys/ogdhcp/
templates /opt/opengnsys/ogdhcp/
migrations /opt/opengnsys/ogdhcp/
translations /opt/opengnsys/ogdhcp/
docs /opt/opengnsys/ogdhcp/
var /opt/opengnsys/ogdhcp/
vendor /opt/opengnsys/ogdhcp/
composer.json /opt/opengnsys/ogdhcp/
composer.lock /opt/opengnsys/ogdhcp/
symfony.lock /opt/opengnsys/ogdhcp/
.env.local.php /opt/opengnsys/ogdhcp/
etc/systemd/system/kea-ctrl-agent.service.d/override.conf /etc/systemd/system/kea-ctrl-agent.service.d/

22
debian/rules vendored
View File

@ -19,17 +19,11 @@
dh $@
override_dh_auto_build:
export COMPOSER_ALLOW_SUPERUSER=1
export APP_ENV=prod
dh_auto_build
rm -rf var/cache/*
composer install
composer dump-env prod
composer update doctrine/dbal
# dh_make generated override targets.
# This is an example for Cmake (see <https://bugs.debian.org/641051>).
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
cd api; \
rm -rf var/cache/*; \
mkdir -p bin/; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer require symfony/flex --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer install --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer dump-env prod --no-interaction; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update doctrine/dbal --no-interaction; \