urlview: use ssl/tls link
Switch to the SSL/TLS link, other strict audit fixes. Test seems to be impossible as it bumps open a terminal screen and AFAIK we don't have a way to read from and then escape that without causing failure (?).
This commit is contained in:
parent
4e6aa87e66
commit
f173972ed5
1 changed files with 11 additions and 13 deletions
|
@ -1,25 +1,23 @@
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
class Urlview < Formula
|
class Urlview < Formula
|
||||||
homepage 'http://packages.debian.org/unstable/misc/urlview'
|
homepage "https://packages.debian.org/sid/misc/urlview"
|
||||||
url 'http://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz'
|
url "https://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz"
|
||||||
mirror 'http://ftp.us.debian.org/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz'
|
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/u/urlview/urlview_0.9.orig.tar.gz"
|
||||||
sha1 '323af9ba30ba87ec600531629f5dd84c720984b6'
|
sha256 "746ff540ccf601645f500ee7743f443caf987d6380e61e5249fc15f7a455ed42"
|
||||||
|
|
||||||
patch do
|
patch do
|
||||||
url "http://ftp.aarnet.edu.au/debian/pool/main/u/urlview/urlview_0.9-19.diff.gz"
|
url "https://mirrors.kernel.org/debian/pool/main/u/urlview/urlview_0.9-19.diff.gz"
|
||||||
sha1 "96bd07bbb7cfc3416dc0ce8fa914160356f95c41"
|
sha256 "056883c17756f849fb9235596d274fbc5bc0d944fcc072bdbb13d1e828301585"
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
inreplace 'urlview.man', '/etc/urlview/url_handler.sh', 'open'
|
inreplace "urlview.man", "/etc/urlview/url_handler.sh", "open"
|
||||||
inreplace 'urlview.c',
|
inreplace "urlview.c",
|
||||||
'#define DEFAULT_COMMAND "/etc/urlview/url_handler.sh %s"',
|
'#define DEFAULT_COMMAND "/etc/urlview/url_handler.sh %s"',
|
||||||
'#define DEFAULT_COMMAND "open %s"'
|
'#define DEFAULT_COMMAND "open %s"'
|
||||||
|
|
||||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
||||||
"--prefix=#{prefix}"
|
|
||||||
man1.mkpath
|
man1.mkpath
|
||||||
system "make install"
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}",
|
||||||
|
"--sysconfdir=#{etc}"
|
||||||
|
system "make", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue