1
0
Fork 0

Adding debian version 20241201-1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-03-16 08:08:14 +01:00
parent f8d74cc725
commit 2fca362a9f
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
11 changed files with 310 additions and 0 deletions

5
debian/changelog vendored Normal file
View file

@ -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

41
debian/control vendored Normal file
View file

@ -0,0 +1,41 @@
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-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

71
debian/copyright vendored Normal file
View file

@ -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 <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/*/mathjax/*
Copyright: Mark Liffiton <liffiton@gmail.com>
License: GPL-2
Files: plugins/*/wrap/*
Copyright: Anika Henke <anika@selfthinker.org>
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 <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.

15
debian/dokuwiki-plugins-extra.config vendored Executable file
View file

@ -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

65
debian/dokuwiki-plugins-extra.postinst vendored Executable file
View file

@ -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

34
debian/dokuwiki-plugins-extra.prerm vendored Executable file
View file

@ -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

10
debian/dokuwiki-plugins-extra.templates vendored Normal file
View file

@ -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:

1
debian/po/POTFILES.in vendored Normal file
View file

@ -0,0 +1 @@
[type: gettext/rfc822deb] dokuwiki-plugins-extra.templates

42
debian/po/templates.pot vendored Normal file
View file

@ -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 ""

25
debian/rules vendored Executable file
View file

@ -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)"

1
debian/source/format vendored Normal file
View file

@ -0,0 +1 @@
3.0 (quilt)