diff options
| author | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
| commit | 765e0502c315d250ab8f671bc726fef6f63a026a (patch) | |
| tree | e5624ec583c98fd3202caefad9b37289d9cad348 /remote/modules/policykit | |
| parent | base -> base32 and started new base31 (diff) | |
| download | tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.gz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.xz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.zip | |
restructuring...
Diffstat (limited to 'remote/modules/policykit')
| -rw-r--r-- | remote/modules/policykit/data/lib/systemd/system/polkitd.service | 7 | ||||
| -rw-r--r-- | remote/modules/policykit/policykit.build | 25 | ||||
| -rw-r--r-- | remote/modules/policykit/policykit.conf | 11 |
3 files changed, 43 insertions, 0 deletions
diff --git a/remote/modules/policykit/data/lib/systemd/system/polkitd.service b/remote/modules/policykit/data/lib/systemd/system/polkitd.service new file mode 100644 index 00000000..d3f192d1 --- /dev/null +++ b/remote/modules/policykit/data/lib/systemd/system/polkitd.service @@ -0,0 +1,7 @@ +[Unit] +Description=Authenticate and Authorize Users to Run Privileged Tasks + +[Service] +Type=dbus +BusName=org.freedesktop.PolicyKit1 +ExecStart=/usr/lib/policykit-1/polkitd --no-debug diff --git a/remote/modules/policykit/policykit.build b/remote/modules/policykit/policykit.build new file mode 100644 index 00000000..6a03b81c --- /dev/null +++ b/remote/modules/policykit/policykit.build @@ -0,0 +1,25 @@ +#tool/distro specific functions for fetching, building and installing dependencies + + +fetch_source () { + pinfo "Extracting from running system..." +} + +build () { + COPYLIST="list_dpkg_output" + [ -e "${COPYLIST}" ] && rm "${COPYLIST}" + + list_packet_files >> "${COPYLIST}" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" +} + +post_copy() { + + # copy static policykit files to stage3.2 + cp -r ${MODULE_BUILD_DIR}/data/* ${TARGET_BUILD_DIR} + + #Add Polkit User/Group/Shadow to Stage3.2 + pinfo "Adding polkitd user to target system..." + add_user "polkitd" +} + diff --git a/remote/modules/policykit/policykit.conf b/remote/modules/policykit/policykit.conf new file mode 100644 index 00000000..3dcfd8d9 --- /dev/null +++ b/remote/modules/policykit/policykit.conf @@ -0,0 +1,11 @@ +REQUIRED_DEPENDENCIES="libmozjs185-1.0" +REQUIRED_PACKAGES="libmozjs185-1.0 policykit-1" +REQUIRED_BINARIES="" +REQUIRED_DIRECTORIES=" /etc/pam.d /etc/dbus-1 /etc/polkit-1 + /usr/bin + /usr/share/dbus-1 + /usr/share/polkit-1 + /usr/lib/policykit-1 + /usr/lib/${ARCH_TRIPLET}/polkit-1" +REQUIRED_FILES="" +REQUIRED_LIBRARIES="libmozjs185" |
