aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2012-04-18 15:50:12 +0800
committerehaupt <ehaupt@FreeBSD.org>2012-04-18 15:50:12 +0800
commitf43a73ad51f8e5563e0e77efa02d7d6587cb7b63 (patch)
tree45d7f0728fc1e9d517843483fd4574b4fbbda717 /sysutils
parente08488859ce6ebf9104f5fecad167b0318ffc02e (diff)
downloadfreebsd-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/Makefile2
-rw-r--r--sysutils/hploscripts/files/patch-locfg.pl11
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>;
+ }