mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-13 02:49:52 +00:00
Rename systemd-units to network-scripts.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10279 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
01479e657a
commit
71e8c2baa7
2
Makefile
2
Makefile
@ -110,7 +110,7 @@ $(BASEDIR)/md5sums: stylesheets/wget-list.xsl chapter03/chapter03.xml packages.e
|
||||
$(Q)xsltproc --xinclude --nonet --output $(BASEDIR)/md5sums \
|
||||
stylesheets/md5sum.xsl chapter03/chapter03.xml
|
||||
$(Q)sed -i -e \
|
||||
"s/LFS-UNITS-MD5SUM/$(shell md5sum lfs-systemd-units*.tar.bz2 | cut -d' ' -f1)/" \
|
||||
"s/LFS-NETSCRIPTS-MD5SUM/$(shell md5sum lfs-network-scripts*.tar.bz2 | cut -d' ' -f1)/" \
|
||||
$(BASEDIR)/md5sums
|
||||
|
||||
dump-commands: validate
|
||||
|
@ -10,7 +10,7 @@ FILE=$1
|
||||
./make-aux-files.sh
|
||||
|
||||
# Bootscript data
|
||||
bootscripts=$(ls lfs-systemd-units*.bz2)
|
||||
bootscripts=$(ls lfs-network-scripts*.bz2)
|
||||
base=$(basename $bootscripts .tar.bz2)
|
||||
bootsize=$(ls -lk $bootscripts | cut -f5 -d" ")
|
||||
bootmd5=$(md5sum $bootscripts | cut -f1 -d" ")
|
||||
@ -24,7 +24,7 @@ bootinstallsize=$(du -sk $TMP_DIR | cut -f1)
|
||||
popd > /dev/null
|
||||
rm -rf $TMP_DIR
|
||||
|
||||
sed -i -e s/LFS-UNITS-SIZE/$bootsize/ \
|
||||
-e s/LFS-UNITS-INSTALL-KB/$bootinstallsize/ \
|
||||
-e s/LFS-UNITS-MD5SUM/$bootmd5/ $FILE
|
||||
sed -i -e s/LFS-NETSCRIPTS-SIZE/$bootsize/ \
|
||||
-e s/LFS-NETSCRIPTS-INSTALL-KB/$bootinstallsize/ \
|
||||
-e s/LFS-NETSCRIPTS-MD5SUM/$bootmd5/ $FILE
|
||||
|
||||
|
@ -357,11 +357,11 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>LFS-Systemd-Units (&lfs-systemd-units-version;) - <token>&lfs-systemd-units-size;</token>:</term>
|
||||
<term>LFS-Network-Scripts (&lfs-network-scripts-version;) - <token>&lfs-network-scripts-size;</token>:</term>
|
||||
<listitem>
|
||||
<para>Home page: <ulink url="&lfs-systemd-units-home;"/></para>
|
||||
<para>Download: <ulink url="&lfs-systemd-units-url;"/></para>
|
||||
<para>MD5 sum: <literal>&lfs-systemd-units-md5;</literal></para>
|
||||
<para>Home page: <ulink url="&lfs-network-scripts-home;"/></para>
|
||||
<para>Download: <ulink url="&lfs-network-scripts-url;"/></para>
|
||||
<para>MD5 sum: <literal>&lfs-network-scripts-md5;</literal></para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f lfs-systemd-units*.tar.bz2
|
||||
rm -f lfs-network-scripts*.tar.bz2
|
||||
|
||||
# Get base file name and move bootscripts directory to that name
|
||||
version=`grep "ENTITY lfs-systemd-units-version" packages.ent |cut -d'"' -f2`
|
||||
mv systemd-units lfs-systemd-units-$version
|
||||
version=`grep "ENTITY lfs-network-scripts-version" packages.ent |cut -d'"' -f2`
|
||||
mv network-scripts lfs-network-scripts-$version
|
||||
|
||||
# Create the tarball and clean up
|
||||
tar -cjf lfs-systemd-units-$version.tar.bz2 --exclude .svn lfs-systemd-units-$version
|
||||
mv lfs-systemd-units-$version systemd-units
|
||||
tar -cjf lfs-network-scripts-$version.tar.bz2 --exclude .svn lfs-network-scripts-$version
|
||||
mv lfs-network-scripts-$version network-scripts
|
||||
|
14
packages.ent
14
packages.ent
@ -350,13 +350,13 @@
|
||||
<!ENTITY less-ch6-du "3.6 MB">
|
||||
<!ENTITY less-ch6-sbu "less than 0.1 SBU">
|
||||
|
||||
<!ENTITY lfs-systemd-units-version "20130518"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-systemd-units-size "LFS-UNITS-SIZE KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-systemd-units-url "&downloads-root;lfs-systemd-units-&lfs-systemd-units-version;.tar.bz2">
|
||||
<!ENTITY lfs-systemd-units-md5 "LFS-UNITS-MD5SUM"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-systemd-units-home " ">
|
||||
<!ENTITY lfs-systemd-units-ch7-du "LFS-UNITS-INSTALL-KB KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-systemd-units-ch7-sbu "less than 0.1 SBU">
|
||||
<!ENTITY lfs-network-scripts-version "20130518"> <!-- Scripts depend on this format -->
|
||||
<!ENTITY lfs-network-scripts-size "LFS-NETSCRIPTS-SIZE KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-network-scripts-url "&downloads-root;lfs-network-scripts-&lfs-network-scripts-version;.tar.bz2">
|
||||
<!ENTITY lfs-network-scripts-md5 "LFS-NETSCRIPTS-MD5SUM"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-network-scripts-home " ">
|
||||
<!ENTITY lfs-network-scripts-ch7-du "LFS-NETSCRIPTS-INSTALL-KB KB"> <!-- Updated in Makefile -->
|
||||
<!ENTITY lfs-network-scripts-ch7-sbu "less than 0.1 SBU">
|
||||
|
||||
<!ENTITY libcap-version "2.22">
|
||||
<!ENTITY libcap-size "66 KB">
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Boot scripts
|
||||
for s in systemd-units/lfs/lib/services/* \
|
||||
systemd-units/lfs/sbin/* \
|
||||
systemd-units/lfs/tmpfiles/* \
|
||||
systemd-units/lfs/units/*
|
||||
for s in network-scripts/lfs/lib/services/* \
|
||||
network-scripts/lfs/sbin/* \
|
||||
network-scripts/lfs/tmpfiles/* \
|
||||
network-scripts/lfs/units/*
|
||||
do
|
||||
script=$(basename $s)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user