summaryrefslogtreecommitdiffstats
path: root/remote/tools/systemd/systemd.build
diff options
context:
space:
mode:
authorJonathan Bauer2012-12-11 15:11:41 +0100
committerJonathan Bauer2012-12-11 15:11:41 +0100
commitd3bb9107163e622fe9f2702e1a6572746f149d36 (patch)
tree0763b6d740d7365808496055493577ebc4faad90 /remote/tools/systemd/systemd.build
parentREQUIRED_FILES can be path or filename, searching accordingly. Added base too... (diff)
downloadtm-scripts-d3bb9107163e622fe9f2702e1a6572746f149d36.tar.gz
tm-scripts-d3bb9107163e622fe9f2702e1a6572746f149d36.tar.xz
tm-scripts-d3bb9107163e622fe9f2702e1a6572746f149d36.zip
reworked setup-tools, generation of base dir structure of stage3.2 with tool named base
Diffstat (limited to 'remote/tools/systemd/systemd.build')
-rw-r--r--remote/tools/systemd/systemd.build42
1 files changed, 42 insertions, 0 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build
new file mode 100644
index 00000000..5b361472
--- /dev/null
+++ b/remote/tools/systemd/systemd.build
@@ -0,0 +1,42 @@
+#tool/distro specific functions for fetching, building and installing dependencies
+
+fetch_source () {
+ if [ ! -e .fetched_source ]; then
+ [ ! -d src ] && mkdir src
+ wget $URL
+ tar xJf $VERSION.tar.xz -C src/
+ rm $VERSION.tar.xz
+ touch .fetched_source
+ fi
+}
+
+install_dependencies() {
+ # quick fix for missing libkmod repo...
+ add-apt-repository --yes ppa:pitti/systemd
+ apt-get update --force-yes
+ apt-get install --force-yes $DEPS
+}
+
+build () {
+ if [ ! -e .built ]; then
+ cd src/$VERSION
+ ./configure --disable-manpages
+ make
+ [ ! -d $TOOL_DIR/$TOOL/build ] && mkdir -p $TOOL_DIR/$TOOL/build
+ DESTDIR=$TOOL_DIR/$TOOL/build make install
+ cd -
+ touch .built
+ fi
+}
+
+post_copy() {
+ #debug shell on tty9
+ cp $TOOL_DIR/$TOOL/data/debug-shell.service $INIT_DIR/usr/lib/systemd/system
+ ln -s ../debug-shell.service $INIT_DIR/usr/lib/systemd/system/sysinit.target.wants
+
+ # dont clear systemd log at startup
+ sed -i.bak "s/ExecStart=-\/sbin\/agetty %I 38400/ExecStart=-\/sbin\/agetty --noclear %I 38400/g" \
+ $INIT_DIR/usr/lib/systemd/system/getty@.service
+ sed -i.bak "s/TTYVTDisallocate=yes/TTYVTDisallocate=no/g" \
+ $INIT_DIR/usr/lib/systemd/system/getty@.service
+}