From 877130c1aa7c0ab2b865e805e209810864f43f9a Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Mon, 16 Nov 2009 08:51:33 +0000 Subject: [PATCH] . fix some regexps for ip address detection; [1] . bump PORTREVISION. PR: ports/140012 [1] Submitted by: Mark Round [1] Final patch by: maintainer (Justin Head ) [1] --- sysutils/heartbeat/Makefile | 2 +- sysutils/heartbeat/files/patch-resources-OCF-IPaddr | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysutils/heartbeat/Makefile b/sysutils/heartbeat/Makefile index df472bab491d..781ed82466e5 100644 --- a/sysutils/heartbeat/Makefile +++ b/sysutils/heartbeat/Makefile @@ -7,7 +7,7 @@ PORTNAME= heartbeat PORTVERSION= 2.1.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils #MASTER_SITES= http://hg.linux-ha.org/lha-2.1/archive/STABLE-2.1.4.tar.bz2 MASTER_SITES= ${MASTER_SITE_LOCAL} diff --git a/sysutils/heartbeat/files/patch-resources-OCF-IPaddr b/sysutils/heartbeat/files/patch-resources-OCF-IPaddr index 0c64e197478e..ed52d0c27bdb 100644 --- a/sysutils/heartbeat/files/patch-resources-OCF-IPaddr +++ b/sysutils/heartbeat/files/patch-resources-OCF-IPaddr @@ -41,11 +41,11 @@ Patch attached with submission follows: + + while () { + chomp(); -+ if ( /^(\w+):\s+flags=/ ) { ++ if ( /^(\w+):\sflags=/ ) { + $if_name = $1; + $if_status = ( /UP/ ) ? 1 : 0; + } -+ if ( /^\s+inet\s+${ip}/ ) { ++ if ( /^\tinet\s${ip}\s/ ) { + if ( $if_status ) { + print $if_name; + exit(0)