mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* docker rebuilds & updates for x86_64 and armv7l * remove go dep * add working i686 go_md2man binary * add all possible i686 builds * add binary, update packages.yaml * suggested changes * suggested changes * add proper containerd binaries * update and rebuild containers_common * add catatonit * add podman * add distrobox * add conmon * fix deps * rebuild podman * rebuild lvm2, adjust podman build parameters * add binaries * fixup containers_common * revamp containers_common again * add policy.json symlink to containers_common * adjust podman * rebuild libbpf * update defaults in containers_common * fix tz * Add logic for creating local container policy file * move local container policy file logic to containers_common * adjust logic * adjust logic * update logic * adjust logic * adjust logic * adjust logic * adjust logic * update podman paths * rebuild podman * podman rebuild * rebuilds * fix hashes * cni rebuild * add runc dep to podman * lint * remove docker, podman, and distrobox * remove removed packages from packages.yaml
41 lines
1.9 KiB
Ruby
41 lines
1.9 KiB
Ruby
require 'package'
|
|
|
|
class Docker_systemctl_replacement < Package
|
|
description 'docker systemctl replacement'
|
|
homepage 'https://github.com/gdraheim/docker-systemctl-replacement'
|
|
version '9cbe1a0'
|
|
license 'EUPL'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/gdraheim/docker-systemctl-replacement.git'
|
|
git_hashtag '9cbe1a00eb4bdac6ff05b96ca34ec9ed3d8fc06c'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/docker_systemctl_replacement/9cbe1a0_armv7l/docker_systemctl_replacement-9cbe1a0-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/docker_systemctl_replacement/9cbe1a0_armv7l/docker_systemctl_replacement-9cbe1a0-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/docker_systemctl_replacement/9cbe1a0_i686/docker_systemctl_replacement-9cbe1a0-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/docker_systemctl_replacement/9cbe1a0_x86_64/docker_systemctl_replacement-9cbe1a0-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '018be1e2684c084bd58f80fb1a52e417c430712ea956c89bcc17d82bab472947',
|
|
armv7l: '018be1e2684c084bd58f80fb1a52e417c430712ea956c89bcc17d82bab472947',
|
|
i686: 'f72bbcc62a4ac6801d8603efd6fc19d2ac64d0f3de881fde49c7047575463054',
|
|
x86_64: '210280e690f7665396ea98b87af324095b3abd34e40ab904ad3ee5214a4bfbb2'
|
|
})
|
|
|
|
depends_on 'python3'
|
|
|
|
def self.patch
|
|
system "sed -i 's,/usr/bin/python3,#{CREW_PREFIX}/bin/python3,g' files/docker/systemctl3.py"
|
|
end
|
|
|
|
def self.install
|
|
# Systemd units should go in "{XDG_CONFIG_HOME}/systemd/user"
|
|
# Units can be accessed via "systemctl status --user unitname"
|
|
FileUtils.mkdir_p %W[
|
|
#{CREW_DEST_PREFIX}/bin
|
|
#{CREW_DEST_PREFIX}/.config/systemd/user
|
|
]
|
|
FileUtils.install 'files/docker/systemctl3.py', "#{CREW_DEST_PREFIX}/bin/systemctl", mode: 0o755
|
|
end
|
|
end
|