UmVirt LFS Package info

DB commit: 48bb9ee31306c82c48dfaaad707eb4f6a926eb8a
APP commit: 1ca4178aea919e4c9e869e3d650ff8af9678bd6f
[ BASH | XML | JSON ]

systemd

While systemd was installed when building LFS, there are many features provided by the package that were not included in the initial installation because Linux-PAM was not yet installed. The systemd package needs to be rebuilt to provide a working systemd-logind service, which provides many additional features for dependent packages.

Package info

Codename: systemd
Source file: systemd-256.4.tar.gz
Source directory: systemd-256.4
Package URL: https://umvirt.com/linux/downloads/0.2.2/packages/s/systemd-256.4.tar.gz
Package md5-checksum URL: https://umvirt.com/linux/downloads/0.2.2/packages/s/systemd-256.4.tar.gz.md5sum
Dependances: libgcrypt, polkit, Linux-PAM.
Dependance of: alsa-lib, udisks, accountsservice, gnome-session, NetworkManager, colord, gvfs, tigervnc-server.
Patches: systemd-255-upstream_fixes-1.patch.
Addons: *** NO ADDONS FOUND ***
Nestings *** NO NESTINGS FOUND ***
Configuration script:
sed -i -e 's/GROUP="render"/GROUP="video"/' \
       -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in

mkdir build &&
cd    build &&

meson setup ..                 \
      --prefix=/usr            \
      --buildtype=release      \
      -D default-dnssec=no     \
      -D firstboot=false       \
      -D install-tests=false   \
      -D ldconfig=false        \
      -D man=auto              \
      -D sysusers=false        \
      -D rpmmacrosdir=no       \
      -D homed=disabled        \
      -D userdb=false          \
      -D mode=release          \
      -D pam=enabled           \
      -D pamconfdir=/etc/pam.d \
      -D dev-kvm-mode=0660     \
      -D nobody-group=nogroup  \
      -D sysupdate=disabled    \
      -D ukify=disabled        \
      -D docdir=/usr/share/doc/systemd-256.4


Build script:
cd    build &&
ninja

if [[ "$ULFS_PKG_TEST" == "YES" ]]
then
	    ninja test
fi

Install script:
cd    build &&
ninja install

grep 'pam_systemd' /etc/pam.d/system-session ||
cat >> /etc/pam.d/system-session << "EOF"
# Begin Systemd addition

session  required    pam_loginuid.so
session  optional    pam_systemd.so

# End Systemd addition
EOF

cat > /etc/pam.d/systemd-user << "EOF"
# Begin /etc/pam.d/systemd-user

account  required    pam_access.so
account  include     system-account

session  required    pam_env.so
session  required    pam_limits.so
session  required    pam_loginuid.so
session  optional    pam_keyinit.so force revoke
session  optional    pam_systemd.so

auth     required    pam_deny.so
password required    pam_deny.so

# End /etc/pam.d/systemd-user
EOF

Arch specific instructions

lib32_amd64

Dependances: glib:lib32_amd64, gnutls:lib32_amd64, libgcrypt:lib32_amd64.
Configuration script:
sed -i -e 's/GROUP="render"/GROUP="video"/' \
       -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in

mkdir build
cd build

LANG=en_US.UTF-8                   \
CC="gcc -m32 -march=i686" CXX="g++ -m32 -march=i686"       \
PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \
meson setup \
      --prefix=/usr                 \
      --buildtype=release           \
      --libexecdir /usr/lib32  \
      --libdir /usr/lib32  \
      -Dmode=release                \
      -Ddefault-dnssec=no           \
      -Dfirstboot=false             \
      -Dinstall-tests=false         \
      -Dldconfig=false              \
      -Dsysusers=false              \
      -Drpmmacrosdir=no             \
      -Dhomed=disabled              \
      -Duserdb=false                \
      -Dman=disabled                \
      -Dmode=release                \
      -Dpamconfdir=no               \
      -Ddev-kvm-mode=0660           \
      -Dnobody-group=nogroup        \
      -Dsysupdate=disabled          \
      -Dukify=disabled              \
    -Dapparmor=false \
    -Daudit=false \
    -Dbacklight=false \
    -Dbinfmt=false \
    -Dblkid=false \
    -Dbootloader=false \
    -Dbpf-framework=false \
    -Dcoredump=false \
    -Dcreate-log-dirs=false \
    -Defi=false \
    -Denvironment-d=false \
    -Dfirstboot=false \
    -Dhibernate=false \
    -Dhomed=false \
    -Dhostnamed=false \
    -Dhtml=false \
    -Dhwdb=false \
    -Dima=false \
    -Dimportd=false \
    -Dkmod=false \
    -Dldconfig=false \
    -Dlibcryptsetup=false \
    -Dlibcryptsetup-plugins=false \
    -Dlibfido2=false \
    -Dlibidn2=true \
    -Dlibiptc=false \
    -Dlocaled=false \
    -Dlogind=false \
    -Dlz4=false \
    -Dmachined=false \
    -Dmachined=true \
    -Dman=false \
    -Dmicrohttpd=false \
    -Dnetworkd=false \
    -Dnss-myhostname=true \
    -Dnss-mymachines=true \
    -Dnss-resolve=true \
    -Dnss-systemd=true \
    -Doomd=false \
    -Dpam=false \
    -Dpasswdqc=false \
    -Dportabled=false \
    -Dpstore=false \
    -Dpwquality=false \
    -Dqrencode=false \
    -Dquotacheck=false \
    -Drandomseed=false \
    -Dremote=false \
    -Drepart=false \
    -Dresolve=false \
    -Dresolve=true \
    -Drfkill=false \
    -Dseccomp=false \
    -Dselinux=false \
    -Dsysext=false \
    -Dsysusers=false \
    -Dtimedated=false \
    -Dtimesyncd=false \
    -Dtmpfiles=false \
    -Dtpm2=false \
    -Dtpm=false \
    -Dtranslations=false \
    -Dukify=false \
    -Duserdb=false \
    -Dutmp=false \
    -Dvconsole=false \
    -Dxdg-autostart=false \
    -Dxenctrl=false \
    -Dxkbcommon=false \
	-Ddbus=false \
     ..

Build script:
cd build

meson compile

Install script:
cd build

meson install --destdir DESTDIR
cp -Rv DESTDIR/usr/lib32/* /usr/lib32