diff options
| author | Michael Neves | 2013-03-13 17:09:02 +0100 |
|---|---|---|
| committer | Michael Neves | 2013-03-13 17:09:02 +0100 |
| commit | 9b1fed5eb8615615f9fc1f69f724eac560db507e (patch) | |
| tree | a70839927d2dcaa045d6d0599552aa8637670a3c /remote/tools | |
| parent | move to tools again (diff) | |
| download | tm-scripts-9b1fed5eb8615615f9fc1f69f724eac560db507e.tar.gz tm-scripts-9b1fed5eb8615615f9fc1f69f724eac560db507e.tar.xz tm-scripts-9b1fed5eb8615615f9fc1f69f724eac560db507e.zip | |
move to tools again
Diffstat (limited to 'remote/tools')
| -rw-r--r-- | remote/tools/policykit-src/policykit.build | 44 | ||||
| -rw-r--r-- | remote/tools/policykit-src/policykit.conf | 10 |
2 files changed, 54 insertions, 0 deletions
diff --git a/remote/tools/policykit-src/policykit.build b/remote/tools/policykit-src/policykit.build new file mode 100644 index 00000000..72d7f246 --- /dev/null +++ b/remote/tools/policykit-src/policykit.build @@ -0,0 +1,44 @@ +#tool/distro specific functions for fetching, building and installing dependencies + + +fetch_source () { + [ ! -e .fetched_source ] && download_untar "$URL" "src/" + touch .fetched_source +} + +build () { + BUILDDIR=$TOOL_DIR/$TOOL/build + + if [ ! -e .built ]; then + cd src/$VERSION + + [ ! -d "${TOOL_DIR}/systemd/build" ] && perror "systemd build directory not found. Build it first." + pinfo "configuring..." + LIBSYSTEMD_LOGIN_LIBS="-L${TOOL_DIR}/systemd/build/usr/lib/" \ + LIBSYSTEMD_LOGIN_CFLAGS="-I${TOOL_DIR}/systemd/build/usr/include -I${TOOL_DIR}/systemd/build/usr/include/systemd -lsystemd-login -lsystemd-daemon" \ + ./configure --enable-libsystemd-login=yes --with-systemdsystemunitdir=/etc/systemd/system -prefix="/" --datarootdir="/usr/share" --enable-man-pages=no --enable-gtk-doc-html=no --enable-examples=no --enable-static=no + pinfo "calling make..." + make || perror "make failed." + [ ! -d "$BUILDDIR" ] && mkdir -p "$BUILDDIR" + pinfo "installing to $BUILDDIR..." + DESTDIR="$BUILDDIR" make install || perror "make install failed..." + + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "$BUILDDIR" + + cd - + touch .built + + fi +} + +post_copy() { + + #Add Polkit User/Group/Shadow to Stage3.2 + pinfo "Adding polkitd user to target system..." + add_user "polkitd" +} + diff --git a/remote/tools/policykit-src/policykit.conf b/remote/tools/policykit-src/policykit.conf new file mode 100644 index 00000000..73b04015 --- /dev/null +++ b/remote/tools/policykit-src/policykit.conf @@ -0,0 +1,10 @@ +VERSION=polkit-0.110 +URL=http://www.freedesktop.org/software/polkit/releases/polkit-0.110.tar.gz +REQUIRED_DEPENDENCIES="libmozjs185-1.0" +REQUIRED_PACKAGES="libmozjs185-1.0" +REQUIRED_BINARIES="" +REQUIRED_DIRECTORIES="/bin /etc /lib /usr/share/dbus-1 /usr/share/polkit-1" +REQUIRED_FILES="" +REQUIRED_LIBRARIES="libmozjs185" +REQUIRED_MODULES="systemd" + |
