diff --git a/api/bin/composer.phar b/api/bin/composer.phar deleted file mode 100755 index bd5bab8..0000000 Binary files a/api/bin/composer.phar and /dev/null differ diff --git a/api/bin/phpunit b/api/bin/phpunit deleted file mode 100755 index 692bacc..0000000 --- a/api/bin/phpunit +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env php -= 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'; -} diff --git a/debian/control b/debian/control index 862725a..a065723 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: vagrant Rules-Requires-Root: no Build-Depends: - debhelper-compat (= 13), + debhelper-compat (= 13) Standards-Version: 4.6.2 Homepage: #Vcs-Browser: https://salsa.debian.org/debian/ogdhcp @@ -13,6 +13,7 @@ Homepage: 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 diff --git a/debian/ogdhcp.dirs b/debian/ogdhcp.dirs index 5243f28..3cef7ef 100644 --- a/debian/ogdhcp.dirs +++ b/debian/ogdhcp.dirs @@ -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 + + + diff --git a/debian/ogdhcp.install b/debian/ogdhcp.install index 32f1706..910d9b3 100644 --- a/debian/ogdhcp.install +++ b/debian/ogdhcp.install @@ -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/ diff --git a/debian/rules b/debian/rules index 080c8df..a3f0ce7 100755 --- a/debian/rules +++ b/debian/rules @@ -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 ). -#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; \