Commit 34f5859a authored by satmandu's avatar satmandu Committed by GitHub

Add Network Manager Prereqs (#5313)

* Create libnewt.rb

* Update jansson.rb

* Create libxcrypt.rb

* Create gpm.rb

* Create mobile_broadband_provider_info.rb

* Update libnewt.rb

* Update mobile_broadband_provider_info.rb

* Update gpm.rb

* remove gpm.sh
parent 23520d41
require 'package'
class Gpm < Package
description 'A mouse server for the console and xterm'
homepage 'https://www.nico.schottelius.org/software/gpm/'
version '1.20.7-e82d'
compatibility 'all'
source_url 'https://github.com/telmich/gpm/archive/e82d1a653ca94aa4ed12441424da6ce780b1e530.zip'
source_sha256 'd3a693fde3eb1176fdcbee78768f18115e0b634c4ce29a3c3ccc953ba20e10bf'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4a14aada6427aa44ca96c59b24efc36352e44b67037a3cc44b14a43c529d128a',
armv7l: '4a14aada6427aa44ca96c59b24efc36352e44b67037a3cc44b14a43c529d128a',
i686: 'dd67b22232f2376f7eb343cf3c6adc31f037e152b6b946e9def7803706224f1d',
x86_64: 'deddcca380cff6e26b34eb93ff6902d50fc6107f35e5fc21022a8ee4ef7c5bde'
})
depends_on 'procps'
def self.build
system './autogen.sh'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc \
--sbindir=#{CREW_PREFIX}/bin"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/systemd/system"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/profile.d"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/profile.d"
# via https://github.com/archlinux/svntogit-packages/tree/master/gpm/trunk
@gpm_path = <<~'GPM_PATH_EOF'
[Unit]
Description=Virtual console mouse server
[Path]
PathExists=/dev/input/mice
GPM_PATH_EOF
IO.write("#{CREW_DEST_PREFIX}/systemd/system/gpm.path", @gpm_path)
FileUtils.chmod 0o644, "#{CREW_DEST_PREFIX}/systemd/system/gpm.path"
@gpm_service = <<~GPM_SERVICE_EOF
[Unit]
Description=Virtual console mouse server
Requires=systemd-udevd.service
After=systemd-udevd.service
Wants=gpm.path
ConditionPathExists=/dev/input/mice
[Service]
Type=forking
ExecStart=#{CREW_PREFIX}/bin/gpm -m /dev/input/mice -t imps2
[Install]
WantedBy=multi-user.target
GPM_SERVICE_EOF
IO.write("#{CREW_DEST_PREFIX}/systemd/system/gpm.service", @gpm_service)
FileUtils.chmod 0o644, "#{CREW_DEST_PREFIX}/systemd/system/gpm.service"
Dir.chdir CREW_DEST_LIB_PREFIX do
system 'ln -sfr libgpm.so.2.* libgpm.so'
end
FileUtils.chmod 0o755, Dir.glob("#{CREW_DEST_LIB_PREFIX}/libgpm.so.*")
end
end
...@@ -3,29 +3,30 @@ require 'package' ...@@ -3,29 +3,30 @@ require 'package'
class Jansson < Package class Jansson < Package
description 'Jansson is a C library for encoding, decoding and manipulating JSON data.' description 'Jansson is a C library for encoding, decoding and manipulating JSON data.'
homepage 'http://www.digip.org/jansson/' homepage 'http://www.digip.org/jansson/'
version '2.12' @_ver = '2.13.1'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/akheron/jansson/archive/v2.12.tar.gz' source_url "https://github.com/akheron/jansson/archive/v#{@_ver}.tar.gz"
source_sha256 '76260d30e9bbd0ef392798525e8cd7fe59a6450c54ca6135672e3cd6a1642941' source_sha256 'f22901582138e3203959c9257cf83eba9929ac41d7be4a42557213a22ebcc7a0'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '1268da5b1e8fb780fa300e2435992978ad3ca1dca671fcb157591795b219cee3', aarch64: '934cd7813f9a0c8ad07c967f0d65de05a545d697cc10c6a270c09e6dbbdf30df',
armv7l: '1268da5b1e8fb780fa300e2435992978ad3ca1dca671fcb157591795b219cee3', armv7l: '934cd7813f9a0c8ad07c967f0d65de05a545d697cc10c6a270c09e6dbbdf30df',
i686: '1a5b9a9099cb64e5b097090bc17a0ae3b225c66815dd06f3db0a32d4adedac03', i686: '3a4c91fbfd2b20b52174e9dfb28b16d1ed22767af66379711e1da77ac9ec9e86',
x86_64: '3cb0754c45a3997f7c41cc0d941964c4ec55f12e28792712ececc2d5f41a42e4', x86_64: '224290a4b9c5e4361d7a41171745ec02211281582af9a6f7aa0b7de47a06b7de'
}) })
def self.build def self.build
system 'autoreconf -i' system 'autoreconf -i'
system './configure', system "env CFLAGS='-flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}" ./configure #{CREW_OPTIONS}"
system 'make' system 'make'
end end
......
require 'package'
class Libnewt < Package
description 'Not Eriks Windowing Toolkit - text mode windowing with slang'
homepage 'https://pagure.io/newt'
@_ver = '0.52.21'
version @_ver
compatibility 'all'
source_url "https://releases.pagure.org/newt/newt-#{@_ver}.tar.gz"
source_sha256 '265eb46b55d7eaeb887fca7a1d51fe115658882dfe148164b6c49fccac5abb31'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'd1813f44254d795347e412bfffcc6a86b4dffc934db3e0341b5072f7a7518b12',
armv7l: 'd1813f44254d795347e412bfffcc6a86b4dffc934db3e0341b5072f7a7518b12',
i686: 'e4850288e06cdc7f35233e8beeb2ead16fd934c0eac6afea7c8b26666feaf20a',
x86_64: '07ebbb1fe4cfe931a583e1195d1340fec0387a1bd5c83ee8a0fda9754730f185'
})
depends_on 'gpm'
depends_on 'libxcrypt'
depends_on 'popt'
depends_on 'tcl' => :build
depends_on 'pygments' => :build
def self.patch
patch_url = 'http://deb.debian.org/debian/pool/main/n/newt/newt_0.52.21-4.debian.tar.xz'
patch_sha256 = '163f2f58bf4d0ac8a0907a1c2530a02d7c178b88c53fb98ee69d4b33bc86187d'
system('curl', '-Lf', patch_url, '-o', 'zippatches.tar.xz')
unless Digest::SHA256.hexdigest(File.read('./zippatches.tar.xz')) == patch_sha256
abort 'Checksum mismatch :/ try again'
end
system('tar', '-xf', 'zippatches.tar.xz')
system('for i in `cat debian/patches/series`; do patch -p 1 < debian/patches/$i; done')
system "echo '#define USE_INTERP_RESULT 1' >> config.h"
end
def self.build
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--with-gpm-support"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
require 'package'
class Libxcrypt < Package
description 'Modern library for one-way hashing of passwords'
homepage 'https://github.com/besser82/libxcrypt/'
@_ver = '4.4.18'
version @_ver
compatibility 'all'
source_url "https://github.com/besser82/libxcrypt/archive/v#{@_ver}.tar.gz"
source_sha256 '3801f0263a8596b15ec466343fc1fdc4ad4ec7416c51e038a3528fd47f3be01a'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
armv7l: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
i686: 'c06e88bb39f787c294dbbdb5497887a6b58b24d586965ece1d9915dd3cd82e0c',
x86_64: '36f1ed8e9d2889c62c2eb4f9d98808fcae9400d376e1b6cd8367550998a8188c'
})
def self.build
system 'autoreconf -fi'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=no \
--disable-failure-tokens"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
require 'package'
class Mobile_broadband_provider_info < Package
description 'Network Management daemon'
homepage 'https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info'
@_ver = '20201225'
version @_ver
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info/-/archive/#{@_ver}/mobile-broadband-provider-info-#{@_ver}.tar.bz2"
source_sha256 '0616b3d0580575741d4319ac71ca67c9a378879943d32a67ac0460615767bcdf'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'bcd1950197cad4165f2ae459e479a33ffdf923f8ba15825bf1a7b98759c2ae6e',
armv7l: 'bcd1950197cad4165f2ae459e479a33ffdf923f8ba15825bf1a7b98759c2ae6e',
i686: 'ef85604f9bd2d1094e3a36191c2f30d3e94d75b060e78a85c2a1d42819f8d453',
x86_64: '38026295f81010e8e1a311d5f0c28322b4059213bf012a9897b9b8a8a2a43335'
})
depends_on 'libxslt'
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
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