summaryrefslogtreecommitdiffstats
path: root/core/modules/polkit/module.build
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/polkit/module.build')
-rw-r--r--core/modules/polkit/module.build6
1 files changed, 1 insertions, 5 deletions
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() {