summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd/systemd.build
diff options
context:
space:
mode:
authorSimon Rettberg2013-05-23 20:14:53 +0200
committerSimon Rettberg2013-05-23 20:14:53 +0200
commitb9404f13ca882e381a3c1b0797b761ce7638e273 (patch)
treee3211ccd917cd7790c812e319039048189b9e773 /remote/modules/systemd/systemd.build
parentfix PATH for debug shell (diff)
downloadtm-scripts-b9404f13ca882e381a3c1b0797b761ce7638e273.tar.gz
tm-scripts-b9404f13ca882e381a3c1b0797b761ce7638e273.tar.xz
tm-scripts-b9404f13ca882e381a3c1b0797b761ce7638e273.zip
Remove ldap in initial nsswitch conf, will be added after udev started up
Update to systemd 204 Remove some systemd services that don't make sense in our setup Add own sysctl defaults
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() {