diff options
| author | root | 2013-03-19 15:28:56 +0100 |
|---|---|---|
| committer | root | 2013-03-19 15:28:56 +0100 |
| commit | cc112cd5c1b75403fa99357f981a5471784f5ab4 (patch) | |
| tree | c61196354a0112720b0181ae2b0cd9fb1736605e /remote/modules/policykit-src | |
| parent | openSUSE non-interactive zypper (diff) | |
| parent | binutil: add libs to blacklist, speeds up by a LOT (thanks michi:)) (diff) | |
| download | tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.gz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.tar.xz tm-scripts-cc112cd5c1b75403fa99357f981a5471784f5ab4.zip | |
Merge branch 'master' of ssh://openslx/openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/policykit-src')
| -rw-r--r-- | remote/modules/policykit-src/policykit.build | 42 | ||||
| -rw-r--r-- | remote/modules/policykit-src/policykit.conf | 10 |
2 files changed, 52 insertions, 0 deletions
diff --git a/remote/modules/policykit-src/policykit.build b/remote/modules/policykit-src/policykit.build new file mode 100644 index 00000000..811d9b0c --- /dev/null +++ b/remote/modules/policykit-src/policykit.build @@ -0,0 +1,42 @@ +#tool/distro specific functions for fetching, building and installing dependencies + + +fetch_source () { + [ ! -e .fetched_source ] && download_untar "$URL" "src/" + touch .fetched_source +} + +build () { + if [ ! -e .built ]; then + cd src/$VERSION + + [ ! -d "${MODULES_DIR}/systemd/build" ] && perror "systemd build directory not found. Build it first." + SYSTEMD_BUILD_DIR="${MODULES_DIR}/systemd/build" + pinfo "configuring..." + LIBSYSTEMD_LOGIN_LIBS="-L${SYSTEMD_BUILD_DIR}/usr/lib/" \ + LIBSYSTEMD_LOGIN_CFLAGS="-I${SYSTEMD_BUILD_DIR}/usr/include -I${SYSTEMD_BUILD_DIR}/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 "${MODULE_BUILD_DIR}" ] && mkdir -p "${MODULE_BUILD_DIR}" + pinfo "installing to ${MODULE_BUILD_DIR}..." + DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed..." + + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + + 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/modules/policykit-src/policykit.conf b/remote/modules/policykit-src/policykit.conf new file mode 100644 index 00000000..73b04015 --- /dev/null +++ b/remote/modules/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" + |
