8.3. UMC files#

Files for building a UMC module.

8.3.1. debian/package.umc-modules#

  • univention-l10n-build builds translation files.

  • dh-umc-module-install installs files.

Configured through debian/package.umc-modules.

Module

Internal (?) name of the module.

Python

Directory containing the Python code relative to top-level directory.

Definition

Path to an XML file, which describes the module. See UMC module declaration file for more information.

Javascript

Directory containing the Java-Script code relative to top-level directory.

Icons (deprecated)

Directory containing the Icons relative to top-level directory. Must provide icons in sizes 16×16 (umc/icons/16x16/udm-module.png) and 50×50 (umc/icons/50x50/udm-module.png) pixels.

8.3.2. UMC module declaration file#

umc/module.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--DOCTYPE umc SYSTEM "management/univention-management-console/data/umc-module.dtd"-->
<umc version="2.0">
	<module id="udm" icon="udm-MODULE" priority="50" version="1.0" python="3">
		<name>...</name>
		<description>...</description>
		<keywords>...,...</keywords>
		<flavor>...</flavor>
		<categories>
			<category name="domain"/>
		</categories>
		<command>...</command>
	</module>
</umc>

umc/categories/category.xml

<?xml version="1.0" encoding="UTF-8"?>
<umc version="2.0">
	<categories>
		<category id="category" priority="..." icon="....svg" color="#xxxxxx"/>
	</categories>
</umc>