diff options
Diffstat (limited to 'remote/modules/sssd/module.build')
| -rw-r--r-- | remote/modules/sssd/module.build | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/remote/modules/sssd/module.build b/remote/modules/sssd/module.build new file mode 100644 index 00000000..dcf18176 --- /dev/null +++ b/remote/modules/sssd/module.build @@ -0,0 +1,29 @@ +fetch_source() { + : +} + +build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + + local SSSD_PATH="$(which sssd)" + [ -z "$SSSD_PATH" ] && perror "'sssd' not found on this system. Should have been installed! Something is wrong..." + + # Build nslcd service file + mkdir -p "${MODULE_BUILD_DIR}/etc/systemd/system" + sed "s,%PATH%,${SSSD_PATH},g" "${MODULE_DIR}/templates/sssd-systemd.service" > "${MODULE_BUILD_DIR}/etc/systemd/system/sssd.service" || perror "Could not fill sssd.service template" + + pinfo "PAM: $SYS_PAM_MODULES_PATH" + + return 0 +} + +post_copy() { + mkdir -p "${TARGET_BUILD_DIR}/var/log/sssd" + for DIR in mc pubconf/krb5.include.d db pipes/private; do + mkdir -p "${TARGET_BUILD_DIR}/var/lib/sss/$DIR" + done +} |
