From bfd4e0d1e4924d24cc4b43417e59af923b9c3e5f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Feb 2023 11:52:46 +0100 Subject: Added debian/ infrastructure --- debian/README.Debian | 45 ++++++++++++++++++++++++++++++++++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 14 ++++++++++++++ debian/copyright | 4 ++++ debian/rules | 12 ++++++++++++ debian/source/format | 1 + debian/weblog.conf | 2 ++ debian/weblog.docs | 1 + debian/weblog.weblog.service | 13 +++++++++++++ 10 files changed, 98 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/weblog.conf create mode 100644 debian/weblog.docs create mode 100644 debian/weblog.weblog.service (limited to 'debian') 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 + + + fcgi + ::1:9091 + + +* 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 + 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 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 +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 , 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 @@ + + 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 -- cgit v1.2.3