Here is a page from LFS profile I created. It might help you modify the other pages. I'll put up everything shortly after I find a file host that doesn't mind hot linking.
coreutils.xml1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE alfs SYSTEM "../DTD/ALFS.dtd" 3 [ 4 <!ENTITY % general_entities SYSTEM "../config/general.ent"> 5 <!ENTITY % package_entities SYSTEM "../config/package.ent"> 6 7 %general_entities; 8 %package_entities; 9 ]> 10 <alfs> 11 <package name="coreutils" version="&coreutils-version;"> 12 <stage name="Adding the Package User"> 13 <execute command="add_package_user"> 14 <param>&coreutils-version;</param> 15 <param>coreutils</param> 16 <param>10001</param> 17 <param>19999</param> 18 <param>coreutils</param> 19 <param>10001</param> 20 <param>19999</param> 21 </execute> 22 </stage> 23 <stage name="Unpacking"> 24 <stageinfo> 25 <user>coreutils</user> 26 </stageinfo> 27 <unpack> 28 <digest>&coreutils-md5;</digest> 29 <archive>&packages_dir;/&coreutils-package;</archive> 30 <destination>&package_home;/coreutils</destination> 31 </unpack> 32 </stage> 33 <stage name="Patching"> 34 <stageinfo> 35 <user>coreutils</user> 36 <base>&package_home;/coreutils/&coreutils-directory;</base> 37 </stageinfo> 38 <patch> 39 <param>-N</param> 40 <param>-p1</param> 41 <param>-i &packages_dir;/&coreutils-uname-patch;</param> 42 </patch> 43 <patch> 44 <param>-N</param> 45 <param>-p1</param> 46 <param>-i &packages_dir;/&coreutils-dupes-patch;</param> 47 </patch> 48 </stage> 49 <stage name="Configure"> 50 <stageinfo> 51 <user>coreutils</user> 52 <base>&package_home;/coreutils/&coreutils-directory;</base> 53 </stageinfo> 54 <configure> 55 <prefix>DEFAULT_POSIX2_VERSION=199209</prefix> 56 <param>--prefix=/usr</param> 57 </configure> 58 </stage> 59 <stage name="Compile"> 60 <stageinfo> 61 <user>coreutils</user> 62 <base>&package_home;/coreutils/&coreutils-directory;</base> 63 </stageinfo> 64 <make> 65 <param>&jlevel;</param> 66 </make> 67 </stage> 68 <stage name="Test"> 69 <stageinfo> 70 <base>&package_home;/coreutils/&coreutils-directory;</base> 71 </stageinfo> 72 <textdump mode="append"> 73 <file>/etc/group</file> 74 <content> 75 =dummy1:x:1000 76 =dummy2:x:1001:dummy 77 </content> 78 </textdump> 79 <!--textdump mode="append"> 80 <file>/etc/passwd</file> 81 <content> 82 =dummy:x:1000:1000:::/bin/bash 83 </content> 84 </textdump--> 85 <make> 86 <param>NON_ROOT_USERNAME=coreutils</param> 87 <param>check-root</param> 88 </make> 89 <execute command="src/su"> 90 <param>coreutils</param> 91 <param>-c "make RUN_EXPENSIVE_TESTS=yes check"</param> 92 </execute> 93 <execute command="sed"> 94 <param>-i.bak</param> 95 <param>'/dummy/d'</param> 96 <param>/etc/passwd</param> 97 <param>/etc/group</param> 98 </execute> 99 </stage> 100 <stage name="Prepare"> 101 <remove>/bin/cat</remove> 102 <remove>/bin/pwd</remove> 103 <remove>/bin/stty</remove> 104 </stage> 105 <stage name="Install"> 106 <stageinfo> 107 <user>coreutils</user> 108 <base>&package_home;/coreutils/&coreutils-directory;</base> 109 </stageinfo> 110 <make> 111 <param>install</param> 112 </make> 113 <move base="/usr/bin"> 114 <source>[</source> 115 <source>basename</source> 116 <source>cat</source> 117 <source>chgrp</source> 118 <source>chmod</source> 119 <source>chown</source> 120 <source>cp</source> 121 <source>dd</source> 122 <source>df</source> 123 <source>date</source> 124 <source>echo</source> 125 <source>false</source> 126 <source>head</source> 127 <source>hostname</source> 128 <source>install</source> 129 <source>ln</source> 130 <source>ls</source> 131 <source>mkdir</source> 132 <source>mknod</source> 133 <source>mv</source> 134 <source>pwd</source> 135 <source>rm</source> 136 <source>rmdir</source> 137 <source>sync</source> 138 <source>sleep</source> 139 <source>stty</source> 140 <source>test</source> 141 <source>touch</source> 142 <source>true</source> 143 <source>uname</source> 144 <destination>/bin</destination> 145 </move> 146 <move> 147 <source>/usr/bin/chroot</source> 148 <destination>/usr/sbin</destination> 149 </move> 150 <link> 151 <option>force</option> 152 <target>../../bin/install</target> 153 <name>/usr/bin</name> 154 </link> 155 <remove>/usr/share/man/man1/su.1</remove> 156 </stage> 157 <stage name="Cleanup"> 158 <remove>&package_home;/coreutils/&coreutils-directory;</remove> 159 </stage> 160 </package> 161 </alfs>
No comments:
Post a Comment