# File lib/fpm/package/freebsd.rb, line 103 def architecture osname = %x{uname -s}.chomp osversion = %x{uname -r}.chomp.split('.').first # Essentially because no testing on other platforms arch = 'x86' wordsize = case @architecture when nil, 'native' %x{getconf LONG_BIT}.chomp # 'native' is current arch when 'amd64' '64' when 'i386' '32' else %x{getconf LONG_BIT}.chomp # default to native, the current arch end return [osname, osversion, arch, wordsize].join(':') end