Révision f23aa079
Add suggest capability to debsecan plugin
| plugins/debian/debsecan_ | ||
|---|---|---|
| 36 | 36 |
|
| 37 | 37 |
* Nicolas BOUTHORS <nbouthors@nbi.fr> http://nbi.fr/, Inspiration of the moment 10/10/2007 |
| 38 | 38 |
* Olivier Mehani <shtrom+munin@ssji.net>, 2016 |
| 39 |
* Wilco de Boer <deboer.wilco@gmail.com>, 2021 |
|
| 39 | 40 |
|
| 40 | 41 |
=head1 LICENSE |
| 41 | 42 |
|
| ... | ... | |
| 43 | 44 |
|
| 44 | 45 |
=head1 MAGIC MARKERS |
| 45 | 46 |
|
| 46 |
%# family=auto |
|
| 47 |
%# capabilities=autoconf
|
|
| 47 |
#%# family=auto
|
|
| 48 |
#%# capabilities=autoconf suggest
|
|
| 48 | 49 |
|
| 49 | 50 |
=cut |
| 50 | 51 |
|
| 51 | 52 |
# Auto enable if we have debsecan only |
| 52 |
if [ "$1" = "autoconf" ] ; then
|
|
| 53 |
if [ "$1" = "autoconf" ]; then |
|
| 53 | 54 |
if [ -x /usr/bin/debsecan ]; then |
| 54 | 55 |
echo yes |
| 55 | 56 |
else |
| ... | ... | |
| 58 | 59 |
exit 0 |
| 59 | 60 |
fi |
| 60 | 61 |
|
| 62 |
# Suggest both modes when asked |
|
| 63 |
if [ "$1" = "suggest" ]; then |
|
| 64 |
echo 'pkg' |
|
| 65 |
echo 'cve' |
|
| 66 |
exit 0 |
|
| 67 |
fi |
|
| 68 |
|
|
| 61 | 69 |
# Fail if we don't have debsecan |
| 62 | 70 |
if [ ! -x /usr/bin/debsecan ]; then |
| 63 | 71 |
echo 'error: /usr/bin/debsecan not found' >&2 |
Formats disponibles : Unified diff