Add libunbound 1.6.2

parent 98499a68
require 'package'
class Libunbound < Package
version '1.6.2'
source_url 'https://www.unbound.net/downloads/unbound-1.6.2.tar.gz'
source_sha1 'de370b1ac8e260db9c4c1504453752713dd8818f'
depends_on 'flex' => :build
depends_on 'bison' => :build
depends_on 'gawk' => :build
depends_on 'expat'
def self.build
system "./configure", "--enable-shared", "--disable-static", "--with-pic"
# flex 2.6.3 requires -P option to rename yylex and other funcions
system "sed", "-i", "Makefile", "-e", '/$(LEX) -t $(srcdir)\/util\/configlexer.lex/s:-t:-t -Pub_c_:'
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make", "test"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment