summaryrefslogtreecommitdiffstats
path: root/remote/modules/policykit-src
diff options
context:
space:
mode:
authorMichael Neves2013-03-20 15:22:51 +0100
committersr2013-04-12 19:11:30 +0200
commit97b4ba82596ae5484079483afeaba7986958ecab (patch)
treef85896acc369038481d6a3338561258a6683ea69 /remote/modules/policykit-src
parentuse default location for aufs.ko (diff)
downloadtm-scripts-97b4ba82596ae5484079483afeaba7986958ecab.tar.gz
tm-scripts-97b4ba82596ae5484079483afeaba7986958ecab.tar.xz
tm-scripts-97b4ba82596ae5484079483afeaba7986958ecab.zip
KERNEL_VERSION from system.inc
gitignore and calc_size in fileutil calculates the build size of a module fix generate_target argument parsing add xfs to rootfs-stage31.conf added server sync option -s - Fix sshd module failing to set permissions on sshd config - Add all required packages for openSUSE to xorg module - Softlink sh to bash in rootfs-stage32, as some scripts might fail otherwise Thanks hwinfo but we don't need you anymore Added size log fix list_packet_files exiting loop when a packet wasnt installed remove flag checks, now done in setup_target check if kernel module is already built-in
Diffstat (limited to 'remote/modules/policykit-src')
-rw-r--r--remote/modules/policykit-src/policykit.build48
1 files changed, 22 insertions, 26 deletions
diff --git a/remote/modules/policykit-src/policykit.build b/remote/modules/policykit-src/policykit.build
index 811d9b0c..26d1e27a 100644
--- a/remote/modules/policykit-src/policykit.build
+++ b/remote/modules/policykit-src/policykit.build
@@ -2,35 +2,31 @@
fetch_source () {
- [ ! -e .fetched_source ] && download_untar "$URL" "src/"
- touch .fetched_source
+ download_untar "$URL" "src/"
}
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
+ 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 -
}
post_copy() {