/usr/share/doc/HOWTO/ja-html/KickStart-HOWTO-14.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>RedHat Linux KickStart HOWTO: ÉÕÏ¿ B - Æȼ«¤Î RPM ¥Ñ¥Ã¥±¡¼¥¸¤Îºî¤êÊý</TITLE>
<LINK HREF="KickStart-HOWTO-15.html" REL=next>
<LINK HREF="KickStart-HOWTO-13.html" REL=previous>
<LINK HREF="KickStart-HOWTO.html#toc14" REL=contents>
</HEAD>
<BODY>
<A HREF="KickStart-HOWTO-15.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO-13.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO.html#toc14">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s14">14. ÉÕÏ¿ B - Æȼ«¤Î RPM ¥Ñ¥Ã¥±¡¼¥¸¤Îºî¤êÊý</A></H2>
<P>
<P>RPM ¥Ñ¥Ã¥±¡¼¥¸¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï´û¤ËÈó¾ï¤Ë¾Ü¤·¤¯Ê¸½ñ²½¤µ¤ì¤Æ¤¤¤Þ¤¹¡¥ÆäË
Ed Bailey »á¤Î¡Ö<EM>Maximum RPM</EM>¡×¤È¤¤¤¦½ñÀÒ¤¬¾Ü¤·¤¤¤Ç¤¹¡¥¤³¤ì¤Ï
<A HREF="http://www.rpm.org/">RPM WWW site</A> ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤¹
¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¤·¡¤½ñŹ¤Ç¹ØÆþ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹! °Ê²¼¤ÏµÞ¤¤¤Ç¤¤¤ë¿Í¤¬
´Êñ¤ËÍøÍѤǤ¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î¥Ò¥ó¥È¤Ç¤¹¡¥
<P>
<P>RPM ¥Ñ¥Ã¥±¡¼¥¸¤Ï <EM>spec</EM> ¥Õ¥¡¥¤¥ë¤«¤éºî¤é¤ì¤Þ¤¹¡¥¤³¤Î¥Õ¥¡¥¤¥ë
(KickStart ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë»÷¤¿·Á¼°)¤Ï¡¤¥Ñ¥Ã¥±¡¼¥¸¤ò¹½ÃÛ¤¹¤ë¤¿¤á¤ËɬÍ×
¤Ê¼ê½ç¤Î¥ì¥·¥Ô¤«¤é¹½À®¤µ¤ì¤Æ¤¤¤Þ¤¹¡¥¤â¤·¤«¤¹¤ë¤ÈÊ£¿ô¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤Ë
Âбþ¤¹¤ë¤³¤È¤¢¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¤¥Ñ¥Ã¥±¡¼¥¸¤Ï¥½¡¼¥¹¤«¤é¹½ÃÛ¤¹¤ë¤³¤È¤¬
´üÂÔ¤µ¤ì¤Æ¤¤¤Þ¤¹¡¥¤Þ¤¿¡¤¥³¥ó¥Ñ¥¤¥ë¤ÎÁ°¤Ë¤Ï¥Ñ¥Ã¥Á¤òŬÍѤ¹¤ëɬÍפ¬¤¢¤ë¤«
¤â¤·¤ì¤Þ¤»¤ó¡¥°ìÅÙ¹½Ãۤȥ¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤¦¤È¡¤¥Ñ¥Ã¥±¡¼¥¸¤Ë´ØÏ¢¤¹¤ë¤â¤Î
¤È¤·¤Æ»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤È¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¥Ð¥¤¥Ê¥ê¤Î RPM ¥Õ¥¡¥¤¥ë¤¬À¸À®
¤µ¤ì¤Þ¤¹¡¥³Ð¤¨¤Æ¤ª¤¯¤Ù¤½ÅÍפÊÅÀ¤È¤·¤Æ¤Ï¡¤RPM ¤Ï»ØÄꤵ¤ì¤¿¥Ñ¥Ã¥±¡¼¥¸¤Ë
´ØÏ¢¤¹¤ë¥Õ¥¡¥¤¥ë¤È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ä¤¤¤Æ²¿¤âÃΤé¤Ê¤¤¤Î¤Ç¡¤¤³¤ì¤ò»ØÄꤹ¤ë
ɬÍפ¬¤¢¤ê¤Þ¤¹¡¥
<P>
<A HREF="http://squid.nlanr.net/">Squid WWW ¥¥ã¥Ã¥·¥å¥µ¡¼¥Ð</A>
¤ÎÆȼ« RPM ÍѤΥµ¥ó¥×¥ë spec ¥Õ¥¡¥¤¥ë¤ÎÎã¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
Summary: Squid Web Cache server
Name: squid
Version: 1.NOVM.22
Release: 1
Copyright: GPL/Harvest
Group: Networking/Daemons
Source: squid-1.NOVM.22-src.tar.gz
Patch: retry-1.NOVM.20.patch
%description
This is just a first attempt to package up the Squid Web Cache for easy
installation on our RedHat Linux servers
%prep
%setup
%build
configure --prefix=/usr/squid
perl -spi -e 's!#( -DALLOW_HOSTNAME_UNDERSCORES)!$1!' src/Makefile
make
%install
make install
%files
/usr/squid
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤Î RPM ¤Î¹½ÃÛÊýË¡¤ò¼¨¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
% mkdir -p SOURCES BUILD SRPMS RPMS/i386
% cp ~/squid-1.NOVM.22-src.tar.gz SOURCES
% cp ~/retry-1.NOVM.20.patch SOURCES
% rpm -ba squid-1.NOVM.22+retry-1.spec
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>rpm ¥³¥Þ¥ó¥É¤Ï <EM>BUILD</EM> ¥Ç¥£¥ì¥¯¥È¥ê¤Î²¼¤Ë¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤ò¼«Æ°
Ū¤ËÀ¸À®¤·¤Þ¤¹¡¥¤½¤·¤Æ rpm ¥³¥Þ¥ó¥É¤Ï¡¤¤³¤Î¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥½¡¼¥¹¥³¡¼
¥É¤òŸ³«¤·¡¤¥Ñ¥Ã¥Á¤òŬÍѤ·¤Þ¤¹(¥Ñ¥Ã¥Á¤ÎÅö¤ÆÊý¤Ë´Ø¤¹¤ë¥ª¥×¥·¥ç¥ó¤Ï¤¿¤¯
¤µ¤ó¤¢¤ê¤Þ¤¹¡¥¾Ü¤·¤¯¤ÏÀè¤Ëµó¤²¤¿½ñÀÒ¤ÇÄ´¤Ù¤Æ¤¯¤À¤µ¤¤)¡¥¤³¤³¤Ç
rpm ¤Ï <CODE>configure</CODE> ¤È <CODE>make</CODE> ¤ò¼Â¹Ô¤·¤Æ¼«Æ°Åª¤Ë¥Ñ¥Ã¥±¡¼
¥¸¤ò¹½ÃÛ¤·¡¤<CODE>make install</CODE> ¤ò»È¤Ã¤Æ¤³¤ì¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡¥¤½
¤·¤Æ <EM>/usr/squid</EM> ¤Î²¼¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò¼è¤ê¤Þ
¤¹¡¥Squid ¤Î¥Ð¥¤¥Ê¥ê RPM ¤È¤Ê¤ë¤Î¤Ï¡¤¤³¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Ç¤¹¡¥
<P>
<P>Ÿ³«¡¤¹½ÃÛ¡¤¥¤¥ó¥¹¥È¡¼¥ë¤Î½èÍý¤Ë¤ÏǤ°Õ¤Î¥·¥§¥ë¥³¥Þ¥ó¥É¤òÆþ¤ì¤ë¤³¤È¤¬¤Ç
¤¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥Î㤨¤Ð¡¤Squid ¤Î¥³¥ó¥Ñ¥¤¥ë»þ¤Î¥Ñ¥é¥á¡¼¥¿¤ò¾¯
¤·ÊѤ¨¤ë¤¿¤á¤Ë <CODE>perl</CODE> ¤ò¸Æ¤Ó½Ð¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡¥
<P>
<P>ºÇ½ªÅª¤Ê¥Ð¥¤¥Ê¥ê RPM ¥Ñ¥Ã¥±¡¼¥¸¤¬ <EM>RPMS</EM> ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë¥×¥é¥Ã
¥È¥Õ¥©¡¼¥à¸ÇͤΥµ¥Ö¥Ç¥£¥ì¥¯¥È¥ê <EM>i386</EM> ¤Ë»Ä¤ê¤Þ¤¹¡¥º£²ó¤ÎÎã¤Ç
¤Ï¥Ñ¥Ã¥±¡¼¥¸¤Ï <EM>squid-1.NOVM.22-1.i386.rpm</EM> ¤È¤¤¤¦Ì¾Á°¤Ë¤Ê¤ê¤Þ
¤¹¡¥¥Õ¥¡¥¤¥ë̾¤Ï spec ¥Õ¥¡¥¤¥ë¤Î¥Ñ¥é¥á¡¼¥¿¤ò·Ò¤²¤Æºî¤ëÅÀ¤ËÃí°Õ¤·¤Æ¤¯¤À
¤µ¤¤¡¥¤¹¤Ê¤ï¤Á <CODE>Name</CODE>, <CODE>Version</CODE>, <CODE>Release</CODE>, ³ºÅö
¤¹¤ë¥Ï¡¼¥É¥¦¥§¥¢¥×¥é¥Ã¥È¥Õ¥©¡¼¥à(º£²ó¤ÎÎã¤Ç¤Ï <EM>i386</EM>)¤Ç¤¹¡¥Æȼ«
¤Î RPM ¤òºî¤ëºÝ¤Ë¤Ï¡¤Ä¹¤¹¤®¤Æ»È¤¤¤â¤Î¤Ë¤Ê¤é¤Ê¤¤Ì¾Á°¤òÉÕ¤±¤Æ¤·¤Þ¤ï¤Ê¤¤
¤è¤¦¤Ë¡¤¤³¤ÎÅÀ¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡¥
<P>
<P>RPM ¥Ñ¥Ã¥±¡¼¥¸¤ò¹½ÃÛ¤¹¤ëºÝ¤Ë¤Ï¥Ñ¥Ã¥±¡¼¥¸Á´ÂΤòºÆ¹½ÃÛ¤¹¤ëɬÍפϤʤ¤¤³¤È
¤âÃΤäƤª¤¤¤Æ»¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¡¥ÁàºîÎã¤ò°Ê²¼¤Ë¼¨¤·¤Þ¤¹:
<P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
Summary: Linux 2.0.36 kernel + filehandle patch + serial console patch
Name: linux
Version: 2.0.36+filehandle+serial_console
Release: 1
Copyright: GPL
Group: Base/Kernel
Source: linux-2.0.36+filehandle+serial_console.tar.gz
%description
This is just a first attempt to package up the Linux kernel with patches
for installation on our RedHat Linux servers
%prep
echo
%setup
echo
%build
echo
%install
echo
%post
/sbin/lilo
%files
/lib/modules/2.0.36
/boot/vmlinuz
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>¤³¤ÎÎã¤Ïñ¤Ë¡¤<EM>/boot/vmlinuz</EM> ¥Õ¥¡¥¤¥ë¤È
<EM>/lib/modules/2.0.36</EM> ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÆâÍƤ˴ð¤Å¤¤¤Æ RPM ¥Ñ¥Ã¥±¡¼
¥¸¤òºîÀ®¤·¡¤ÂоݤΥޥ·¥ó¤Ë¥Ñ¥Ã¥±¡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ò¹Ô¤Ã¤¿¸å¤Ë
<EM>/sbin/lilo</EM> ¤ò¼Â¹Ô¤¹¤ë¤À¤±¤Ç¤¹¡¥¤³¤ì¤è¤ê¤â¤¦¤Þ¤¤ spec ¥Õ¥¡¥¤¥ë
¤Î½ñ¤Êý¤¬¤¢¤ì¤ÐÉ®¼Ô¤Ë¤ªÃΤ餻¤¯¤À¤µ¤¤¡¥
<P>
<P>
<HR>
<A HREF="KickStart-HOWTO-15.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO-13.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="KickStart-HOWTO.html#toc14">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|