summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-11 11:52:46 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-11 11:52:46 +0100
commitbfd4e0d1e4924d24cc4b43417e59af923b9c3e5f (patch)
tree3897c634265d06c983033bf69d62786efdcce282
parent4c4a001cacd9c3e1c2552dbcaf50165091a82ac1 (diff)
Added debian/ infrastructure
-rw-r--r--debian/README.Debian45
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control14
-rw-r--r--debian/copyright4
-rwxr-xr-xdebian/rules12
-rw-r--r--debian/source/format1
-rw-r--r--debian/weblog.conf2
-rw-r--r--debian/weblog.docs1
-rw-r--r--debian/weblog.weblog.service13
-rw-r--r--weblog.conf4
11 files changed, 102 insertions, 0 deletions
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..27fd5b1
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,45 @@
+weblog for Debian
+=================
+
+This package is the Debian version of weblog.
+
+It is an FCGI application communicating to a webserver, e.g. Reichwein.IT webserver.
+
+
+Configuration
+-------------
+
+* You can add this to /etc/webserver.conf
+
+ <path requested="/blog">
+ <plugin>fcgi</plugin>
+ <target>::1:9091</target>
+ </path>
+
+* Edit /etc/weblog.conf to adjust the weblog data path if different
+ from /var/lib/whiteboard
+
+* Enable:
+
+ # systemctl enable weblog.service
+
+* Start:
+
+ # systemctl start weblog
+
+* Stop:
+
+ # systemctl stop weblog
+
+* Query Status:
+
+ # systemctl status weblog
+
+ and observe /var/log/syslog
+
+
+Contact
+-------
+
+Reichwein IT <mail@reichwein.it>
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6a09362
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+weblog (1.0) unstable; urgency=medium
+
+ * Initial release
+
+ -- Roland Reichwein <mail@reichwein.it> Sat, 11 Feb 2023 11:33:30 +0100
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..7ba695e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,14 @@
+Source: weblog
+Section: web
+Priority: optional
+Maintainer: Roland Reichwein <mail@reichwein.it>
+Build-Depends: debhelper (>= 12), libboost-all-dev | libboost1.71-all-dev, clang | g++-9, llvm | g++-9, lld | g++-9, uglifyjs, python3-pkg-resources, htmlmin, cleancss, pkg-config, libfmt-dev, googletest, gcovr, libreichwein-dev
+Standards-Version: 4.5.0
+Homepage: http://www.reichwein.it/weblog/
+
+Package: weblog
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, mpack, webserver
+Homepage: http://www.reichwein.it/weblog/
+Description: Web application for Blogs
+ Weblog is a web application with a FCGI interface to webservers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5007f59
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,4 @@
+Author: Roland Reichwein <mail@reichwein.it>, 2022
+
+Both upstream source code and Debian packaging is available
+under the conditions of CC0 1.0 Universal
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..433518c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ dh_fixperms
+
+
+override_dh_auto_install:
+ dh_auto_install
+ dh_installsystemd --name weblog
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/weblog.conf b/debian/weblog.conf
new file mode 100644
index 0000000..e109177
--- /dev/null
+++ b/debian/weblog.conf
@@ -0,0 +1,2 @@
+<config>
+</config>
diff --git a/debian/weblog.docs b/debian/weblog.docs
new file mode 100644
index 0000000..0812baa
--- /dev/null
+++ b/debian/weblog.docs
@@ -0,0 +1 @@
+webserver.conf.example
diff --git a/debian/weblog.weblog.service b/debian/weblog.weblog.service
new file mode 100644
index 0000000..b63f719
--- /dev/null
+++ b/debian/weblog.weblog.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Weblog
+After=network.target
+
+[Service]
+Type=simple
+# Restart=always
+ExecStart=webapp-runner ::1:9019 /usr/bin/weblog
+
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
diff --git a/weblog.conf b/weblog.conf
new file mode 100644
index 0000000..80a5ec6
--- /dev/null
+++ b/weblog.conf
@@ -0,0 +1,4 @@
+::1:9019
+/home/ernie/testblog
+name Roland Reichweins Blog
+keywords Roland Reichwein, Blog