Skip to content

Commit 16cb1fd

Browse files
committed
bbftp-client: fix livecheck
1 parent 60e5333 commit 16cb1fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Formula/b/bbftp-client.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ class BbftpClient < Formula
22
desc "Secure file transfer software, optimized for large files"
33
homepage "https://gitlab.in2p3.fr/cc-in2p3-hpss-service/bbftp"
44
url "https://pkg.freebsd.org/ports-distfiles/bbftp-client-3.2.1.tar.gz"
5-
mirror "http://software.in2p3.fr/bbftp/dist/bbftp-client-3.2.1.tar.gz"
65
sha256 "4000009804d90926ad3c0e770099874084fb49013e8b0770b82678462304456d"
76
license "GPL-2.0-or-later"
87
revision 3
8+
head "https://gitlab.in2p3.fr/cc-in2p3-hpss-service/bbftp.git", branch: "master"
99

1010
livecheck do
11-
url "http://software.in2p3.fr/bbftp/download.html"
12-
regex(/href=.*?bbftp-client[._-]v?(\d+(?:\.\d+)+)\.t/i)
11+
url :head
12+
regex(/^(?:BBFTP|Version)[._-]v?(\d+(?:[._-]\d+)+[a-z]?)$/i)
13+
strategy :git do |tags, regex|
14+
tags.filter_map { |tag| tag[regex, 1]&.tr("_-", ".") }
15+
end
1316
end
1417

1518
no_autobump! because: :requires_manual_review

0 commit comments

Comments
 (0)