-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:24eme/signaturepdf
- Loading branch information
Showing
12 changed files
with
118 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
# signaturepdf default Apache configuration | ||
|
||
Alias /signaturepdf /usr/share/signaturepdf/public | ||
Alias /signaturepdf /~#LIBPATH#~public | ||
|
||
DocumentRoot /usr/share/signaturepdf/public | ||
DocumentRoot /~#LIBPATH#~public | ||
AddDefaultCharset UTF-8 | ||
|
||
<Directory /usr/share/signaturepdf/public> | ||
<Directory /~#LIBPATH#~public> | ||
Options SymLinksIfOwnerMatch | ||
DirectoryIndex index.php | ||
AllowOverride All | ||
|
||
<IfVersion >= 2.3> | ||
Require all granted | ||
</IfVersion> | ||
<IfVersion < 2.3> | ||
Order Deny,Allow | ||
Allow from all | ||
</IfVersion> | ||
</Directory> | ||
|
||
LogLevel warn | ||
ErrorLog /var/log/apache2/ssp_error.log | ||
CustomLog /var/log/apache2/ssp_access.log combined |
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,7 @@ | ||
~#PKGNAME#~ (~#VERSION#~-~#RELEASE#~) UNRELEASED; urgency=low | ||
|
||
* Please check the | ||
https://github.com/~#VENDOR#~/~#PROJECT#~ | ||
commit history | ||
|
||
-- ~#MAINTAINER#~ ~#DATE#~ |
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 @@ | ||
9 |
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,14 @@ | ||
Source: ~#PKGNAME#~ | ||
Maintainer: ~#MAINTAINER#~ | ||
Section: php | ||
Priority: optional | ||
Build-Depends: debhelper (>= 9) | ||
Standards-Version: 3.9.7 | ||
Homepage: https://github.com/~#VENDOR#~/~#PROJECT#~ | ||
Vcs-Git: https://github.com/~#VENDOR#~/~#PROJECT#~.git | ||
|
||
Package: ~#PKGNAME#~ | ||
Provides: php-~#PROJECT#~ | ||
Architecture: all | ||
Depends: php (>= 7.4.0), pdftk, librsvg2-bin, imagemagick, potrace, ghostscript, locales, ${misc:Depends} | ||
Description: Outils de signature PDF en ligne libre et open-source |
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,20 @@ | ||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: ~#PROJECT#~ | ||
Source: https://github.com/~#VENDOR#~/~#PROJECT#~ | ||
|
||
Files: * | ||
Copyright: Copyright 2021-2024 ~#MAINTAINER#~ | ||
License: AGPL-3 | ||
|
||
License: AGPL-3 | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/> or | ||
/usr/share/common-licenses/AGPL-3 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/make -f | ||
%: | ||
dh $@ |
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 @@ | ||
3.0 (quilt) |
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 |
---|---|---|
|
@@ -2,6 +2,20 @@ | |
|
||
.DEFAULT_GOAL := all | ||
|
||
VENDOR=24eme | ||
PROJECT=signaturepdf | ||
MAINTAINER=Équipe 24ème <[email protected]> | ||
VERSION=$(shell git describe --abbrev=0) | ||
RELEASE=$(shell git describe | cut -d- -f2) | ||
PKGNAME=php-${PROJECT} | ||
DATADIR=usr/share | ||
LIBPATH=$(DATADIR)/$(PKGNAME)/ | ||
CONFIGPATH=etc/$(PKGNAME)/ | ||
|
||
CURRENTDIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) | ||
TARGETDIR=$(CURRENTDIR)target | ||
PATHDEBPKG=$(TARGETDIR)/DEB | ||
|
||
all: update_trad | ||
|
||
node_modules/jest/bin/jest.js: | ||
|
@@ -44,3 +58,30 @@ update_trad: | |
git add "$$lang/LC_MESSAGES/application_$$checksum.mo"; \ | ||
git add "locale/application_$$checksum.pot"; \ | ||
done | ||
|
||
# Build a DEB package for Debian-like Linux distributions | ||
.PHONY: deb | ||
deb: | ||
rm -rf $(TARGETDIR) | ||
git clone . $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/$(LIBPATH) | ||
rm -rf $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/$(LIBPATH).git | ||
rm -rf $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/$(LIBPATH).debian | ||
tar -zcvf $(PATHDEBPKG)/$(PKGNAME)_$(VERSION).orig.tar.gz -C $(PATHDEBPKG)/ $(PKGNAME)-$(VERSION) | ||
rsync -av --exclude=*~ ./.debian/ $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian | ||
mkdir -p $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/$(CONFIGPATH) | ||
mv $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/apache.conf $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/$(CONFIGPATH) | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#DATE#~/`date -R`/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#VENDOR#~/$(VENDOR)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#PROJECT#~/$(PROJECT)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#MAINTAINER#~/$(MAINTAINER)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/ -type f -exec sed -i "s/~#PKGNAME#~/$(PKGNAME)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#VERSION#~/$(VERSION)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/ -type f -exec sed -i "s/~#RELEASE#~/$(RELEASE)/" {} \; | ||
find $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/ -type f -exec sed -i "s|~#LIBPATH#~|$(LIBPATH)|" {} \; | ||
echo $(LIBPATH) > $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/$(PKGNAME).dirs | ||
echo "$(LIBPATH)* $(LIBPATH)" > $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/install | ||
ifneq ($(strip $(CONFIGPATH)),) | ||
echo $(CONFIGPATH) >> $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/$(PKGNAME).dirs | ||
echo "$(CONFIGPATH)* $(CONFIGPATH)" >> $(PATHDEBPKG)/$(PKGNAME)-$(VERSION)/debian/install | ||
endif | ||
cd $(PATHDEBPKG)/$(PKGNAME)-$(VERSION) && debuild -us -uc |
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