init
This commit is contained in:
17
build-deb/Makefile
Normal file
17
build-deb/Makefile
Normal file
@@ -0,0 +1,17 @@
|
||||
all: man deb
|
||||
|
||||
man: man/donationcalc.1.md
|
||||
pandoc man/donationcalc.1.md -f markdown+hard_line_breaks -s -t man -o man/donationcalc.1
|
||||
cp man/donationcalc.1 donationcalc/usr/share/man/man1/
|
||||
gzip -f donationcalc/usr/share/man/man1/donationcalc.1
|
||||
deb: man ../requirments.txt ../run.py ../donationcalc ../LICENSE
|
||||
cp -r ../donationcalc/* donationcalc/var/donationcalc/donationcalc/
|
||||
cp ../run.py donationcalc/var/donationcalc/
|
||||
cp ../LICENSE donationcalc/var/donationcalc/
|
||||
dpkg-deb --build donationcalc
|
||||
clean:
|
||||
rm -f donationcalc.deb
|
||||
rm -f man/donationcalc.1
|
||||
rm -rf donationcalc/var
|
||||
mkdir -p donationcalc/var/donationcalc/donationcalc
|
||||
mkdir -p donationcalc/usr/share/man/man1/
|
11
build-deb/luser/DEBIAN/control
Normal file
11
build-deb/luser/DEBIAN/control
Normal file
@@ -0,0 +1,11 @@
|
||||
Package: donationcalc
|
||||
Section: net
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Essential: no
|
||||
Installed-Size: 2000
|
||||
Depends: python3-flask
|
||||
Homepage: https://gitea.dmz.rs/fram3d/donationcalc
|
||||
Maintainer: fram3d <fram3d@dmz.rs>
|
||||
Description: Web app that tracks donations and notifies users via email
|
||||
Version: 1.0.0
|
12
build-deb/luser/lib/systemd/system/donationcalc.service
Normal file
12
build-deb/luser/lib/systemd/system/donationcalc.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Gunicorn donationcalc service
|
||||
Documentation=man:gunicorn(1)
|
||||
After=network.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/var/donationcalc/
|
||||
ExecStart=/usr/bin/gunicorn --workers 3 --bind 127.0.0.1:5000 run:app
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
21
build-deb/man/luser.1.md
Normal file
21
build-deb/man/luser.1.md
Normal file
@@ -0,0 +1,21 @@
|
||||
% LUSER(1) donationcalc 1.0.0
|
||||
% fram3d
|
||||
% Jun 2023
|
||||
|
||||
# NAME
|
||||
donationcalc - Web app that tracks donations and notifies users via email
|
||||
|
||||
# SYNOPSIS
|
||||
**python3 run.py**
|
||||
|
||||
# DESCRIPTION
|
||||
Web app that tracks donations and notifies users via email
|
||||
|
||||
# AUTHORS
|
||||
fram3d
|
||||
|
||||
# COPYRIGHT
|
||||
**AGPLv3+**: GNU AGPL version 3 or later <https://gnu.org/licenses/agpl.html>
|
||||
This is *free* software: you are free to change and redistribute it.
|
||||
There is **NO WARRANTY**, to the extent permitted by law.
|
||||
|
Reference in New Issue
Block a user