Commit ba56265c authored by ThatGeekyWeeb's avatar ThatGeekyWeeb Committed by GitHub

New Package: elogind (#4271)

parent 62327634
require 'package'
class Elogind < Package
description 'Standalone logind fork'
homepage 'https://github.com/elogind/elogind'
version '243.4'
compatibility 'all'
source_url 'https://github.com/elogind/elogind/archive/v243.4.tar.gz'
source_sha256 'f1098745863138e6270ea22e78a39baef9a0356b48246c5a53b34211992dc7db'
depends_on 'eudev'
depends_on 'libcap'
depends_on 'libseccomp'
depends_on 'linux_pam' # For _pam_macros.h
depends_on 'dbus'
depends_on 'docbook_xsl'
depends_on 'gperf'
depends_on 'libxslt'
depends_on 'shadow'
depends_on 'glib'
def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} _build -Dcgroup-controller=elogind -Dman=false \
-Ddefault-hierarchy=legacy -Ddefault-kill-user-processes=false -Dhalt-path=/sbin/halt -Drootlibexecdir=#{CREW_PREFIX}/libexec/elogind -Dreboot-path=/sbin/reboot"
system 'ninja -v -C _build'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install"
end
end
require 'package'
class Shadow < Package
description 'Shadow password file utilities'
homepage 'https://github.com/shadow-maint/shadow'
version '4.8.1'
compatibility 'all'
source_url 'https://github.com/shadow-maint/shadow/releases/download/4.8.1/shadow-4.8.1.tar.xz'
source_sha256 'a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62'
depends_on 'openpam'
def self.build
system "./configure #{CREW_OPTIONS} --bindir=#{CREW_PREFIX}/bin --sbindir=#{CREW_PREFIX}/bin --enable-shared \
--disable-static --with-libpam --without-selinux --with-acl --with-attr --without-su --disable-nls --enable-subordinate-ids --disable-account-tools-setuid"
system "make"
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
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