Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/dbcopy andig-dbcopy-9999/dbcopy
|
||||
--- andig-dbcopy-9999.orig/dbcopy 2025-10-08 11:49:08.945458244 +0200
|
||||
+++ andig-dbcopy-9999/dbcopy 2025-10-08 11:50:49.194009518 +0200
|
||||
@@ -11,10 +11,7 @@
|
||||
}
|
||||
|
||||
// find autoloader, borrowed from github.com/behat/behat
|
||||
-if ((!$loader = includeIfExists(__DIR__ . '/vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../../vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../../../vendor/autoload.php'))) {
|
||||
+if (!$loader = includeIfExists('/usr/share/php/Andig/DatabaseCopy/autoload.php')) {
|
||||
fwrite(STDERR,
|
||||
'You must set up the project dependencies, run the following commands:' . PHP_EOL .
|
||||
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
|
||||
@@ -0,0 +1,93 @@
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/AbstractCommand.php andig-dbcopy-9999/src/Command/AbstractCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/AbstractCommand.php 2025-10-08 12:18:06.015740519 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/AbstractCommand.php 2025-10-08 12:15:14.368364947 +0200
|
||||
@@ -62,7 +62,7 @@
|
||||
return $tables;
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->output = $output;
|
||||
$this->loadConfig($input);
|
||||
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/ClearCommand.php andig-dbcopy-9999/src/Command/ClearCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/ClearCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/ClearCommand.php 2025-10-08 12:16:40.736281429 +0200
|
||||
@@ -32,7 +32,7 @@
|
||||
return in_array($tableName, $tables);
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CopyCommand.php andig-dbcopy-9999/src/Command/CopyCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/CopyCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/CopyCommand.php 2025-10-08 12:15:44.816329227 +0200
|
||||
@@ -172,7 +172,7 @@
|
||||
echo "\n\n"; // CRLF after progressbar @ 100%
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output)
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
parent::execute($input, $output);
|
||||
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CreateCommand.php andig-dbcopy-9999/src/Command/CreateCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/CreateCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/CreateCommand.php 2025-10-08 12:16:08.404301546 +0200
|
||||
@@ -100,7 +100,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/DropCommand.php andig-dbcopy-9999/src/Command/DropCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/DropCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/DropCommand.php 2025-10-08 12:16:26.196289368 +0200
|
||||
@@ -17,7 +17,7 @@
|
||||
->addOption('config', 'c', InputOption::VALUE_REQUIRED, 'Config file');
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/InfluxCommand.php andig-dbcopy-9999/src/Command/InfluxCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/InfluxCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/InfluxCommand.php 2025-10-08 12:17:22.156258843 +0200
|
||||
@@ -173,7 +173,7 @@
|
||||
} while (count($res) == $this->batch);
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->loadConfig($input);
|
||||
|
||||
// Doctrine PDO
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/ConsoleApplication.php andig-dbcopy-9999/src/ConsoleApplication.php
|
||||
--- andig-dbcopy-9999.orig/src/ConsoleApplication.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/ConsoleApplication.php 2025-10-08 12:14:06.764444254 +0200
|
||||
@@ -32,7 +32,7 @@
|
||||
*
|
||||
* @return string The long application version
|
||||
*/
|
||||
- public function getLongVersion()
|
||||
+ public function getLongVersion(): string
|
||||
{
|
||||
if ('UNKNOWN' !== $this->getName()) {
|
||||
return sprintf('<info>%s</info>', $this->getName());
|
||||
@@ -45,7 +45,7 @@
|
||||
*
|
||||
* @return InputDefinition An InputDefinition instance
|
||||
*/
|
||||
- protected function getDefaultInputDefinition()
|
||||
+ protected function getDefaultInputDefinition(): InputDefinition
|
||||
{
|
||||
return new InputDefinition(array(
|
||||
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
__DIR__ . '/../tests/_files/CoveredFunction.php',
|
||||
__DIR__ . '/../tests/_files/Generator.php',
|
||||
__DIR__ . '/../tests/_files/NamespaceCoveredFunction.php',
|
||||
'src/autoload.php',
|
||||
'tests/unit/autoload.php',
|
||||
'tests/_files/autoload.php',
|
||||
'tests/end-to-end/execution-order/_files/autoload.php',
|
||||
'tests/end-to-end/event/autoload.php',
|
||||
'tests/end-to-end/regression/autoload.php',
|
||||
'tests/end-to-end/testdox/autoload.php',
|
||||
]);
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Autoload::addClassMap(
|
||||
array(
|
||||
___CLASSLIST___,
|
||||
),
|
||||
__DIR__
|
||||
);
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'/usr/share/php/Doctrine/Deprecations/autoload.php',
|
||||
'/usr/share/php/Psr/Cache/autoload.php',
|
||||
'/usr/share/php/Psr/Log/autoload.php',
|
||||
'/usr/share/php/Doctrine/DBAL/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/Promise/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/Psr7/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Client/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Message/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Message/autoload.php',
|
||||
'/usr/share/php/Ralouphie-getallheaders/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/DeprecationContracts/autoload.php',
|
||||
'/usr/share/php/InfluxDB/autoload.php',
|
||||
'/usr/share/php/Psr/Container/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Ctype/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Intl/Grapheme/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Intl/Normalizer/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Mbstring/autoload.php',
|
||||
'/usr/share/php/Symfony/Contracts/Service/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/String/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/Console/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/Yaml/autoload.php',
|
||||
]);
|
||||
Reference in New Issue
Block a user