Commit 10718928 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update crew to provide support for lzip compressed source code (#2505)

* Update crew to support lzip compressed source code
parent 193931d3
...@@ -438,7 +438,8 @@ def unpack (meta) ...@@ -438,7 +438,8 @@ def unpack (meta)
Dir.chdir CREW_BREW_DIR do Dir.chdir CREW_BREW_DIR do
puts "Unpacking archive, this may take awhile..." puts "Unpacking archive, this may take awhile..."
Dir.mkdir("#{extract_dir}") unless Dir.exist?("#{extract_dir}") Dir.mkdir("#{extract_dir}") unless Dir.exist?("#{extract_dir}")
if meta[:filename][-4,4] == ".zip" case File.extname meta[:filename]
when '.zip'
if @opt_verbose then if @opt_verbose then
system "unzip", "-v", "-d", "#{extract_dir}", meta[:filename] system "unzip", "-v", "-d", "#{extract_dir}", meta[:filename]
else else
...@@ -579,7 +580,7 @@ def install_package (pkgdir) ...@@ -579,7 +580,7 @@ def install_package (pkgdir)
strip_find_files "find . -type f -name 'lib*.so*' -print", "-S" strip_find_files "find . -type f -name 'lib*.so*' -print", "-S"
# Strip binaries but not compressed archives # Strip binaries but not compressed archives
strip_find_files "find . -type f ! -iname '*\.bz2' ! -iname '*\.gz' ! -iname '*\.lha' ! -iname '*\.rar' ! -iname '*\.tar' ! -iname '*\.tgz' ! -iname '*\.xz' ! -iname '*\.zip' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'" strip_find_files "find . -type f ! -iname '*\.bz2' ! -iname '*\.gz' ! -iname '*\.lha' ! -iname '*\.lz' ! -iname '*\.rar' ! -iname '*\.tar' ! -iname '*\.tgz' ! -iname '*\.xz' ! -iname '*\.zip' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
if @opt_verbose then if @opt_verbose then
system "tar cvf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)" system "tar cvf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
......
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.0.1' CREW_VERSION = '1.0.2'
ARCH = `uname -m`.strip ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
......
...@@ -3,7 +3,7 @@ require 'package' ...@@ -3,7 +3,7 @@ require 'package'
class Buildessential < Package class Buildessential < Package
description 'A collection of tools essential to compile and build software.' description 'A collection of tools essential to compile and build software.'
homepage '' homepage ''
version '1.2' version '1.3'
is_fake is_fake
...@@ -27,7 +27,7 @@ class Buildessential < Package ...@@ -27,7 +27,7 @@ class Buildessential < Package
# override the system version with sandbox mode enabled # override the system version with sandbox mode enabled
depends_on 'sed' depends_on 'sed'
# typically required library to compile source code using "./autogen.sh" # typically required libraries to compile source code using "./autogen.sh"
depends_on 'automake' depends_on 'automake'
depends_on 'libtool' depends_on 'libtool'
depends_on 'intltool' depends_on 'intltool'
...@@ -37,10 +37,13 @@ class Buildessential < Package ...@@ -37,10 +37,13 @@ class Buildessential < Package
depends_on 'flex' depends_on 'flex'
depends_on 'util_macros' depends_on 'util_macros'
depends_on 'gettext' depends_on 'gettext'
depends_on 'wget' # in some case, some patches might be required and can be downloaded using wget depends_on 'wget' # in some cases, patches might be required and can be downloaded using wget
depends_on 'gawk'
# compression utilities
depends_on 'lzip'
depends_on 'unzip' depends_on 'unzip'
depends_on 'zip' depends_on 'zip'
depends_on 'gawk'
# cmake # cmake
depends_on 'cmake' depends_on 'cmake'
......
...@@ -30,6 +30,7 @@ libunbound ...@@ -30,6 +30,7 @@ libunbound
libunistring libunistring
libxml2 libxml2
linuxheaders linuxheaders
lzip
m4 m4
make make
most most
......
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