diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-05-30 19:11:51 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-05-30 19:11:51 +0200 |
commit | 28e590d5c2d6d3bb38eae7cb1978af233ecb5f64 (patch) | |
tree | f5fdebc89d5420f42a12d97b1df52eb0874e3fec /debian |
First commit
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.Debian | 11 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 15 | ||||
-rw-r--r-- | debian/copyright | 29 | ||||
-rwxr-xr-x | debian/rules | 8 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/webserver.install | 1 | ||||
-rw-r--r-- | debian/webserver.service | 19 |
8 files changed, 85 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..35011f3 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,11 @@ +webserver for Debian +==================== + +This package is the Debian version of webserver. + + +Contact +------- + +Reichwein IT <mail@reichwein.it> + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..62c1a48 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: downtube +Section: web +Priority: optional +Maintainer: Roland Reichwein <mail@reichwein.it> +Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.71-all-dev, clang | g++-9, node-uglify, python3-pkg-resources, htmlmin, cleancss +Standards-Version: 4.5.0 +Homepage: http://www.reichwein.it/downtube/ + +Package: downtube +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Homepage: http://www.reichwein.it/downtube/ +Description: Web application for video download + Downtube can help you download a video specified in a HTML form, transformed + to MP3 (audio) or MP4 (video). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4b3a1b3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,29 @@ +This package is Copyright 2020 by Roland Reichwein <mail@reichwein.it> + +Both upstream source code and Debian packaging is licensed under the BSD +license: + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..921ee04 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_fixperms: + dh_fixperms + chown www-data:www-data debian/webserver/var/lib/webserver diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/webserver.install b/debian/webserver.install new file mode 100644 index 0000000..b4997f3 --- /dev/null +++ b/debian/webserver.install @@ -0,0 +1 @@ +debian/webserver.conf etc diff --git a/debian/webserver.service b/debian/webserver.service new file mode 100644 index 0000000..7834650 --- /dev/null +++ b/debian/webserver.service @@ -0,0 +1,19 @@ +[Unit] +Description=Webserver +After=network.target + +[Service] +Type=simple +# Restart=always +ExecStart=/usr/bin/webserver -c /etc/webserver.conf + +# Restart once a week, maybe certificates have changed +Restart=always +RuntimeMaxSec=604800 + +# webserver will lower privileges to www-data:www-data +#User=www-data +#Group=www-data + +[Install] +WantedBy=multi-user.target |