"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/fpm/package/freebsd.rb" between
fpm-1.13.1.tar.gz and fpm-1.14.0.tar.gz

About: fpm tries to make it easy and quick to build packages such as rpms, debs, OSX packages, etc.

freebsd.rb  (fpm-1.13.1):freebsd.rb  (fpm-1.14.0)
skipping to change at line 89 skipping to change at line 89
file_list = File.new(build_path("file_list"), "w") file_list = File.new(build_path("file_list"), "w")
files.each do |i| files.each do |i|
file_list.puts(i) file_list.puts(i)
end end
file_list.close file_list.close
# Create the .txz package archive from the files in staging_path. # Create the .txz package archive from the files in staging_path.
# We use --files-from here to keep the tar entries from having `./` as the p refix. # We use --files-from here to keep the tar entries from having `./` as the p refix.
# This is done as a best effor to mimic what FreeBSD packages do, having eve rything at the top-level as # This is done as a best effor to mimic what FreeBSD packages do, having eve rything at the top-level as
# file names, like "+MANIFEST" instead of "./+MANIFEST" # file names, like "+MANIFEST" instead of "./+MANIFEST"
# Note: This will include top-level files like "/usr/bin/foo" listed in the safesystem("tar", "-Jcf", output_path, "-C", staging_path, "--files-from", b
tar as "usr/bin/fo" without uild_path("file_list"), "--transform", 's|^\([^+]\)|/\1|')
# a leading slash. I don't know if this has any negative impact on freebsd p
ackages.
safesystem("tar", "-Jcf", output_path, "-C", staging_path, "--files-from", b
uild_path("file_list"))
end # def output end # def output
# Handle architecture naming conversion: # Handle architecture naming conversion:
# <osname>:<osversion>:<arch>:<wordsize>[.other] # <osname>:<osversion>:<arch>:<wordsize>[.other]
def architecture def architecture
osname = %x{uname -s}.chomp osname = %x{uname -s}.chomp
osversion = %x{uname -r}.chomp.split('.').first osversion = %x{uname -r}.chomp.split('.').first
# Essentially because no testing on other platforms # Essentially because no testing on other platforms
arch = 'x86' arch = 'x86'
 End of changes. 1 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)