<commit_before>#
# no base recipe, full scratch
#

SUMMARY = "A System and service manager"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"

LICENSE = "GPLv2 & LGPLv2.1"
LIC_FILES_CHKSUM = " \
file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
"
PROVIDES = "udev"

inherit debian-package
PV = "215"
inherit pkgconfig autotools useradd

SRC_URI += "file://0001-Add-include-macro.h-to-mtd_probe.h.patch"

DEPENDS = "intltool-native \
           gperf-native \
           libcap \
           dbus \
           glib-2.0 \
           acl \
           xz-utils \
           libgcrypt \
           kmod \
           util-linux \
           ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} \
          "

# These options are almost same as CONFFLAGS in debian/rules.
# Other target specific CONFFLAGS in debian/rules are ignored.
DEBIAN_CONFOPTS = "--with-rootprefix=${base_prefix} \
                   --with-rootlibdir=${base_libdir} \
                   --with-firmware-path=/lib/firmware \
                   --with-ntp-servers="" \
                   --with-dns-servers="" \
                   --with-system-uid-max=999 \
                   --with-system-gid-max=999 \
                   --disable-coredump \
                   --disable-efi \
                   --disable-myhostname \
                   --disable-vconsole \
                   --disable-microhttpd \
                   --disable-sysusers \
                   --disable-silent-rules \
                  "

# --enable-dependency-tracking:
#   avoid compile error "Cannot open src/*/org.freedesktop.*.policy"
# --disable-selinux: Disable selinux support
EXTRA_OECONF = "${DEBIAN_CONFOPTS} \
                ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
                --disable-manpages \
                --disable-gtk-doc-html \
                --disable-selinux \
                --enable-dependency-tracking \
                --enable-compat-libs \
               "

do_configure_prepend() {
	export KMOD="${base_bindir}/kmod"
}

# append debian extra files and remove unneeded files
do_install_append() {
	# systemd package: setup base_bindir<commit_msg>systemd: Temporarily disable libcryptsetup<commit_after>#
# no base recipe, full scratch
#

SUMMARY = "A System and service manager"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"

LICENSE = "GPLv2 & LGPLv2.1"
LIC_FILES_CHKSUM = " \
file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
"
PROVIDES = "udev"

inherit debian-package
PV = "215"
PR = "r1"

inherit pkgconfig autotools useradd

SRC_URI += "file://0001-Add-include-macro.h-to-mtd_probe.h.patch"

DEPENDS = "intltool-native \
           gperf-native \
           libcap \
           dbus \
           glib-2.0 \
           acl \
           xz-utils \
           libgcrypt \
           kmod \
           util-linux \
           ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} \
          "

# These options are almost same as CONFFLAGS in debian/rules.
# Other target specific CONFFLAGS in debian/rules are ignored.
DEBIAN_CONFOPTS = "--with-rootprefix=${base_prefix} \
                   --with-rootlibdir=${base_libdir} \
                   --with-firmware-path=/lib/firmware \
                   --with-ntp-servers="" \
                   --with-dns-servers="" \
                   --with-system-uid-max=999 \
                   --with-system-gid-max=999 \
                   --disable-coredump \
                   --disable-efi \
                   --disable-myhostname \
                   --disable-vconsole \
                   --disable-microhttpd \
                   --disable-sysusers \
                   --disable-silent-rules \
                  "

# --enable-dependency-tracking:
#   avoid compile error "Cannot open src/*/org.freedesktop.*.policy"
# --disable-selinux: Disable selinux support
EXTRA_OECONF = "${DEBIAN_CONFOPTS} \
                ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
                --disable-manpages \
                --disable-gtk-doc-html \
                --disable-selinux \
                --enable-dependency-tracking \
                --enable-compat-libs \
                --disable-libcryptsetup \
               "

do_configure_prepend() {
	export KMOD="${base_bindir}/kmod"
}

# append debian extra files and remove unneeded files
do_install_append() {
	# systemd package: setup base_bindir
{'fraction_non_alphanumeric': 0.12859633827375763, 'fraction_numerical': 0.02898866608544028, 'mean_word_length': 1.6495381062355658, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3856777', 'n_tokens_mistral': 1592, 'n_tokens_neox': 1436, 'n_words': 243}