diff options
author | Michael Neves | 2013-03-13 17:01:38 +0100 |
---|---|---|
committer | Michael Neves | 2013-03-13 17:01:38 +0100 |
commit | 5d66621d5f183c62bbfe222112bcd169683788ea (patch) | |
tree | 8fc63e7c8998b326ecb5c130f6b1147794b9c579 /remote/tools/policykit/policykit.build | |
parent | add xterm to base for kdm failsafe (diff) | |
download | tm-scripts-5d66621d5f183c62bbfe222112bcd169683788ea.tar.gz tm-scripts-5d66621d5f183c62bbfe222112bcd169683788ea.tar.xz tm-scripts-5d66621d5f183c62bbfe222112bcd169683788ea.zip |
new policykit extracted from system
Diffstat (limited to 'remote/tools/policykit/policykit.build')
-rw-r--r-- | remote/tools/policykit/policykit.build | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/remote/tools/policykit/policykit.build b/remote/tools/policykit/policykit.build index 72d7f246..08f89290 100644 --- a/remote/tools/policykit/policykit.build +++ b/remote/tools/policykit/policykit.build @@ -2,37 +2,16 @@ fetch_source () { - [ ! -e .fetched_source ] && download_untar "$URL" "src/" - touch .fetched_source + pinfo "Extracting from running system..." } build () { - BUILDDIR=$TOOL_DIR/$TOOL/build + BUILDDIR="${TOOL_DIR}/${TOOL}/build" + COPYLIST="list_dpkg_output" + [ -e "${COPYLIST}" ] && rm "${COPYLIST}" - 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 + list_packet_files >> "${COPYLIST}" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${BUILDDIR}" } post_copy() { |