From 3496458614950cf805d6da68f5e31eeb422db8a8 Mon Sep 17 00:00:00 2001 From: torben Date: Tue, 21 Apr 2015 11:16:29 +0200 Subject: Fix. --- readme.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/readme.md b/readme.md index eeacee4c..6bfa7db7 100644 --- a/readme.md +++ b/readme.md @@ -309,6 +309,33 @@ dnbd3-client -h 132.230.4.1 -i stage4/torben/test -r 1 NOTE: Disable NetworkManager to avoid reloading network on boot: systemctl disable NetworkManager +h2. CentOS7 @rpmbuild@ + +First "Set up RPM build env":http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment +Now in that user's home, e.g. @/home/builder@: +
+# install yumdownloader
+yum install yum-utils
+
+# download source in /home/builder/
+yumdownloader --source systemd
+
+# should have now have a file ~/systemd-208-20.el7_1.2.src.rpm
+# "install" it in ~/rpmbuild
+rpm -ivh systemd-208-20.el7_1.2.src.rpm
+
+# install building deps
+yum-builddep ~/rpmbuild/SPECS/systemd.spec
+
+# now check if everything is working, by running the simple %prep% phase
+# (unpacks source & applies patches)
+rpmbuild -bp ~/rpmbuild/SPECS/systemd.spec
+
+# if it worked, we can probably compile
+# this runs %prep% and %build%
+rpmbuild -bp ~/rpmbuild/SPECS/systemd.spec
+
+ dmesg 998 ping 8.8.8.8 999 shutdown .h now -- cgit v1.2.3-55-g7522