´ÙÀ½ ÀÌÀü Â÷·Ê

13. ºÎ·Ï B - ÀڽŸ¸ÀÇ RPM ¸¸µé±â

RPM ÆÐÅ°Áö Æ÷¸ËÀº ÀÌ¹Ì Ed Bailey°¡ ¾´ Maximum RPM¿¡ ¹®¼­È­°¡ Àß µÇ¾î ÀÖ´Ù. Maximum RPMÀº RPM WWW »çÀÌÆ®¿¡¼­ ´Ù¿î·Îµå ¹ÞÀ» ¼ö ÀÖÀ¸¸ç À¯¸í ¼­Á¡¿¡ °¡¸é ±¸ÇÒ ¼ö ÀÖ´Ù. ´ÙÀ½¿¡ ¼³¸íÇÏ´Â ³»¿ëÀº ¸¶À½ÀÌ ½Ã°£¿¡ Âѱâ´Â »ç¶÷µéÀ» À§ÇÑ ÈùÆ®¿¡ Áö³ªÁö ¾Ê´Â´Ù.

RPM ÆÐÅ°Áö´Â spec È­ÀϷκÎÅÍ ¸¸µé¾îÁø´Ù. spec È­ÀÏ(ű½ºÅ¸Æ® ¼³Á¤ È­ÀÏ°ú ºñ½ÁÇÑ ¾ç½ÄÀ» °¡Áø´Ù)Àº ÆÐÅ°Áö¸¦ ¸¸µé±â À§ÇØ ¼öÇàµÇ´Â ÀýÂ÷µé·Î ÀÌ·ç¾îÁ® ÀÖ´Ù. - ¼Ò½º¿Í ´Ù¾çÇÑ Ç÷§Æû ÁöÁ¤°ú ÄÄÆÄÀÏÀü¿¡ ÆÐÄ¡¸¦ Àû¿ëÇÏ´Â µîµî.. ÀÏ´Ü ¸¸µé¾îÁö°í ¼³Ä¡µÇ¾îÁø ¹ÙÀ̳ʸ® RPMÀº ¿©·¯ºÐÀÌ °ü°èµÈ´Ù°í ÁöÁ¤ÇÏ´Â È­ÀÏ°ú µð·ºÅ丮·ÎºÎÅÍ ¸¸µé¾î Áø´Ù. RPMÀº ¾î¶² È­ÀÏ°ú µð·ºÅ丮°¡ ÁÖ¾îÁø ÆÐÅ°Áö¿Í °ü·ÃÀÌ ÀÖ´ÂÁö ¾Ë ¼ö ¾øÀ¸¹Ç·Î RPM¿¡°Ô ¾Ë·ÁÁà¾ß ÇÑ´Ù´Â Á¡À» ¾Ë¾Æ µÎ±â ¹Ù¶õ´Ù.

´ÙÀ½Àº Squid WWW ij½¬ ¼­¹ö RPMÀÇ SPEC È­ÀÏÀÇ ³»¿ëÀÌ´Ù:

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

´ÙÀ½Àº RPMÀ» ¸¸µå´Â ¹æ¹ýÀÌ´Ù:

% 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

ÀÌ·¸°Ô Çϸé ÀÚµ¿ÀûÀ¸·Î BUILD µð·ºÅ丮 ¹Ø¿¡ ¼Ò½º Äڵ带 Ç®°í ÆÐÄ¡(¸¹Àº ¿É¼ÇÀÌ ÀÖÀ¸´Ï ÀÚ¼¼ÇÑ ³»¿ëÀº Maximum RPMÀ» Âü°íÇϱ⠹ٶõ´Ù)¸¦ Àû¿ëÇÏ°Ô µÉ ÇÏÀ§µð·ºÅ丮¸¦ »ý¼ºÇÒ °ÍÀÌ´Ù. ÀÌÁ¦ RPMÀº ÀÚµ¿À¸·Î configure, make¸¦ ½ÇÇàÇÏ¿© ¼³Á¤À» ÇÏ°í ÆÐÅ°Áö¸¦ ¸¸µé°í make installÀ» ÀÌ¿ëÇØ ¼³Ä¡¸¦ ÇÏ°í /usr/squid µð·ºÅ丮 ¾Æ·¡¿¡ ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÒ °ÍÀÌ´Ù. ¸Ç ¸¶Áö¸· °úÁ¤Àº Squid ¼ÒÇÁÆ®¿þ¾îÀÇ ¹ÙÀ̳ʸ® RPMÀ» ±¸¼ºÇÒ °ÍÀÌ´Ù.

ÆÐÅ°Áö¸¦ Ç®°í ¸¸µé°í ¼³Ä¡ÇÏ´Â °úÁ¤¿¡¼­ ¸¶À½´ë·Î ½© ¸í·ÉÀ» ³ÖÀ» ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î SquidÀÇ ÄÄÆÄÀϽÃÀÇ º¯¼öÁß ÇϳªÀÎ perlÀ» È£ÃâÇÒ ¼ö ÀÖ´Ù.

ÃÖÁ¾ÀûÀ¸·Î ¹ÙÀ̳ʸ® RPMÀº RPMS µð·ºÅ丮ÀÇ Ç÷§Æû ÁöÁ¤ ¼­ºêµð·ºÅ丮ÀÎ i386 µð·ºÅ丮 ¾Æ·¡¿¡ ³õÀÌ°Ô µÈ´Ù. ÀÌ °æ¿ì squid-1.NOVM.22-1.i386.rpm È­ÀÏÀÌ »ý¼ºµÈ´Ù. È­ÀÏÀ̸§Àº spec È­ÀÏÀÇ Name, Version, Release Á¤º¸¿Í ´õÇؼ­ Çϵå¿þ¾î Ç÷§Æû ÀÌ °æ¿ì¿¡´Â i386À» ¿¬°á½ÃÄÑ ¸¸µé¾îÁö´Â Á¡À» ¾Ë¾ÆµÎ±â ¹Ù¶õ´Ù. ÀڽŸ¸ÀÇ RPMÀ» ¸¸µé °æ¿ì ¹«½ÄÇÏ°Ô ±æ°í °íÅ뽺·¯¿î À̸§À» °®Áö ¾Ê°Ô ÇÏ·Á¸é ÀÌÁ¡À» ¸í½ÉÇØ µÎ±â ¹Ù¶õ´Ù.

Àüü ¼ÒÇÁÆ®¿þ¾î ÆÐÅ°Áö¸¦ ¸®ºôµåÇÒ ÇÊ¿ä¾øÀÌ RPMÀ» È­ÀÏÀ» ¸¸µé ¼ö ÀÖ´Ù´Â Á¡ ¶ÇÇÑ ¾Ë¾ÆµÑ ¸¸ÇÏ´Ù. ¿¹¸¦ µé¸é,

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

ÀÌ °æ¿ì °£´ÜÈ÷ /boot/vmlinuz È­ÀÏ°ú /lib/modules/2.0.35 µð·ºÅ丮ÀÇ ³»¿ë°ú ¼³Ä¡ÇÒ ¸Ó½Å¿¡ ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÑ ÈÄ¿¡ /sbin/lilo ¸í·ÉÀ» ½ÇÇàÇÏ´Â RPM È­ÀÏÀ» ¸¸µé¾ú´Ù. ¸¸ÀÏ ´õ ±ò²ûÇÑ spec È­ÀÏÀ» ÀÛ¼ºÇÏ´Â ¹æ¹ýÀÌ ÀÖ´Ù¸é ¾Ë·ÁÁֱ⠹ٶõ´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê