Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.

Commit 19f0183

Browse files
committed
Rename Composer Package in Debian to be Composer 2.0 valid
1 parent 7705403 commit 19f0183

4 files changed

Lines changed: 49 additions & 13 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ V tomto případě je potřeba do souboru composer.json vaší aplikace přidat:
330330

331331
```json
332332
"require": {
333-
"spojenet.flexipeehp": "*",
334-
"vitexsoftware.ease-framework": "*"
333+
"spojenet_flexipeehp": "*",
334+
"vitexsoftware_ease-framework": "*"
335335
},
336336
"repositories": [
337337
{
@@ -355,10 +355,10 @@ Takže při instalaci závislostí bude vypadat nějak takto:
355355

356356
Loading composer repositories with package information
357357
Installing dependencies from lock file
358-
- Installing ease-framework (1.1.3.3)
358+
- Installing vitexsoftware_ease-framework (1.1.3.3)
359359
Symlinked from /usr/share/php/Ease
360360

361-
- Installing flexipeehp (0.2.1)
361+
- Installing spojenet_flexipeehp (0.2.1)
362362
Symlinked from /usr/share/php/FlexiPeeHP
363363

364364
A aktualizaci bude možné dělat globálně pro celý systém prostřednictvím apt-get.

debian/composer.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "spojenet.flexipeehp",
2+
"name": "spojenet_flexipeehp",
33
"description": "PHP Based Library for easy interaction with czech accounting system Flexibee.",
44
"homepage": "https://github.com/Spoje-NET/FlexiPeeHP",
55
"license": "GPL-2.0+",
@@ -14,17 +14,13 @@
1414
"require": {
1515
"php": ">= 7",
1616
"ext-curl": "*",
17-
"vitexsoftware.ease-framework": "*"
17+
"vitexsoftware_ease-framework": "*"
1818
},
1919
"autoload": {
2020
"psr-4": {
2121
"FlexiPeeHP\\": "."
2222
}
2323
},
24-
"require": {
25-
"php": ">=5.6.0",
26-
"ext-curl": "*"
27-
},
2824
"repositories": [
2925
{
3026
"type": "path",

debian/postinst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
# postinst script for flexipeehp
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
8+
# summary of how this script can be called:
9+
# * <postinst> `configure' <most-recently-configured-version>
10+
# * <old-postinst> `abort-upgrade' <new version>
11+
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12+
# <new-version>
13+
# * <postinst> `abort-remove'
14+
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15+
# <failed-install-package> <version> `removing'
16+
# <conflicting-package> <version>
17+
# for details, see http://www.debian.org/doc/debian-policy/ or
18+
# the debian-policy package
19+
20+
21+
case "$1" in
22+
configure)
23+
24+
composer-global-update spojenet_flexipeehp
25+
26+
;;
27+
28+
abort-upgrade|abort-remove|abort-deconfigure)
29+
;;
30+
31+
*)
32+
echo "postinst called with unknown argument \`$1'" >&2
33+
exit 1
34+
;;
35+
esac
36+
37+
# dh_installdeb will replace this with shell code automatically
38+
# generated by other debhelper scripts.
39+
40+
exit 0

debian/test/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vitexsoftware/flexipeehpdebiantest",
2+
"name": "vitexsoftware_flexipeehpdebiantest",
33
"description": "FlexiPeeHP debian package test",
44
"type": "project",
55
"authors": [
@@ -14,8 +14,8 @@
1414
},
1515
"require": {
1616
"php": ">= 5.5.9",
17-
"flexipeehp": "*",
18-
"ease-framework": "*"
17+
"spojenet_flexipeehp": "*",
18+
"vitexsoftware_ease-framework": "*"
1919
},
2020
"repositories": [
2121
{

0 commit comments

Comments
 (0)