From a069ecafe76710cdc758f5c79a7c000bfe3a7e76 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Aug 2020 18:04:59 +0200 Subject: [systemd-distro] Get this module into working state, switch --- core/modules/polkit/module.build | 6 +----- core/modules/polkit/module.conf | 3 +-- core/modules/polkit/templates/dbus.service | 6 ------ core/modules/polkit/templates/systemd.service | 8 -------- 4 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 core/modules/polkit/templates/dbus.service delete mode 100644 core/modules/polkit/templates/systemd.service (limited to 'core/modules/polkit') diff --git a/core/modules/polkit/module.build b/core/modules/polkit/module.build index 634d9c87..b956f23c 100644 --- a/core/modules/polkit/module.build +++ b/core/modules/polkit/module.build @@ -11,11 +11,7 @@ build () { list_packet_files > "$COPYLIST" [ -n "$REQUIRED_DIR_STRUCT" ] && find $REQUIRED_DIR_STRUCT -type d >> "$COPYLIST" tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" - local POLPATH=$(find "$MODULE_BUILD_DIR" -name polkitd -executable | head -n 1) - POLPATH="/${POLPATH#$MODULE_BUILD_DIR}" - mkdir -p "$MODULE_BUILD_DIR/etc/systemd/system" "$MODULE_BUILD_DIR/usr/share/dbus-1/system-services" "$MODULE_BUILD_DIR/var/lib/polkit" - sed "s,%POLKITD%,${POLPATH},g" "${MODULE_DIR}/templates/systemd.service" > "$MODULE_BUILD_DIR/etc/systemd/system/polkit.service" || perror "Could not generate polkit.service for systemd" - sed "s,%POLKITD%,${POLPATH},g" "${MODULE_DIR}/templates/dbus.service" > "$MODULE_BUILD_DIR/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service" || perror "Could not generate polkit.service for dbus" + mkdir -p "$MODULE_BUILD_DIR/var/lib/polkit" } post_copy() { diff --git a/core/modules/polkit/module.conf b/core/modules/polkit/module.conf index b86e1a5c..7a4293cd 100644 --- a/core/modules/polkit/module.conf +++ b/core/modules/polkit/module.conf @@ -7,7 +7,6 @@ REQUIRED_DIRECTORIES=" " REQUIRED_FILES=" /usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service - /etc/systemd/system/polkit.service + /lib/systemd/system/polkit.service " -#REQUIRED_LIBRARIES="libmozjs185" diff --git a/core/modules/polkit/templates/dbus.service b/core/modules/polkit/templates/dbus.service deleted file mode 100644 index c9ee6c8b..00000000 --- a/core/modules/polkit/templates/dbus.service +++ /dev/null @@ -1,6 +0,0 @@ -[D-BUS Service] -Name=org.freedesktop.PolicyKit1 -Exec=%POLKITD% --no-debug -User=root -SystemdService=polkit.service - diff --git a/core/modules/polkit/templates/systemd.service b/core/modules/polkit/templates/systemd.service deleted file mode 100644 index 747fd7eb..00000000 --- a/core/modules/polkit/templates/systemd.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=the cancer that is called PolKit - -[Service] -Type=dbus -BusName=org.freedesktop.PolicyKit1 -ExecStart=%POLKITD% --no-debug - -- cgit v1.2.3-55-g7522