-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Coutadeur
committed
Jul 31, 2024
1 parent
cc3601d
commit 5f13f09
Showing
17 changed files
with
277 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# Some notes on packaging Service Desk | ||
|
||
## 0 - Version update | ||
|
||
Update version in following files: | ||
|
||
* htdocs/index.php | ||
* packaging/rpm/SPECS/service-desk.spec | ||
* packaging/debian/changelog | ||
|
||
## 1 - Update dependencies and run tests | ||
|
||
From the service-desk root directory, run: | ||
|
||
``` | ||
composer update | ||
``` | ||
|
||
Run tests: | ||
|
||
``` | ||
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration tests/phpunit.xml | ||
``` | ||
|
||
After the tests, remove the useless dependencies: | ||
|
||
``` | ||
composer update --no-dev | ||
``` | ||
|
||
## 2 - Archive tar.gz | ||
|
||
From current directory, do: | ||
|
||
``` | ||
./makedist VERSION | ||
``` | ||
|
||
with VERSION the current verion of the package | ||
|
||
For example: | ||
|
||
``` | ||
./makedist 0.6 | ||
``` | ||
|
||
|
||
## 2 - Debian | ||
|
||
Form current directory, do: | ||
|
||
``` | ||
dpkg-buildpackage -b -kLTB | ||
``` | ||
|
||
If you do not have LTB GPG secret key, do: | ||
|
||
``` | ||
dpkg-buildpackage -b -us -uc | ||
``` | ||
|
||
## 3 - RPM (RHEL, CentOS, Fedora, ...) | ||
|
||
Prepare your build environment, for example in /home/clement/build. | ||
|
||
You should have a ~/.rpmmacros like this: | ||
|
||
``` | ||
%_topdir /home/clement/build | ||
%dist .el5 | ||
%distribution .el5 | ||
%_signature gpg | ||
%_gpg_name 6D45BFC5 | ||
%_gpgbin /usr/bin/gpg | ||
%packager Clement OUDOT <[email protected]> | ||
%vendor LTB-project | ||
``` | ||
|
||
Copy packaging files from current directory to build directory: | ||
|
||
``` | ||
cp -Ra rpm/* /home/clement/build | ||
``` | ||
|
||
Copy Self Service Archive to SOURCES/: | ||
|
||
``` | ||
cp ltb-project-service-desk-VERSION.tar.gz /home/clement/build/SOURCES | ||
``` | ||
|
||
Go in build directory and build package: | ||
|
||
``` | ||
cd /home/clement/build | ||
rpmbuild -ba SPECS/service-desk.spec | ||
``` | ||
|
||
Sign RPM: | ||
|
||
``` | ||
rpm --addsign RPMS/noarch/service-desk* | ||
``` | ||
|
||
## 4 - Docker | ||
|
||
From current directory, do: | ||
|
||
``` | ||
docker build -t service-desk -f ./docker/Dockerfile ../ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
ltb-project-service-desk (0.6.0-1) unstable; urgency=low | ||
|
||
* gh#142: deb cleanup | ||
|
||
-- Clement Oudot <[email protected]> Wed, 31 Jul 2024 12:00:00 +0200 | ||
|
||
ltb-project-service-desk (0.5.1-1) unstable; urgency=low | ||
|
||
* gh#92: Message override broken in 0.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9 | ||
11 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,19 @@ Maintainer: Clement Oudot <[email protected]> | |
Source: http://ltb-project.org/wiki/documentation/service-desk | ||
|
||
Files: htdocs/vendor/bootstrap | ||
Copyright: 2011-2014 Twitter, Inc. | ||
Copyright: Copyright (c) 2011-2024 The Bootstrap Authors | ||
|
||
Files: htdocs/vendor/font-awesome | ||
Copyright: @davegandy - http://fontawesome.io - @fontawesome | ||
Copyright: Font Awesome by Dave Gandy - http://fontawesome.io | ||
|
||
Files: htdocs/vendor/jquery | ||
Copyright: 2005, 2013 jQuery Foundation, Inc. | ||
Copyright: Copyright OpenJS Foundation and other contributors, https://openjsf.org/ | ||
|
||
Files: htdocs/vendor/datatables | ||
Copyright: Copyright (C) 2008-2024, SpryMedia Ltd. | ||
|
||
Files: * | ||
Copyright: 2020 LTB-Project, Worteks, Clement Oudot | ||
Copyright: 2024 LTB-Project, Worteks, Clement Oudot, David Coutadeur | ||
|
||
License: GPL | ||
This program is free software; you can redistribute it and/or modify | ||
|
Oops, something went wrong.