Skip to content

PerlServices/OPM-Maker-Command-depcheck

Repository files navigation

Kwalitee status GitHub issues CPAN Cover Status Cpan license

NAME

OPM::Maker::Command::depcheck - Check if ticketsystem addon dependencies are installed (works for ((OTRS)) Community Edition, Znuny and OTOBO)

VERSION

version 1.0.1

DESCRIPTION

Ticketsystem addons can define dependencies in the .opm files, e.g.

<PackageRequired Version="6.0.0">FAQ</PackageRequired>
<ModuleRequired Version="8.0">Geo::IP2Location</ModuleRequired>
<ModuleRequired Version="0.02">HTTP::AcceptLanguage</ModuleRequired>

In this case, the addon requires an other addon - FAQ with minimum version 6.0.0 - and two CPAN modules.

This OPM::Maker command checks for a given .sopm or .opm file if the dependencies are already installed.

HOW IT WORKS

For the other addons, this command tries to find the ticketsystem installation (it searches for /opt/otrs, /opt/otobo or /opt/znuny) and searches the database for installed addons.

If it doesn't find the addons in the database, it looks for a /opt/{otrs,otobo,znuny}/$addonname.sopm file. If that file exists the addon is marked as installed.

For the CPAN dependencies, this command tries to use the module.

Development

The distribution is contained in a Git repository, so simply clone the repository

$ git clone git://github.com/perlservices/OPM-Maker-Command-depcheck.git

and change into the newly-created directory.

$ cd OPM-Maker-Command-depcheck

The project uses Dist::Zilla to build the distribution, hence this will need to be installed before continuing:

$ cpanm Dist::Zilla

To install the required prequisite packages, run the following set of commands:

$ dzil authordeps --missing | cpanm
$ dzil listdeps --author --missing | cpanm

The distribution can be tested like so:

$ dzil test

To run the full set of tests (including author and release-process tests), add the --author and --release options:

$ dzil test --author --release

AUTHOR

Renee Baecker reneeb@cpan.org

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Renee Baecker.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages