mirror of
https://git.ikl.sh/132ikl/liteshort.git
synced 2023-08-10 21:13:04 +03:00
Move debian package to seperate repo
This commit is contained in:
parent
2d0fb48a1e
commit
0e5d518ac0
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash -e
|
|
||||||
|
|
||||||
VERSION="$(cat liteshort/version.py | cut -d '\"' -f2)"
|
|
||||||
|
|
||||||
cd package/
|
|
||||||
|
|
||||||
git log --no-walk --tags --pretty="liteshort (%S) unstable; urgency=medium%n%n * See the full changelog at:%n * https://github.com/132ikl/liteshort/releases/tag/v%S%n%n -- Steven Spangler <132@ikl.sh> %cD%n" --decorate=off | sed 's/(v/(/g' | sed 's/\/v/\//g' > debian/changelog
|
|
||||||
|
|
||||||
dpkg-buildpackage -us -uc --build=all
|
|
||||||
|
|
||||||
cd ../
|
|
@ -1 +0,0 @@
|
|||||||
11
|
|
@ -1,7 +0,0 @@
|
|||||||
Source: liteshort
|
|
||||||
Maintainer: Steven Spangler <132@ikl.sh>
|
|
||||||
|
|
||||||
Package: liteshort
|
|
||||||
Depends: python3-aiofiles, python3-fastapi, python3-h11, python3-httptools, python3-imutils, python3-jinja2, python3-netifaces, python3-numpy, python3-pydantic, python3-pynetworktables, python3-python-multipart, python3-requests, python3-starlette, python3-toposort, python3-uvicorn, python3-uvloop
|
|
||||||
Architecture: all
|
|
||||||
Description: User-friendly, actually lightweight, and configurable URL shortener
|
|
@ -1 +0,0 @@
|
|||||||
../../liteshort.service
|
|
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
DISTRIBUTION = buster
|
|
||||||
VERSION = $(VERSION)
|
|
||||||
PACKAGEVERSION = $(VERSION)-0~$(DISTRIBUTION)0
|
|
||||||
TARBALL = liteshort-$(VERSION).tar.gz
|
|
||||||
URL = https://github.com/132ikl/liteshort
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@
|
|
||||||
|
|
||||||
override_dh_auto_clean:
|
|
||||||
override_dh_auto_test:
|
|
||||||
override_dh_auto_debian/tmp/build:
|
|
||||||
override_dh_auto_install:
|
|
||||||
git clone --depth 1 --branch "v$(VERSION)" "$(URL)" debian/tmp/build/
|
|
||||||
mkdir -p debian/liteshort/usr/lib/python3/dist-packages/
|
|
||||||
mkdir -p debian/liteshort/usr/bin/
|
|
||||||
cp -r debian/tmp/build/liteshort/ debian/liteshort/usr/lib/python3/dist-packages/
|
|
||||||
cp debian/tmp/build/liteshort.py debian/liteshort/usr/bin/liteshort
|
|
||||||
chmod +x debian/liteshort/usr/bin/liteshort
|
|
||||||
override_dh_gencontrol:
|
|
||||||
dh_gencontrol -- -v$(PACKAGEVERSION)
|
|
2
setup.py
2
setup.py
@ -25,6 +25,6 @@ setuptools.setup(
|
|||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: POSIX :: Linux",
|
"Operating System :: POSIX :: Linux",
|
||||||
],
|
],
|
||||||
install_requires=["flask~=1.1.2", "bcrypt~=3.1.7", "pyyaml~=5.3.1"],
|
install_requires=["flask~=1.1.2", "bcrypt~=3.1.7", "pyyaml", "appdirs~=1.4.3"],
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
)
|
)
|
||||||
|
@ -4,7 +4,7 @@ module = liteshort.wsgi:app
|
|||||||
master = true
|
master = true
|
||||||
processes = 2
|
processes = 2
|
||||||
|
|
||||||
socket = liteshort.sock
|
socket = /run/liteshort.sock
|
||||||
chmod-socket = 666
|
chmod-socket = 666
|
||||||
vacuum = true
|
vacuum = true
|
||||||
|
|
||||||
|
@ -3,11 +3,7 @@ Description=uWSGI instance to serve liteshort
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=
|
ExecStart=/usr/bin/uwsgi --ini /etc/liteshort/liteshort.ini
|
||||||
Group=www-data
|
|
||||||
WorkingDirectory=/path/to/install
|
|
||||||
Environment="PATH=/path/to/install/virtualenv/bin"
|
|
||||||
ExecStart=/path/to/install/virtualenv/bin/uwsgi --ini liteshort.ini
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user