Opened 12 years ago

Closed 12 years ago

#32474 closed defect (fixed)

sshguard-ipfw @1.4_0 livecheck fails to extract latest version

Reported by: nonstop.server@… Owned by: nefar@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc:
Port: sshguard-ipfw

Description

The livecheck for this port fails to extract the latest available version.

port -d livecheck sshguard-ipfw
<snip output for brevity>
DEBUG: livecheck phase started at Fri Dec  9 09:58:03 CET 2011
DEBUG: Executing org.macports.livecheck (sshguard-ipfw)
DEBUG: Portfile modification date is Thu Mar 04 22:00:41 CET 2010
DEBUG: Port (livecheck) version is 1.4
DEBUG: Loading the defaults from '/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/livecheck/sourceforge.tcl'
DEBUG: Fetching http://sourceforge.net/api/file/index/project-name/sshguard/rss
DEBUG: The regex is "/sshguard/([a-zA-Z0-9.]+\.[a-zA-Z0-9.]+)/"
DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1"
DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1"
DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1"
DEBUG: The regex matched "/sshguard/1.1rc1/", extracted "1.1rc1"
sshguard-ipfw seems to have been updated (port version: 1.4, new version: 1.1rc1)

Setting variables livecheck.regex, livecheck.type, and livecheck.url seems to do the trick.

% port -d livecheck sshguard-ipfw \
> livecheck.regex='sshguard-(\[0-9\.\]*)\.tar\.bz2' \
> livecheck.type=regex \
> livecheck.url=http://sourceforge.net/projects/sshguard/
<snip output for brevity>
DEBUG: livecheck phase started at Thu Dec  8 22:19:33 CET 2011
DEBUG: Executing org.macports.livecheck (sshguard-ipfw)
DEBUG: Portfile modification date is Thu Mar 04 22:00:41 CET 2010
DEBUG: Port (livecheck) version is 1.4
DEBUG: Fetching http://sourceforge.net/projects/sshguard/
DEBUG: The regex is "sshguard-([0-9.]*).tar.bz2"
DEBUG: The regex matched "sshguard-1.5.tar.bz2", extracted "1.5"
DEBUG: The regex matched "sshguard-1.5.tar.bz2", extracted "1.5"
sshguard-ipfw seems to have been updated (port version: 1.4, new version: 1.5)

A difference report of the Portfile is attached.

Attachments (1)

sshguard-ipfw.diff (471 bytes) - added by nonstop.server@… 12 years ago.
proposed patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by mf2k (Frank Schima)

Cc: nefar@… removed
Owner: changed from macports-tickets@… to nefar@…

The revision should not be increased just for adding livecheck. Also, we generally add live check to the bottom of the portfile.

comment:2 in reply to:  1 Changed 12 years ago by nonstop.server@…

Replying to macsforever2000@…:

The revision should not be increased just for adding livecheck. Also, we generally add live check to the bottom of the portfile.

Thank you for the tip, I'll remember that next time.

Changed 12 years ago by nonstop.server@…

Attachment: sshguard-ipfw.diff added

proposed patch

comment:3 Changed 12 years ago by nonstop.server@…

This defect has been solved in the new sshguard version 1.5 port. See r92144.

comment:4 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.