-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
5,390 additions
and
2,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- deb-save.rb 2024-07-12 16:04:30.785256976 +0000 | ||
+++ deb.rb 2024-07-12 16:21:22.035244607 +0000 | ||
@@ -709,10 +709,19 @@ | ||
end.flatten | ||
|
||
if origin == FPM::Package::CPAN | ||
+ | ||
+ # By default, we'd prefer to name Debian-targeted Perl packages using the | ||
+ # same naming scheme that Debian itself uses, which is usually something | ||
+ # like "lib<module-name-hyphenated>-perl", such as libregexp-common-perl | ||
+ # | ||
+ logger.info("Changing package name to match Debian's typical libmodule-name-perl style") | ||
+ self.name = "lib#{self.name.sub(/^perl-/, "")}-perl" | ||
+ | ||
# The fpm cpan code presents dependencies and provides fields as perl(ModuleName) | ||
# so we'll need to convert them to something debian supports. | ||
|
||
- # Replace perl(ModuleName) > 1.0 with Debian-style perl-ModuleName (> 1.0) | ||
+ # Replace perl(Module::Name) > 1.0 with Debian-style libmodule-name-perl (> 1.0) | ||
+ # per: https://www.debian.org/doc/packaging-manuals/perl-policy/ch-module_packages.html | ||
perldepfix = lambda do |dep| | ||
m = dep.match(/perl\((?<name>[A-Za-z0-9_:]+)\)\s*(?<op>.*$)/) | ||
if m.nil? | ||
@@ -723,7 +732,7 @@ | ||
modulename = m["name"].gsub("::", "-") | ||
|
||
# Fix any upper-casing or other naming concerns Debian has about packages | ||
- name = "#{attributes[:cpan_package_name_prefix]}-#{modulename}" | ||
+ name = "lib#{modulename}-perl" | ||
|
||
if m["op"].empty? | ||
name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
log.html | ||
output.xml | ||
report.html |
4 changes: 4 additions & 0 deletions
4
packaging/centreon-plugin-Hardware-Storage-Hpe-Primera-Restapi/deb.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"dependencies": [ | ||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
packaging/centreon-plugin-Hardware-Storage-Hpe-Primera-Restapi/pkg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"pkg_name": "centreon-plugin-Hardware-Storage-Hpe-Primera-Restapi", | ||
"pkg_summary": "Centreon Plugin", | ||
"plugin_name": "centreon_hpe_primera_restapi.pl", | ||
"files": [ | ||
"centreon/plugins/script_custom.pm", | ||
"storage/hp/primera/restapi/" | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
packaging/centreon-plugin-Hardware-Storage-Hpe-Primera-Restapi/rpm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"dependencies": [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.