Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dod38fr/config-model-openssh
Edit and validate OpenSSH configuration (system and user)
https://github.com/dod38fr/config-model-openssh
Last synced: 2 days ago
JSON representation
Edit and validate OpenSSH configuration (system and user)
- Host: GitHub
- URL: https://github.com/dod38fr/config-model-openssh
- Owner: dod38fr
- Created: 2012-06-19T14:03:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T16:01:48.000Z (4 months ago)
- Last Synced: 2025-01-02T23:57:15.047Z (6 days ago)
- Language: Perl
- Homepage:
- Size: 592 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-build-from-git.md
- Changelog: Changes
Awesome Lists containing this project
README
# How to build Config::Model::OpenSsh from git repository
`Config::Model::OpenSsh` is build with [Dist::Zilla](http://dzil.org/). This
page details how to install the tools and dependencies required to
build this module.## Install tools and dependencies
### Debian, Ubuntu and derivatives
Run
$ sudo apt install libdist-zilla-perl libdist-zilla-app-command-authordebs-perl
$ dzil authordebs --install
$ sudo apt build-dep libconfig-model-openssh-perlThe [libdist-zilla-app-command-authordebs-perl package](https://tracker.debian.org/pkg/libdist-zilla-app-command-authordebs-perl) is quite recent (uploaded on Dec 2016 in Debian/unstable)
and may not be available yet on your favorite distribution.### Other systems
Run
$ cpamn Dist::Zilla
$ dzil authordeps -missing | cpanm --notest
$ dzil listdeps --missing | cpanm --notestNB: The author would welcome pull requests that explains how to
install these tools and dependencies using native package of other
distributions.## Build Config::Model::OpenSsh
Run
dzil build
or
dzil test
`dzil` may complain about missing `EmailNotify` or `Twitter`
plugin. You may ignore this or edit [dist.ini](dist.ini) to comment
out the last 2 sections. These are useful only to the author when
releasing a new version.`dzil` may also return an error like `Cannot determine local time
zone`. In this case, you should specify explicitely your timezone in
a `TZ` environement variable. E.g run `dzil` this way:TZ="Europe/Paris" dzil test
The list of possible timezones is provided by
[DateTime::TimeZone::Catalog](https://metacpan.org/pod/DateTime::TimeZone::Catalog)
documentation.## Model generation
Ssh model can be regenerated from ssh man pages with the following steps:
* make sure that `ssh_config` and `sshd_config` man pages are available
* Run `perl contrib/parse-man.pl`
* Inspect the result
* Then build the module as shown aboveFor more details, see this [readme file](contrib/README.org)