initial import of debian directory
This commit is contained in:
parent
9ce7e99e26
commit
4dce00654e
2
debian/.gitignore
vendored
Normal file
2
debian/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
\#*\#
|
10
debian/README.Debian
vendored
Normal file
10
debian/README.Debian
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
workadventure for Debian
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
To install:
|
||||||
|
- Install workadventure-back workadventure-front workadventure-pusher
|
||||||
|
- Go to "/var/lib/workadvenure/{back,pusher}" and run "yarn install --production"
|
||||||
|
- Serve "/usr/src/workadventure/front" as web page
|
||||||
|
- Provide configuration for the UI in "/usr/src/workadventure/front/config.js"
|
||||||
|
|
||||||
|
-- unknown <felix@localhost> Sat, 17 Apr 2021 14:06:51 +0200
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
workadventure (1.2.4-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release
|
||||||
|
|
||||||
|
-- unknown <felix@localhost> Sat, 17 Apr 2021 14:06:51 +0200
|
32
debian/control
vendored
Normal file
32
debian/control
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Source: workadventure
|
||||||
|
Section: unknown
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: unknown <felix@localhost>
|
||||||
|
Build-Depends: debhelper-compat (= 12), yarnpkg
|
||||||
|
Standards-Version: 4.5.1
|
||||||
|
Homepage: <insert the upstream URL, if relevant>
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
Package: workadventure-back
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}, yarnpkg
|
||||||
|
Description: <insert up to 60 chars description>
|
||||||
|
<insert long description, indented with spaces>
|
||||||
|
|
||||||
|
Package: workadventure-pusher
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}, yarnpkg
|
||||||
|
Description: <insert up to 60 chars description>
|
||||||
|
<insert long description, indented with spaces>
|
||||||
|
|
||||||
|
Package: workadventure-front
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}
|
||||||
|
Description: <insert up to 60 chars description>
|
||||||
|
<insert long description, indented with spaces>
|
||||||
|
|
||||||
|
Package: workadventure-front-map
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}, workadventure-front
|
||||||
|
Description: <insert up to 60 chars description>
|
||||||
|
<insert long description, indented with spaces>
|
32
debian/copyright
vendored
Normal file
32
debian/copyright
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: workadventure
|
||||||
|
Upstream-Contact: <preferred name and address to reach the upstream project>
|
||||||
|
Source: <url://example.com>
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2021 TheCodingMachine
|
||||||
|
License: AGPL-3 with Commons Clause
|
||||||
|
<Put the license of the package here indented by 1 space>
|
||||||
|
<This follows the format of Description: lines in control file>
|
||||||
|
.
|
||||||
|
<Including paragraphs>
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2021 unknown <felix@localhost>
|
||||||
|
License: GPL-2+
|
||||||
|
This package is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
.
|
||||||
|
This package 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 <https://www.gnu.org/licenses/>
|
||||||
|
.
|
||||||
|
On Debian systems, the complete text of the GNU General
|
||||||
|
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
|
||||||
|
|
49
debian/rules
vendored
Executable file
49
debian/rules
vendored
Executable file
@ -0,0 +1,49 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
install -Dt debian/workadventure-front/usr/src/workadventure/front front/dist/index.html
|
||||||
|
install -d debian/workadventure-front/usr/src/workadventure/front/js
|
||||||
|
cp -r front/dist/static front/dist/resources front/dist/*.js front/dist/style*.css debian/workadventure-front/usr/src/workadventure/front
|
||||||
|
cp -r front/dist/js/*.js debian/workadventure-front/usr/src/workadventure/front/js
|
||||||
|
|
||||||
|
|
||||||
|
install -d debian/workadventure-front-map/usr/src/workadventure/front/js
|
||||||
|
cp -r front/dist/*.js.map front/dist/style*.css.map debian/workadventure-front-map/usr/src/workadventure/front
|
||||||
|
cp -r front/dist/js/*.js.map debian/workadventure-front-map/usr/src/workadventure/front/js
|
||||||
|
|
||||||
|
install -d debian/workadventure-back/usr/src/workadventure/back
|
||||||
|
cp -r back/dist/server.js back/dist/src debian/workadventure-back/usr/src/workadventure/back
|
||||||
|
cp back/yarn.lock back/package.json debian/workadventure-back/usr/src/workadventure/back
|
||||||
|
install -d debian/workadventure-back/var/lib/workadventure/back
|
||||||
|
ln -s /usr/src/workadventure/back/package.json /usr/src/workadventure/back/yarn.lock /usr/src/workadventure/back/src /usr/src/workadventure/back/server.js debian/workadventure-back/var/lib/workadventure/back/
|
||||||
|
|
||||||
|
install -d debian/workadventure-pusher/usr/src/workadventure/pusher
|
||||||
|
cp -r pusher/dist/server.js pusher/dist/src debian/workadventure-pusher/usr/src/workadventure/pusher
|
||||||
|
cp pusher/yarn.lock pusher/package.json debian/workadventure-pusher/usr/src/workadventure/pusher
|
||||||
|
install -d debian/workadventure-back/var/lib/workadventure/pusher
|
||||||
|
ln -s /usr/src/workadventure/pusher/package.json /usr/src/workadventure/pusher/yarn.lock /usr/src/workadventure/pusher/src /usr/src/workadventure/pusher/server.js debian/workadventure-back/var/lib/workadventure/pusher/
|
||||||
|
|
||||||
|
|
||||||
|
front/src/Messages/generated:
|
||||||
|
ln -s ../../../messages/generated front/src/Messages
|
||||||
|
|
||||||
|
back/src/Messages/generated:
|
||||||
|
ln -s ../../../messages/generated back/src/Messages
|
||||||
|
|
||||||
|
pusher/src/Messages/generated:
|
||||||
|
ln -s ../../../messages/generated pusher/src/Messages
|
||||||
|
|
||||||
|
override_dh_auto_build: front/src/Messages/generated back/src/Messages/generated pusher/src/Messages/generated
|
||||||
|
cd messages && yarnpkg install && yarnpkg run proto
|
||||||
|
rm -Rf front/dist/js
|
||||||
|
cd front && ./templater.sh && yarnpkg install && yarnpkg run build
|
||||||
|
cd back && yarnpkg install && yarnpkg run tsc
|
||||||
|
cd pusher && yarnpkg install && yarnpkg run tsc
|
||||||
|
|
||||||
|
# dh_make generated override targets
|
||||||
|
# This is example for Cmake (See https://bugs.debian.org/641051 )
|
||||||
|
#override_dh_auto_configure:
|
||||||
|
# dh_auto_configure -- \
|
||||||
|
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
11
debian/workadventure-back.service
vendored
Normal file
11
debian/workadventure-back.service
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description="Workadventure Backend"
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=webspace-user
|
||||||
|
WorkingDirectory=/var/lib/workadventure/back
|
||||||
|
Environment=NODE_PATH=node_modules
|
||||||
|
ExecStart=node --max-old-space-size=4096 server.js
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
2
debian/workadventure-docs.docs
vendored
Normal file
2
debian/workadventure-docs.docs
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
README.source
|
||||||
|
README.Debian
|
15
debian/workadventure-pusher.service
vendored
Normal file
15
debian/workadventure-pusher.service
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description="Workadventure Pusher"
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=webspace-user
|
||||||
|
WorkingDirectory=/var/lib/workadventure/pusher
|
||||||
|
Environment=NODE_PATH=node_modules
|
||||||
|
Environment=PUSHER_HTTP_PORT=8081
|
||||||
|
Environment=API_URL=localhost:50051
|
||||||
|
ExecStart=node --max-old-space-size=4096 server.js
|
||||||
|
ProtectSystem=Full
|
||||||
|
ProtectHome=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user