Commit bbf42ce4 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Fix compilation for re6stnet (support libnetworkcache)

parent e3bd57cf
......@@ -3,8 +3,8 @@ class Re6stnet < Package
description 'Resilient, Scalable, IPv6 Network'
homepage 'https://re6st.nexedi.com/'
version '0.530'
source_url 'https://lab.nexedi.com/nexedi/chromebrew-buildout-re6st/repository/archive.tar.bz2?ref=89576691c79ba28c162e8211c73d343e2057b07d'
source_sha256 '4d36c74cb94524dc943617fb93dee084f290e378ee33c2b064b0b4ce6f6bf71d'
source_url 'https://lab.nexedi.com/nexedi/chromebrew-buildout-re6st/repository/archive.tar.bz2?ref=e6574c96b236cfed2d8604349499c39baf5cba3a'
source_sha256 '0a2c1a1faff4d6d99401682bab6d70ad7f4f74aad78499d254fb47470df5c898'
binary_url ({
x86_64: 'https://softinst105421.host.vifib.net/public/re6stnet-0.530-chromeos-x86_64.tar.xz',
......@@ -21,11 +21,14 @@ class Re6stnet < Package
@re6st_dir = "#{CREW_PREFIX}/opt/re6st"
def self.build
system "mkdir -p #{@re6st_dir}/bin/"
system "mkdir -p #{@re6st_dir}/bin/ #{@re6st_dir}/tmp-networkcached/bin"
system "cp buildout.cfg #{@re6st_dir}"
system "cp bin/* #{@re6st_dir}/bin/"
system "gcc shill_wrapper.c -o #{@re6st_dir}/bin/shill_wrapper -ldl -Wall -fPIC -pie"
system "cd #{@re6st_dir} && ./bin/bootstrap && MAKEFLAGS=-j SSL_CERT_DIR=/etc/ssl/certs ./bin/buildout"
system "cp bin/bootstrap #{@re6st_dir}/tmp-networkcached/bin/"
system "cp networkcached.cfg #{@re6st_dir}/tmp-networkcached/buildout.cfg"
system "cd #{@re6st_dir}/tmp-networkcached && ./bin/bootstrap && MAKEFLAGS=-j ./bin/buildout"
system "cd #{@re6st_dir} && MAKEFLAGS=-j SSL_CERT_DIR=/etc/ssl/certs tmp-networkcached/bin/buildout"
end
def self.install
......
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