diff options
| -rw-r--r-- | readme.md | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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@: +<pre> +# 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 +</pre> + dmesg 998 ping 8.8.8.8 999 shutdown .h now |
