From b825738de2f33ffd893f4d1fd2c777d1a7436d32 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Thu, 31 Dec 2020 05:19:23 +0100 Subject: added debian packaging --- debian/blogc-git-receiver.install | 2 ++ debian/blogc-make.install | 3 ++ debian/blogc-runserver.install | 2 ++ debian/blogc.install | 6 ++++ debian/changelog | 5 ++++ debian/control | 41 ++++++++++++++++++++++++++ debian/copyright | 61 +++++++++++++++++++++++++++++++++++++++ debian/rules | 16 ++++++++++ debian/source/format | 1 + 9 files changed, 137 insertions(+) create mode 100644 debian/blogc-git-receiver.install create mode 100644 debian/blogc-make.install create mode 100644 debian/blogc-runserver.install create mode 100644 debian/blogc.install create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format (limited to 'debian') diff --git a/debian/blogc-git-receiver.install b/debian/blogc-git-receiver.install new file mode 100644 index 0000000..ede6da4 --- /dev/null +++ b/debian/blogc-git-receiver.install @@ -0,0 +1,2 @@ +usr/bin/blogc-git-receiver +usr/share/man/man1/blogc-git-receiver.1 diff --git a/debian/blogc-make.install b/debian/blogc-make.install new file mode 100644 index 0000000..44c459a --- /dev/null +++ b/debian/blogc-make.install @@ -0,0 +1,3 @@ +usr/bin/blogc-make +usr/share/man/man1/blogc-make.1 +usr/share/man/man5/blogcfile.5 diff --git a/debian/blogc-runserver.install b/debian/blogc-runserver.install new file mode 100644 index 0000000..debadc7 --- /dev/null +++ b/debian/blogc-runserver.install @@ -0,0 +1,2 @@ +usr/bin/blogc-runserver +usr/share/man/man1/blogc-runserver.1 diff --git a/debian/blogc.install b/debian/blogc.install new file mode 100644 index 0000000..edb9ae3 --- /dev/null +++ b/debian/blogc.install @@ -0,0 +1,6 @@ +usr/bin/blogc +usr/share/man/man1/blogc.1 +usr/share/man/man7/blogc-pagination.7 +usr/share/man/man7/blogc-source.7 +usr/share/man/man7/blogc-template.7 +usr/share/man/man7/blogc-toctree.7 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e9b7951 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +blogc (0.20.0-1) unstable; urgency=medium + + * Initial release + + -- Rafael G. Martins Fri, 25 Dec 2020 05:48:28 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..4f1b654 --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: blogc +Section: text +Priority: optional +Maintainer: Rafael G. Martins +Build-Depends: debhelper-compat (= 12), + git, + libcmocka-dev, + pkg-config +Standards-Version: 4.5.1 +Homepage: https://blogc.rgm.io/ +Vcs-Browser: https://gio.rgm.io/debian/blogc +Vcs-Git: https://git.rgm.io/git/debian/blogc.git +Rules-Requires-Root: no + +Package: blogc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Blog compiler + Main binary + +Package: blogc-git-receiver +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + git, + make +Description: Blog compiler + blogc-git-receiver binary + +Package: blogc-make +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, + blogc, + blogc-runserver +Description: Blog compiler + blogc-make binary + +Package: blogc-runserver +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Blog compiler + blogc-runserver binary diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0559f14 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,61 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: blogc +Upstream-Contact: Rafael G. Martins +Source: https://git.rgm.io/blogc + +Files: * +Copyright: 2014-2020, Rafael G. Martins +License: BSD-3-Clause + +Files: debian/* +Copyright: 2020 Rafael G. Martins +License: BSD-3-Clause + +Files: src/common/utf8.c +Copyright: 2008-2010 Bjoern Hoehrmann + 2014-2019 Rafael G. Martins +License: MIT + +License: BSD-3-Clause + 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 University 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 HOLDERS 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. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ca63b74 --- /dev/null +++ b/debian/rules @@ -0,0 +1,16 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE = 1 +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- \ + --disable-ronn \ + --enable-git-receiver \ + --enable-make \ + --enable-runserver diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3-18-g5258