summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd.build
diff options
context:
space:
mode:
authorJonathan Bauer2013-05-23 20:17:15 +0200
committerJonathan Bauer2013-05-23 20:17:15 +0200
commit76169510bf5d37a2a7d6d60f40cd63503e25a5fe (patch)
tree5463664f1dc37f11da9275291af61f56bfd3dac4 /remote/modules/systemd/systemd.build
parentactivate nss-ldap lookups before login (diff)
parentMerge branch 'master' of simonslx:openslx-ng/tm-scripts (diff)
downloadtm-scripts-76169510bf5d37a2a7d6d60f40cd63503e25a5fe.tar.gz
tm-scripts-76169510bf5d37a2a7d6d60f40cd63503e25a5fe.tar.xz
tm-scripts-76169510bf5d37a2a7d6d60f40cd63503e25a5fe.zip
Merge branch 'master' of git:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/systemd/systemd.build')
-rw-r--r--remote/modules/systemd/systemd.build18
1 files changed, 13 insertions, 5 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build
index fb56f231..48bd68d1 100644
--- a/remote/modules/systemd/systemd.build
+++ b/remote/modules/systemd/systemd.build
@@ -1,27 +1,35 @@
#tool/distro specific functions for fetching, building and installing dependencies
fetch_source () {
- download_untar "$URL" "src/"
- download_untar "$LIBKMOD_URL" "src/"
+ download_untar "$REQUIRED_URL" "src/"
+ download_untar "$REQUIRED_LIBKMOD_URL" "src/"
}
build () {
#build libkmod
- cd "${MODULE_DIR}/src/$LIBKMOD_VERSION"
+ pinfo "Building libkmod"
+ cd "${MODULE_DIR}/src/$REQUIRED_LIBKMOD_VERSION"
./configure || perror "./configure kmod failed."
make || perror "kmod make failed."
make install || perror "kmod make install failed."
cd - &> /dev/null
#build systemd
- cd "${MODULE_DIR}/src/$VERSION"
+ pinfo "Building systemd"
+ cd "${MODULE_DIR}/src/$REQUIRED_VERSION"
pinfo "calling configure"
- ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no || perror "configure failed."
+ ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls --disable-microhttpd --disable-bootchart --disable-quotacheck --disable-logind --disable-hostnamed --disable-timedated --disable-localed --disable-coredump --disable-keymap --without-python || perror "configure failed."
pinfo "calling make"
make || perror "make failed."
pinfo "calling make install"
DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed."
cd - &> /dev/null
+ # Delete unneeded services
+ pinfo "Deleting unneeded services"
+ local SERVICE=
+ for SERVICE in $REQUIRED_DISABLED_SERVICES; do
+ find "${MODULE_BUILD_DIR}" -name "$SERVICE" -delete
+ done
}
post_copy() {