SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
net/nagios/check_postgres/patches/patch-check_postgres_pl
Normal file
27
net/nagios/check_postgres/patches/patch-check_postgres_pl
Normal file
|
@ -0,0 +1,27 @@
|
|||
Index: check_postgres.pl
|
||||
--- check_postgres.pl.orig
|
||||
+++ check_postgres.pl
|
||||
@@ -1608,12 +1608,9 @@ if (! $opt{'no-check_postgresrc'}) {
|
||||
elsif (exists $ENV{HOME} and -e "$ENV{HOME}/.check_postgresrc") {
|
||||
$rcfile = "$ENV{HOME}/.check_postgresrc";
|
||||
}
|
||||
- elsif (-e '/etc/check_postgresrc') {
|
||||
- $rcfile = '/etc/check_postgresrc';
|
||||
+ elsif (-e '${SYSCONFDIR}/check_postgresrc') {
|
||||
+ $rcfile = '${SYSCONFDIR}/check_postgresrc';
|
||||
}
|
||||
- elsif (-e '/usr/local/etc/check_postgresrc') {
|
||||
- $rcfile = '/usr/local/etc/check_postgresrc';
|
||||
- }
|
||||
}
|
||||
## We need a temporary hash so that multi-value options can be overridden on the command line
|
||||
my %tempopt;
|
||||
@@ -2874,7 +2871,7 @@ sub build_symlinks {
|
||||
next;
|
||||
}
|
||||
|
||||
- if (symlink $0, $file) {
|
||||
+ if (symlink '${TRUEPREFIX}/bin/check_postgres.pl', $file) {
|
||||
print msgn('symlink-create', $file);
|
||||
}
|
||||
else {
|
Loading…
Add table
Add a link
Reference in a new issue