mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
. fix some regexps for ip address detection; [1]
. bump PORTREVISION. PR: ports/140012 [1] Submitted by: Mark Round <mark.round at ahc.uk.com> [1] Final patch by: maintainer (Justin Head <ports at encarnate.com>) [1]
This commit is contained in:
parent
3762679044
commit
877130c1aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=244327
@ -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}
|
||||
|
@ -41,11 +41,11 @@ Patch attached with submission follows:
|
||||
+
|
||||
+ while (<STDIN>) {
|
||||
+ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user