Skip to content

Commit d5a9dc6

Browse files
committed
Release 0.2
Debianized
1 parent 2fdf161 commit d5a9dc6

18 files changed

+211
-2
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
/nbproject/private/
22
/vendor/
3-
/composer.lock
3+
/composer.lock
4+
/debian/php-subreg/
5+
/debian/php-subreg.debhelper.log
6+
/debian/php-subreg.substvars
7+
/debian/debhelper-build-stamp

Examples/RegisterDomain.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
$nsHosts = array("ns.spoje.net", "ns2.spoje.net");
2020

21-
print_r($client->registerDomain($unexistentDomain, 'G-000001', 'G-000001', 'G-000001', 'ukulele', $nsHosts));
21+
print_r($client->registerDomain($unexistentDomain, 'G-000001', 'G-000001',
22+
'G-000001', 'ukulele', $nsHosts));
2223

2324

2425
$response = $client->checkDomain($unexistentDomain);

Makefile

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
all: build install
2+
3+
fresh:
4+
git pull
5+
composer install
6+
build:
7+
echo build
8+
9+
10+
clean:
11+
rm -rf debian/php-subreg
12+
rm -rf debian/subreg .phpunit.result.cache debian/subreg.debhelper.log
13+
rm -rf debian/subreg-doc
14+
rm -rf debian/*.log
15+
rm -rf debian/*.substvars
16+
rm -rf docs/*
17+
rm -f debianTest/composer.lock
18+
rm -rf vendor/* composer.lock
19+
20+
apigen:
21+
VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
22+
apigen generate --source src --destination docs --title "subreg ${VERSION}" --charset UTF-8 --access-levels public --access-levels protected --php --tree
23+
24+
pretest:
25+
composer --ansi --no-interaction update
26+
27+
phpunit:
28+
composer update
29+
vendor/bin/phpunit --bootstrap testing/bootstrap.php
30+
31+
deb:
32+
dpkg-buildpackage -A -us -uc
33+
34+
rpm:
35+
rpmdev-bumpspec --comment="Build" --userstring="Vítězslav Dvořák <[email protected]>" subreg.spec
36+
rpmbuild -ba subreg.spec
37+
38+
verup:
39+
git commit debian/composer.json debian/version debian/revision -m "`cat debian/version`-`cat debian/revision`"
40+
git push origin master
41+
42+
dimage:
43+
docker build -t vitexsoftware/subreg .
44+
45+
.PHONY : install
46+

debian/README.Debian

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Ease framework Core for Debian
2+
------------------------------
3+
4+
Is installed by standard way in /usr/share/php/EaseCore
5+
6+
-- Vítězslav Dvořák <[email protected]> Ne říj 21 15:17:56 CEST 2012
7+

debian/changelog

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
php-subreg (0.2) UNRELEASED; urgency=medium
2+
3+
* debianized
4+
5+
-- Vítězslav Dvořák <[email protected]> Mon, 04 Mar 2019 00:01:29 +0100

debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10

debian/composer.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "deb/subreg",
3+
"description": "PHP Based Library for easy interaction with soap.subreg.cz",
4+
"license": "GPL-2.0",
5+
"authors": [
6+
{
7+
"name": "Vítězslav Dvořák",
8+
"email": "[email protected]"
9+
}
10+
],
11+
"version": "0.1",
12+
"require": {
13+
"php": ">= 5.6",
14+
"ext-soap": "*",
15+
"vitexsoftware/ease-framework": "dev-master"
16+
},
17+
"autoload": {
18+
"psr-4": {
19+
"Subreg\\": "src/Subreg/"
20+
}
21+
},
22+
"autoload-dev": {
23+
"psr-4": {
24+
"Test\\Ease\\": "vendor/vitexsoftware/ease-framework/tests/src/Ease",
25+
"Test\\Subreg\\": "testing/src/Subreg/",
26+
"Test\\": "testing/"
27+
}
28+
},
29+
"require-dev": {
30+
"phpunit/php-token-stream": "~1.2",
31+
"phpunit/phpunit": "5.3.*",
32+
"phpunit/phpunit-skeleton-generator": "*",
33+
"jakub-onderka/php-parallel-lint": "^0.9.2",
34+
"jakub-onderka/php-console-highlighter": "^0.3.2"
35+
}
36+
}

debian/control

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Source: php-subreg
2+
Build-Depends: debhelper (>= 7.0.50~)
3+
Section: web
4+
Standards-Version: 3.9.8
5+
Maintainer: Vítězslav Dvořák <[email protected]>
6+
Uploaders: Vitex <[email protected]>
7+
Priority: optional
8+
Homepage: https://github.com/Spoje-NET/php-subreg
9+
10+
Package: php-subreg
11+
Depends: ${misc:Depends}, ease-frammework
12+
Architecture: all
13+
Section: web
14+
Priority: optional
15+
Description: PHP Client Library for soap.subreg.cz
16+
Provide classes for several domain/customer related operations

debian/copyright

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143
2+
Upstream-Name: php-subreg
3+
Upstream-Source: https://github.com/Spoje-NET/php-subreg/archive/master.zip
4+
5+
Files: *
6+
Homepage: https://github.com/Spoje-NET/php-subreg
7+
Copyright:
8+
(c) 2015-2019 Vítězslav Dvořák (v.s.cz)
9+
License: MIT
10+
11+
License: MIT
12+
On Debian systems the full text of the GNU General Public License can be found
13+
in the `/usr/share/common-licenses/MIT' file.
14+

debian/files

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
php-subreg_0.2_all.buildinfo web optional
2+
php-subreg_0.2_all.deb web optional

debian/fixversion.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
VERSTR=`dpkg-parsechangelog --show-field Version`
3+
COMPOSER_VERSTR=`echo ${VERSTR}|sed 's/-/./g'`
4+
echo update debian/php-subreg/usr/share/php/Ease/composer.json version to ${COMPOSER_VERSTR}
5+
sed -i -e '/\"version\"/c\ \"version\": \"'${COMPOSER_VERSTR}'",' debian/php-subreg/usr/share/php/Ease/composer.json
6+
echo Update debian/php-subreg/usr/share/php/Ease/Atom.php version to ${VERSTR}
7+
sed -i -e "/static public \$libVersion/c\ static public \$frameworkVersion = '${VERSTR}';" debian/php-subreg/usr/share/php/Subreg/Client.php
8+
echo Update src/Ease/Atom.php version to ${VERSTR}
9+
sed -i -e "/static public \$libVersion/c\ static public \$frameworkVersion = '${VERSTR}';" src/Subreg/Client.php

debian/php-subreg-doc.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Alias /php-subreg /usr/share/doc/php-subreg/html
2+
3+

debian/php-subreg-doc.install

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docs/* usr/share/doc/ease-core/html
2+
docs/resources/* usr/share/doc/ease-core/html/resources
3+
debian/ease-core-doc.conf usr/share/doc/ease-core-doc/apache
4+
README.md usr/share/doc/ease-core

debian/php-subreg.install

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
src/* usr/share/php
2+
debian/composer.json /usr/share/php/Subreg

debian/postinst

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
# postinst script for ease-core
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 ease-core
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/rules

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/make -f
2+
3+
%:
4+
dh $@
5+
6+
override_dh_auto_test:
7+
echo tests temporarly skipped for now in rules file
8+
9+
override_dh_install:
10+
dh_install
11+
./debian/fixversion.sh
12+

debian/source/format

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

src/Subreg/Client.php

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
*/
1616
class Client extends \Ease\Molecule
1717
{
18+
/**
19+
* ClientLibrary version
20+
* @var string
21+
*/
22+
static public $frameworkVersion = '0.1';
23+
1824
/**
1925
* Object Configuration
2026
* @var array

0 commit comments

Comments
 (0)