diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 61 | ||||
-rw-r--r-- | debian/copyright | 111 | ||||
-rwxr-xr-x | debian/dokuwiki-plugins-extra.config | 15 | ||||
-rwxr-xr-x | debian/dokuwiki-plugins-extra.postinst | 65 | ||||
-rwxr-xr-x | debian/dokuwiki-plugins-extra.prerm | 34 | ||||
-rw-r--r-- | debian/dokuwiki-plugins-extra.templates | 10 | ||||
-rw-r--r-- | debian/po/POTFILES.in | 1 | ||||
-rw-r--r-- | debian/po/templates.pot | 42 | ||||
-rwxr-xr-x | debian/rules | 25 | ||||
-rw-r--r-- | debian/source/format | 1 |
11 files changed, 370 insertions, 0 deletions
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 <daniel@debian.org> Sun, 01 Dec 2024 21:17:55 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..998dfb9 --- /dev/null +++ b/debian/control @@ -0,0 +1,61 @@ +Source: dokuwiki-plugins-extra +Section: web +Priority: optional +Maintainer: Daniel Baumann <daniel@debian.org> +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-dw2pdf (= 2023-11-25), + dokuwiki-plugin-edittable (= 2023-01-14), + dokuwiki-plugin-gitbacked (= 2023-05-07), + dokuwiki-plugin-indexmenu (= 2024-01-05), + dokuwiki-plugin-mathjax (= 20211120), + dokuwiki-plugin-sortablejs (= 2023-04-20), + 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 + . + * dw2pdf: + Export DokuWiki content to PDF + . + * edittable: + Provides a visual table editing and inserting interface + . + * gitbacked: + Sync/store DokuWiki pages and media in a git repository + . + * indexmenu: + Show a customizable and sortable index for a namespace + . + * mathjax: + Enables MathJax parsing of TeX math expressions in wiki pages + . + * sortablejs: + JavaScript for sortable tables + . + * 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..7f35d7a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,111 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: + dokuwiki-plugin-addnewpage + dokuwiki_color_plugin + dokuwiki-plugin-dw2pdf + edittable + dokuwiki-plugin-gitbacked + indexmenu + dokuwiki-plugin-mathjax + sortablejs + 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-dw2pdf: https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/issues + edittable: https://github.com/cosmocode/edittable/issues + dokuwiki-plugin-gitbacked: https://github.com/woolfg/dokuwiki-plugin-gitbacked/issues + indexmenu: https://github.com/samuelet/indexmenu/issues + dokuwiki-plugin-mathjax: https://github.com/liffiton/dokuwiki-plugin-mathjax/issues + sortablejs: https://github.com/FyiurAmron/sortablejs/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-dw2pdf: https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/tags + edittable: https://github.com/cosmocode/edittable/tags + dokuwiki-plugin-gitbacked: https://github.com/woolfg/dokuwiki-plugin-gitbacked/tags + indexmenu: https://github.com/samuelet/indexmenu/tags + dokuwiki-plugin-mathjax: https://github.com/liffiton/dokuwiki-plugin-mathjax/tags + sortablejs: https://github.com/FyiurAmron/sortablejs/tags + dokuwiki_plugin_wrap: https://github.com/selfthinker/dokuwiki_plugin_wrap/tags + +Files: * +Copyright: 2024 Daniel Baumann <daniel.baumann@progress-linux.org> +License: GPL-2+ + +Files: plugins/*/addnewpage/* +Copyright: 2006 Benjamin Santalucia <ben@santalucia.me> + 2013 Sam Wilson <sam@samwilson.id.au> + 2023 Damien Regad <dregad@mantisbt.org> +License: GPL-2+ + +Files: plugins/*/color/* +Copyright: 2014-2022 Christopher Smith <chris@jalakai.co.uk> +License: GPL-2 + +Files: plugins/*/edittable/* +Copyright: Michael Große + Andreas Gohr + Adrian Lang <dokuwiki@cosmocode.de> +License: GPL-2 + +Files: plugins/*/edittable/lib/handsontable.* +Copyright: 2012-2014 Marcin Warpechowski + 2015 Handsoncode sp. z o.o. <hello@handsoncode.net> +License: MIT + + + + +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 <https://www.gnu.org/licenses/>. + . + 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 <https://www.gnu.org/licenses/>. + . + The complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +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/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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\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) |