diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2012-04-18 15:50:12 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2012-04-18 15:50:12 +0800 |
commit | f43a73ad51f8e5563e0e77efa02d7d6587cb7b63 (patch) | |
tree | 45d7f0728fc1e9d517843483fd4574b4fbbda717 /sysutils | |
parent | e08488859ce6ebf9104f5fecad167b0318ffc02e (diff) | |
download | freebsd-ports-gnome-f43a73ad51f8e5563e0e77efa02d7d6587cb7b63.tar.gz freebsd-ports-gnome-f43a73ad51f8e5563e0e77efa02d7d6587cb7b63.tar.zst freebsd-ports-gnome-f43a73ad51f8e5563e0e77efa02d7d6587cb7b63.zip |
Provide a patch to quiece a runtime warning for a deprecated form of pattern
matching.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hploscripts/Makefile | 2 | ||||
-rw-r--r-- | sysutils/hploscripts/files/patch-locfg.pl | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sysutils/hploscripts/Makefile b/sysutils/hploscripts/Makefile index 68e870a93ddf..beaa00a754fc 100644 --- a/sysutils/hploscripts/Makefile +++ b/sysutils/hploscripts/Makefile @@ -7,7 +7,7 @@ PORTNAME= hploscripts PORTVERSION= 3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils perl5 MASTER_SITES= CRITICAL diff --git a/sysutils/hploscripts/files/patch-locfg.pl b/sysutils/hploscripts/files/patch-locfg.pl new file mode 100644 index 000000000000..0cae8975cc80 --- /dev/null +++ b/sysutils/hploscripts/files/patch-locfg.pl @@ -0,0 +1,11 @@ +--- ./locfg.pl.orig 2012-04-18 09:45:56.000000000 +0200 ++++ ./locfg.pl 2012-04-18 09:46:13.000000000 +0200 +@@ -143,7 +143,7 @@ + $ln =~ s/\r|\n//g; + + # Find LOGIN tag. +- if ((($ln =~ ?<[ ]*LOGIN[ ]?) || ($ln =~ ?<[ ]*LOGIN$?)) && ($pword) && ($uname)) { ++ if ((($ln =~m ?<[ ]*LOGIN[ ]?) || ($ln =~m ?<[ ]*LOGIN$?)) && ($pword) && ($uname)) { + while( !($ln =~ m/\>/i) ) { + $ln = <F>; + } |