From aebcd0ef116d60cc6206742e298f8a6b582d8884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 12 Dec 2024 11:28:06 +0100 Subject: Adding debian version 20241201-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 +++ debian/control | 41 +++++++++++++++++++ debian/copyright | 71 +++++++++++++++++++++++++++++++++ debian/dokuwiki-plugins-extra.config | 15 +++++++ debian/dokuwiki-plugins-extra.postinst | 65 ++++++++++++++++++++++++++++++ debian/dokuwiki-plugins-extra.prerm | 34 ++++++++++++++++ debian/dokuwiki-plugins-extra.templates | 10 +++++ debian/po/POTFILES.in | 1 + debian/po/templates.pot | 42 +++++++++++++++++++ debian/rules | 25 ++++++++++++ debian/source/format | 1 + 11 files changed, 310 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/dokuwiki-plugins-extra.config create mode 100755 debian/dokuwiki-plugins-extra.postinst create mode 100755 debian/dokuwiki-plugins-extra.prerm create mode 100644 debian/dokuwiki-plugins-extra.templates create mode 100644 debian/po/POTFILES.in create mode 100644 debian/po/templates.pot create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4cae509 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +dokuwiki-plugins-extra (20241201-1) unstable; urgency=low + + * Initial upload to sid. + + -- Daniel Baumann Sun, 01 Dec 2024 21:17:55 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3d819d3 --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: dokuwiki-plugins-extra +Section: web +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + python3-docutils, +Rules-Requires-Root: no +Standards-Version: 4.7.0 + +Package: dokuwiki-plugins-extra +Section: web +Architecture: all +Depends: + dokuwiki (>= ${dokuwiki:Depends:low}~), + dokuwiki (<< ${dokuwiki:Depends:high}~), + ${misc:Depends}, +Recommends: + php-mbstring, +Enhances: + dokuwiki, +Provides: + dokuwiki-plugin-addnewpage (= 2024-11-16), + dokuwiki-plugin-color (= 2022-10-19), + dokuwiki-plugin-mathjax (= 20211120), + dokuwiki-plugin-wrap (= 2023-08-13), +Description: Conglomeration package of DokuWiki plugins + The dokuwiki-plugins-extra contains the following plugins for + DokuWiki: + . + * addnewpage: + Put 'add new page' forms within pages, with optional namespace selection + . + * color: + Opportunity to write colored text in DokuWiki + . + * mathjax: + Enables MathJax parsing of TeX math expressions in wiki pages + . + * wrap: + Universal plugin which combines the functionality of many other plugins diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..db2c5fd --- /dev/null +++ b/debian/copyright @@ -0,0 +1,71 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: + dokuwiki-plugin-addnewpage + dokuwiki_color_plugin + dokuwiki-plugin-mathjax + dokuwiki_plugin_wrap +Upstream-Contact: + dokuwiki-plugin-addnewpage: https://github.com/dregad/dokuwiki-plugin-addnewpage/issues + dokuwiki_color_plugin: https://github.com/hanche/dokuwiki_color_plugin/issues + dokuwiki-plugin-mathjax: https://github.com/liffiton/dokuwiki-plugin-mathjax/issues + dokuwiki_plugin_wrap: https://github.com/selfthinker/dokuwiki_plugin_wrap/issues +Source: + dokuwiki-plugin-addnewpage: https://github.com/dregad/dokuwiki-plugin-addnewpage/tags + dokuwiki_color_plugin: https://github.com/hanche/dokuwiki_color_plugin/tags + dokuwiki-plugin-mathjax: https://github.com/liffiton/dokuwiki-plugin-mathjax/tags + dokuwiki_plugin_wrap: https://github.com/selfthinker/dokuwiki_plugin_wrap/tags + +Files: * +Copyright: 2024 Daniel Baumann +License: GPL-2+ + +Files: plugins/*/addnewpage/* +Copyright: 2006 Benjamin Santalucia + 2013 Sam Wilson + 2023 Damien Regad +License: GPL-2+ + +Files: plugins/*/color/* +Copyright: 2014-2022 Christopher Smith +License: GPL-2 + +Files: plugins/*/mathjax/* +Copyright: Mark Liffiton +License: GPL-2 + +Files: plugins/*/wrap/* +Copyright: Anika Henke +License: GPL-2 + +License: GPL-2 + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, version 2 of the License. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +License: GPL-2+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. diff --git a/debian/dokuwiki-plugins-extra.config b/debian/dokuwiki-plugins-extra.config new file mode 100755 index 0000000..23f8293 --- /dev/null +++ b/debian/dokuwiki-plugins-extra.config @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +PLUGINS="$(cd /usr/share/dokuwiki/plugins-extra && ls -d */ | sed -e 's|/$|,|g')" +db_subst dokuwiki-plugins/plugins choices $(echo ${PLUGINS} | sed -e 's|,$||') + +db_fset dokuwiki-plugins/plugins seen false + +db_input high dokuwiki-plugins/plugins || true +db_go + +db_stop diff --git a/debian/dokuwiki-plugins-extra.postinst b/debian/dokuwiki-plugins-extra.postinst new file mode 100755 index 0000000..7e74c2c --- /dev/null +++ b/debian/dokuwiki-plugins-extra.postinst @@ -0,0 +1,65 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +case "${1}" in + configure) + db_get dokuwiki-plugins/plugins + PLUGINS="${RET:-none}" + + db_stop + + # Handling plugins + DIRECTORIES="$(cd /usr/share/dokuwiki/plugins-extra && ls -d */ | sed -e 's|/$||g')" + + case "${PLUGINS}" in + all) + PLUGINS="${DIRECTORIES}" + ;; + + none) + PLUGINS="" + ;; + + *) + PLUGINS="$(echo ${PLUGINS} | sed -e 's|,| |g')" + ;; + esac + + # Disabling all plugins + for PLUGIN in ${DIRECTORIES} + do + if [ -L "/var/lib/dokuwiki/lib/plugins/${PLUGIN}" ] + then + if [ "$(dirname $(readlink /var/lib/dokuwiki/lib/plugins/"${PLUGIN}"))" = "/usr/share/dokuwiki/plugins-extra" ] + then + rm -f "/var/lib/dokuwiki/lib/plugins/${PLUGIN}" + fi + fi + done + + # Enabling selected plugins + for PLUGIN in ${PLUGINS} + do + if [ -e "/usr/share/dokuwiki/plugins-extra/${PLUGIN}" ] + then + ln -s "/usr/share/dokuwiki/plugins-extra/${PLUGIN}" "/var/lib/dokuwiki/lib/plugins/${PLUGIN}" + fi + done + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/dokuwiki-plugins-extra.prerm b/debian/dokuwiki-plugins-extra.prerm new file mode 100755 index 0000000..dc355ff --- /dev/null +++ b/debian/dokuwiki-plugins-extra.prerm @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + DIRECTORIES="$(cd /usr/share/dokuwiki/plugins-extra && ls -d */ | sed -e 's|/$||g')" + + # Removing all plugins + for PLUGIN in ${DIRECTORIES} + do + if [ -L "/var/lib/dokuwiki/lib/plugins/${PLUGIN}" ] + then + if [ "$(dirname $(readlink /var/lib/dokuwiki/lib/plugins/"${PLUGIN}"))" = "/usr/share/dokuwiki/plugins-extra" ] + then + rm -f "/var/lib/dokuwiki/lib/plugins/${PLUGIN}" + fi + fi + done + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/dokuwiki-plugins-extra.templates b/debian/dokuwiki-plugins-extra.templates new file mode 100644 index 0000000..2c9c219 --- /dev/null +++ b/debian/dokuwiki-plugins-extra.templates @@ -0,0 +1,10 @@ +Template: dokuwiki/title +Type: title +_Description: DokuWiki: Setup + +Template: dokuwiki-plugins/plugins +Type: multiselect +Choices: ${choices} +Default: +_Description: Enable dokuwiki plugins + Select the plugins that you would like to enable: diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in new file mode 100644 index 0000000..7f8cb60 --- /dev/null +++ b/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] dokuwiki-plugins-extra.templates diff --git a/debian/po/templates.pot b/debian/po/templates.pot new file mode 100644 index 0000000..930eded --- /dev/null +++ b/debian/po/templates.pot @@ -0,0 +1,42 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the dokuwiki-plugins-extra package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: dokuwiki-plugins-extra\n" +"Report-Msgid-Bugs-To: dokuwiki-plugins-extra@packages.debian.org\n" +"POT-Creation-Date: 2024-12-01 21:42+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: title +#. Description +#: ../dokuwiki-plugins-extra.templates:1001 +msgid "DokuWiki: Setup" +msgstr "" + +#. Type: multiselect +#. Choices +#: ../dokuwiki-plugins-extra.templates:2001 +msgid "${choices}" +msgstr "" + +#. Type: multiselect +#. Description +#: ../dokuwiki-plugins-extra.templates:2002 +msgid "Enable dokuwiki plugins" +msgstr "" + +#. Type: multiselect +#. Description +#: ../dokuwiki-plugins-extra.templates:2002 +msgid "Select the plugins that you would like to enable:" +msgstr "" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e139344 --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f + +PLUGINS_VERSION = 55 + +DOKUWIKI_DEPENDS_LOW = 2024-02-06 +DOKUWIKI_DEPENDS_HIGH = 2026 + +%: + dh ${@} + +execute_after_dh_auto_clean: + rm -f plugins/current + +execute_before_dh_auto_build: + ln -s $(PLUGINS_VERSION) plugins/current + +execute_after_dh_auto_install: + # removing unused files + rm -f debian/dokuwiki-plugins-extra/usr/share/doc/*/CHANGELOG.txt + rm -f debian/dokuwiki-plugins-extra/usr/share/doc/*/LICENSE.txt + +override_dh_gencontrol: + dh_gencontrol -- \ + -Vdokuwiki:Depends:low="$(DOKUWIKI_DEPENDS_LOW)" \ + -Vdokuwiki:Depends:high="$(DOKUWIKI_DEPENDS_HIGH)" 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