Updated debian files

new_files_placement
Nicolas Arenas 2025-03-25 08:29:44 +01:00
parent bd44f6c658
commit 00cb244286
7 changed files with 24 additions and 80 deletions

Binary file not shown.

View File

@ -1,17 +0,0 @@
#!/usr/bin/env php
<?php
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
return new Application($kernel);
};

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/

20
debian/rules vendored
View File

@ -19,17 +19,9 @@
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/*; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer install; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer dump-env prod; \
COMPOSER_ALLOW_SUPERUSER=1 APP_ENV=prod composer update doctrine/dbal;