Debian Gnu/Linux 3

-µ¥ºñ¾È ÆÐÅ°Áö ¸¸µé±âÀÇ ½Çü (1)

¹ÚÁÖ¿¬ / ³ª¿ì´©¸® ¸®´ª½º µ¿È£È¸ ½Ã¼¥

µé¾î°¡±â¿¡ ¾Õ¼­

Áö³­È£±îÁö µ¥ºñ¾ÈÀÇ dselectÀÇ ¸Þ´º ½Ã½ºÅÛÀ» ÅëÇØ ¿øÇÏ´Â ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏ´Â ¹æ¹ý°ú Áß°£¼öÁØÀÇ ÆÐÅ°Áö °ü¸® ÇÁ·Î±×·¥ÀÎ dpkg¸¦ ÅëÇØ µ¥ºñ¾È ÆÐÅ°Áö¸¦ Á¶ÀÛÇÏ´Â ¹æ¹ý¿¡ ´ëÇÏ¿© »ìÆ캸¾Ò´Ù. °³³ä»ó ¾Ë¾ÆµÎ¾î¾ß ÇÒ ºÎºÐÀÌ ¸¹°í »ý¼ÒÇÒ ¼ö ÀÖ´Â µ¥ºñ¾È ÆÐÅ°Áö¶ó°í »ý°¢ÇÒ ¼ö ÀÖÁö¸¸ ¸¹ÀÌ »ç¿ëµÇ¾î ¿Â ·¹µåÇÞ°ú ºñ±³ÇÒ ¶§ º° ´Ù¸¥ Â÷ÀÌÁ¡Àº ¾ø´Ù. ·¹µåÇÞÀº ±× ÆÐÅ°Áö¿¡ ¹æ½Ä°ú ¼³Ä¡ÀÛ¾÷À» µ¥ºñ¾ÈÀÇ ±×°Í¿¡¼­ ¸¹ÀÌ Â÷¿ëÇؿԱ⠶§¹®¿¡ µÑÀÇ °³³äÀÌ ºñ±³Àû ºñ½ÁÇÏ´Ù. ÇÏÁö¸¸ ºñ±³Àû ¾î·Æ°Ô ´À²¸Á³À»Áöµµ ¸ð¸£°Ú´Ù. À̹ø È£¿¡¼­´Â Áö³­ È£±îÁö ´Ù·ç¾ú´ø µ¥ºñ¾È ¸Þ´º½Ã½ºÅÛÀÎ dselect ±× µÚ¿¡¼­ ÆÐÅ°ÁöÀÇ ¼³Ä¡./ Ãß°¡ /.»èÁ¦¸¦ ½ÇÁúÀûÀ¸·Î ÇàÇÏ´Â ÇÁ·Î±×·¥ÀÎ dpkg¿Í ±× ºÎ¼Ó ÇÁ·Î±×·¥¿¡ ´ëÇÑ °³³äÀ» °®°í ÆÐÅ°Áö ÀÛ¼º ÇÁ·Î±×·¥À» ¾Ë¾Æº¸°í ½ÇÁ¦·Î ÇϳªÀÇ ÇÁ·Î±×·¥À» ¿¹·Î µé¾î°¡¸ç ÆÐŰ¡À» Çغ¸±â·Î ÇÑ´Ù.

¿©±â¿¡¼­ ¼Ò°³ÇÏ´Â ÆÐŰ¡Àº ±ØÈ÷ Ãʺ¸ÀûÀÎ ´ÜÀÏ ¿¡Çø®ÄÉÀ̼ǿ¡ ´ëÇÑ ÆÐŰ¡ ¹æ¹ý¸¸À» ´Ù·ç¸ç ±×¿ÜÀÇ °ÍµéÀº ÀÌ ±ÛÀÇ ¹üÁÖ¸¦ ¹þ¾î³ª°Ô µÇ¹Ç·Î »ý·«Çϱâ·Î ÇÑ´Ù.

¿ì¼± ¾Ë¾ÆµÎ¾î¾ß ÇÒ ÀüüÀû °³³ä

·¹µåÇÞ¿¡¼­´Â ÆÐŰ¡°ú °ü·ÃÇÑ ÆÄÀÏÀÌ ¼Ò½ºÆÄÀϳ»¿¡ spec ÆÄÀÏÀÌ Àִµ¥. µ¥ºñ¾Èµµ ¿ª½Ã ±×¿Í ºñ½ÁÇÑ ¿ªÇÒÀ» ÇÏ´Â ³»¿ëµéÀÌ ÀÕ´Ù µ¥ºñ¾È¿¡¼­´Â ¼Ò½ºÆÄÀÏÀÌ root Æ®¸®¿¡¼­ debian µð·ºÅ丮¿¡ °ü·ÃµÈ ÆÄÀÏÀÌ ÀúÀåµÇ°Ô µÈ´Ù ¿ì¸®´Â ¿ì¼± ±× ¿¹·Î GNU Hello ÇÁ·Î±×·¥À» µé °ÍÀÌ´Ù GNU Hello ÇÁ·Î±×·¥Àº GNU ÇÁ·ÎÁ§Æ®ÀÇ Á¤½ÅÀ» °¡Àå Àß ³ªÅ¸³»´Â ÇÁ·Î±×·¥ÀÎ µ¿½Ã¿¡ GNU ÇÁ·Î±×·¥ÀÌ ¸ðµÎ ÀÌ ÇÁ·Î±×·¥ÀÇ ÄÚµù¹æ½ÄÀ» µû¸¥´Ù´Â °ÍÀ» º¸¿©ÁÖ´Â ÁÁÀº ¿¹ÀÌ´Ù. ¸¶Âù°¡Áö·Î µ¥ºñ¾È ÆÐŰ¡ÀÇ ¿¹Á¦·Î GNU Hello´Â ÈǸ¢ÇÑ ¿ªÇÒÀ» Çس¾ °ÍÀÌ´Ù.

¿ì¼± GNU Hello ÆÐÅ°Áö¸¦ ¹Þ¾Æ ¹­À½À» Ç®¾î³»ÀÚ ¾Æ¸¶µµ GNU Hello´Â ´ÙÀ½°ú °°Àº ¹öÀü¹øÈ£¸¦ °¡Áú °ÍÀÌ´Ù.

hello-1.3.tra.gz

ÀÌ ÆÐÅ°ÁöÀÇ ´ÙÀ½ÀÇ À§Ä¡¿¡¼­ ¹Þ¾Æ¿Ã ¼ö ÀÖ´Ù.

ftp://src.doc.ic.ac.uk/gnu/hello-1.3.tar.gz

Çѱ¹ ³»¿¡ °ÅÁÖÇÏ´Â »ç¶÷À̶ó¸é À¯¸íFTP »çÀÌÆ®¿¡¼­ ¹Þ¾Æ¿Ã ¼ö ÀÖÀ» °ÍÀÌ´Ù. ¿ì¼± ÀÌ ÆÐÅ°Áö¸¦ Ç®¾î³»°Ô µÇ¸é hello-1.3/À̶ó´Â µð·ºÅ丮°¡ »ý°Ü³­´Ù. ÀÌÁ¦ ÀÌ ¿ø·¡ÀÇ ¼Ò½º¿¡ »ìÀ» ºÙ¿©(?) µ¥ºñ¾È ÆÐÅ°Áö¸¦ ºôµåÇØ ³»´Â µ¥ºñ¾È ¼Ò½ºÆÐÅ°Áö¸¦ ¸¸µé¾î³»°Ô µÈ´Ù À̶§ ¿ø·¡ÀÇ ¼Ò½ºÆÄÀÏÀÇ º¯ÇüÀÌ ¾øµµ·Ï ÇÏ´Â °ÍÀÌ °¡Àå Áß¿äÇϳª ¼Ò½ºÆÐÅ°Áö¸¦ µ¥ºñ¾È ¹èÆ÷º»Á¤Ã¥À̳ª ¸®´ª½º FSSTND¿¡ ¸ÂÃç¾ß ÇÑ´Ù¸é ¼Ò½º¸¦ ±×¿¡ ¸Â°Ô ¼öÁ¤ÇÏ´Â °Íµµ ÇÊ¿äÇÏ´Ù ÇϳªÇϳª ¸¸µé±â´Â º¹ÀâÇϹǷÎ, À̶§¿¡ »ç¿ëµÇ´Â È¿°úÀûÀÎ ÇÁ·Î±×·¥ÀÌ ÀÖ´Ù. ÀÌ ÇÁ·Î±×·¥ÀÇ À̸§Àº deb-make ÀÌ°í  debmake ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏ¸é »ç¿ëÇÒ ¼ö ÀÖ´Ù.

debmake ÀÇ ÃֽŹöÀüÀº ÇÊÀÚ°¡ ÀÌ ±ÛÀ» ¾µ ¶§¿¡ 3.5.4¿´´Ù ¾Æ¸¶µµ ÀÌ ±ÛÀ» ¿©·¯ºÐÀÌ º¼ ¶§ ÁîÀ½¿¡µµ ÀÌ°ÍÀÌ ÃֽŹöÀüÀÏ °Í °°´Ù. ÀÌ debmake°¡ ¾øÀ¸¸é »ç½Ç µ¥ºñ¾È ÆÐŰ¡Àº Á߳뵿(?) Àϼö¹Û¿¡ ¾ø´Ù. ÇÏÁö¸¸ »ç¶÷Àº ¾ðÁ¦³ª ÆíÇÑ ÂÊÀ¸·Î °¡°Ô ¸¶·Ã ¾Æ´Ò±î . µ¥ºñ¾È ÆÐŰ¡À» ÀÚµ¿È­ÇÏ´Â ÀÛ¾÷À» ÇØÁÖ´Â ÇÁ·Î±×·¥(deb-make,debstd, dpkg-shilbdepsµî)Àº º¹ÀâÇÏ°Ô ´À²¸Áú ¼öµµ ÀÖ´Â ÆÐÅ°Áö °ü¸®¸¦ Æí¸®ÇÏ°Ô ÇØÁØ´Ù.

±×·¯¸é ÇϳªÇϳª Â÷·ÊÂ÷·Ê Çغ¸µµ·Ï ÇÏÀÚ

Ç®·Á ³ª¿Â hello-1.3/µð·ºÅ丮·Î À̵¿Çϵµ·Ï ÇÑ´Ù. ´ÙÀ½ ÆÄÀϵéÀÌ ³ªÅ¸³¯ °ÍÀÌ´Ù. :

$ cd hello-1.3/
$ ls -F
COPYING      TAGS     getopt1.c    hello.info mkinstalldirs*
ChnageLog    alloca.c    gpl.texinfo   hello.ky    testdata
INSTALL configure*   hello.c hello.pg texinfo.tex
Makefules.in configure.in hello.cp hello.texi version.c
NEWS   etopt.c    hello.cps    hello.tp
README   getopt.h    hello.fn   hello.vr
$

ÀÌÁ¦ ¿ì¸®´Â ¿©±â¿¡¼­ deb-make¸¦ ½ÇÇà½Ãų °ÍÀÌ´Ù deb-make¸¦ ½ÇÇà½ÃÅ°¸é »ç¿ëÀÚ ´ëÈ­¹æ½ÄÀ¸·Î ¸î °¡Áö¸¦ ¹°¾î ¿À°Ô µÇ´Âµ¥ ÀÌ¿¡ ´ëÇؼ­ Â÷±Ù Â÷±ÙÈ÷ ´ë´äÇØÁÖ¸é µÈ´Ù ½ÇÇàÇÏ¸é ´ÙÀ½°ú °°Àº ³»¿ëÀ» º¼ ¼ö ÀÖ´Ù.

$ deb-make
Email- Address : kokids@doit.ajou.ac.kr 
Date used   : Tue, 18 Nov 1997 02:49:54 +0900 
Maintainer    : Chu-yeon Park
 Package Name    :hello 
Version : 1-3
Type of Package (S=Single Binary, M=Multi-Binary , L =Libarary, X=About? s/m/l/x

deb-make¸¦ ½ÇÇàÇϸé À§¿Í °°Àº ¸Þ½ÃÁö¸¦ º¼ ¼ö ÀÖ´Ù. ¿ì¼± deb-make¸¦ ½ÇÇàÇϱâ Àü¿¡ ¾Ë¾ÆµÎ¾î¾ß ÇÒ »çÇ×ÀÌ Àִµ¥ ¼Ò½º µð·ºÅ丮ÀÇ À̸§Àº <ÆÐÅ°ÁöÀ̸§>-<¹öÀü¹øÈ£> ÀÇ Çü½ÄÀ» ¶ì°í ÀÖ¾î¾ß ÇÑ´Ù´Â Á¡ÀÌ´Ù Áï GNU hello ¿Í °°Àº °æ¿ì hello-1.3°ú °°Àº µð·ºÅ丮°¡ ÁöÁ¤µÇ¾î¾ß ÇÑ´Ù ÆÐÅ°ÁöÀÇ À̸§¿¡´Â ¿µ¾î ¼Ò¹®ÀÚ,¼ýÀÚ,±×¸®°í ´ë½¬(-)¸¸ÀÌ °¡´ÉÇÏ´Ù ¸î °¡Áö ¿¹¸¦ µé¾îº¸¸é ´ÙÀ½°ú °°´Ù.

afterstep-1.0
sendmail-8.8.8       glibc-2.0.5c
grep-2.1           xfree86-3.3.1
patch-2.1          wu-ftpd-2.4
bash-2.01         elm-me+-2.4pl25me+37(*)

¿¹·Î µç ÆÐÅ°Áö À̸§ Áß .elm-me+ ´Â ÆÐÅ°Áö À̸§¿¡ Ç÷¯½º(+) ºÎÈ£°¡ µé¾î°¡ Àִµ¥ »ç½Ç»ó º°¹®Á¦´Â ¾ø´Ù. ±×·¯³ª ÆÐÅ°Áö À̸§¿¡ (+) µîÀÇ ±âÈ£¸¦ ³Ö´Â °ÍÀº °¡±ÞÀû »ï°¡¾ß ÇÑ´Ù.

¿ì¸®°¡ À§¿¡¼­ º» ¸Þ½ÃÁö¸¦ ´Ù½Ã Çѹø Çϵµ·Ï ÇÏÀÚ deb-make´Â ¼Ò½º Æ®¸®¿¡¼­ ¸¸µé¾î³¾ ÆÐÅ°Áö°¡ ¾î¶² Á¾·ùÀÎÁö ¹°¾î¿Â´Ù. º¸´Â ¹Ù¿Í °°ÀÌ ÆÐÅ°ÁöÀÇ Á¾·ù´Â ¼¼°¡Áö°¡ ÀÖ´Ù ¿ì¼± °¡Àå ´Ü¼øÇÑ ÆÐÅ°Áö·Î ÇϳªÀÇ ¼Ò½º¿¡¼­ ´ÜÀÏÀÇ ÆÐÅ°Áö°¡ »ý¼ºµÇ´Â °æ¿ìÀÌ´Ù ´ëºÎºÐÀÇ °æ¿ì S¸¦ ÅëÇØ Single Binary ·Î ¸¸µé¾î³»°Ô µÈ´Ù. ±× ´ÙÀ½ÀÇ °æ¿ì´Â ÇϳªÀÇ ¼Ò½º¿¡¼­ ¿©·¯ °¡ÁöÀÇ ÆÐÅ°Áö°¡ ³ª¿À°Ô µÇ´Â °æ¿ìÀÌ´Ù º¸Åë ªÀº ÇÁ·Î±×·¥Àº ±×·¸Áö ¾ÊÁö¸¸ ¼Ò½º°¡ ±ä X À©µµ¿ì´Â ¼Ò½º¸¸ 45¸¸ ¸Þ°¡¹ÙÀÌÆ®°¡ ³Ñ´Â ¿ë·®ÀÌ´Ù. ±×¸®°í ºôµåÇÏ¸é »ó´çÈ÷ ¸¹Àº ¾çÀÇ ÇÁ·Î±×·¥ÀÌ ³ª¿À±â ¶§¹®¿¡ ÀÌ°ÍÀ» ´ÜÀÏÆÐÅ°Áö·Î ¸¸µç´Ù´Â °ÍÀº Á» ¹«¸®°¡ ÀÖ´Ù. ½ÇÁ¦·Î xfree86-3.3.1¿¡¼­ ¸¸µé¾îÁö´Â ÆÐÅ°Áö´Â 32°³³ª µÈ´Ù. ¸¶Áö¸·À¸·Î´Â ¶óÀ̺귯¸® ÆÐÅ°ÁöÀÌ´Ù. ¶óÀ̺귯¸® ÆÐÅ°Áö´Â º¸Åë µÎ °³ÀÇ ÆÐÅ°Áö¸¦ »ý¼ºÇس½´Ù.Çϳª´Â ÀϹÝÀûÀÎ °øÀ¯ ¶óÀ̺귯¸®(Shared libarary)¿Í ³ª¸ÓÁö Çϳª´Â ±×¿Í °ü·ÃµÈ Çì´õÆÄÀÏÀÌ´Ù º¸Åë ÀüÀÚ´Â /usr/lib µð·ºÅ丮¿¡ ¼³Ä¡µÇ°Ô µÇ´Â °ÍµéÀ̸ç ÈÄÀÚ´Â *-dev_*.debÀÇ À̸§À» °®´Â ÆÐÅ°ÁöÀÌ´Ù.

hello-1.3/ µð·ºÅ丮¿¡¼­ ¿ì¸®´Â ÇϳªÀÇ ÆÐÅ°Áö¸¸À» »ý¼ºÇس¾ °ÍÀ̹ǷΠS¸¦ ¼±ÅÃÇÏ¸é µÇ°Ú´Ù. ȤÀº ¸¸µéÁö ¾Ê°í Ãë¼ÒÇÏ·Á ÇÒ ¶§¿¡´Â X¸¦ ´©¸£¸é µÈ´Ù ¹°À½ÀÌ ³ª¿À±â Àü¿¡ È­¸é¿¡ ³ªÅ¸³­ 5ÁÙÀÇ Á¤º¸°¡ ¸Â´ÂÁö È®ÀÎÇغÁ¾ß ÇÑ´Ù. ÀÌ ³»¿ëÀº ÆÐÅ°Áö Àüü¿¡ °ÉÃÄ Àû¿ëÀÌ µÈ´Ù.

S¸¦ ´©¸£¸é ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ ³²±â°í Á¾·áµÈ´Ù.

hello debianzed .It uses a configure script which probably
means that you do not have to edit the Makefile.

ÀÌÁ¦ ÆÐÅ°Áö ¸¸µç ´Â ÀÛ¾÷Àº »ó´çÈ÷ °£´ÜÇØÁ³´Ù. hello ÇÁ·Î±×·¥Àº µ¥ºñ¾È ÆÐÅ°Áö·Î ¸¸µé¾îÁö´Â ù ´Ü°è¸¦ ¹«»çÈ÷ Åë°úÇß´Ù. ¿µ¾î±Ç »ç¶÷µéÀÌ ¸» ¸¸µé¾î³»´Âµ¥´Â ±Í½Å(?)ÀÎ µí 'µ¥ºñ¾ÈÈ­' ¸®´Â debianize¶ó´Â ´Ü¾î¸¦ ±×´ë·Î ¾²´Ï ¸»ÀÌ´Ù. ¾î·µç ¸î °¡Áö ºÎºÐÀ» ¼öÁ¤Çؾ߸¸ ½ÇÁ¦ hello ÆÐÅ°Áö°¡ ¸¸µé¾îÁö´Ï ½ÃÇè »ï¾Æ ó³àÀÛÀ» ¸¸µé¾îº¸ÀÚ ³ªÅ¸³­ ¸Þ½ÃÁö´ë·Î ¿ø·¡ÀÇ ¼Ò½º MakefileÀ» °íÄ¥ ÇÊ¿ä´Â ¾ø´Ù. ( ±×·¯³ª FSSTND ¶§¹®¿¡ °íÃÄ¾ß ÇÒ ¶§µµ ÀÖÀ½À» ¹Ýµå½Ã ¸í½ÉÇϱæ )

Ä¿¸Çµå ÇÁ·ÒÇÁÆ®°¡ ³ªÅ¸³­ ÈÄ ¾î¶² º¯È­°¡ »ý°Ü³µ´ÂÁö »ìÆ캸ÀÚ

$ ls-F

COPYING      TAGS     getopt1.h    hello.fn hello.vr
ChnageLog    alloca.c    getopt1.c   hello.info  mkinstalldirs*
INSTALL configure*   gpl.texunfo hello.ky testdata
Makefules.in configure.in hello.c hello.pg texinfo.tex
NEWS   debian/   hello.cp     hello.texi version.c
README   getopt.c    hello.cps  hello.tp
$

º°´Ù¸¥ º¯È­´Â ¾ø¾î º¸ÀδÙ. ±×·¯³ª ±×·¸Áö ¾Ê´Ù. ¸øº¸´ø µð·ºÅ丮 Çϳª°¡ »ý°Ü³µÀ½À» ¾Ë ¼ö ÀÖ´Ù. ¹Ù·Î debian/ µð·ºÅ丮ÀÌ´Ù. ÀÌ µð·ºÅ丮 ³»ºÎ¸¦ »ìÆ캸±â Àü¿¡ »óÀ§ µð·ºÅ丮¸¦ »ìÆ캸ÀÚ

$cd
$ls-F
hello-1.3/  hello-1.3.orig/
$

hello-1.3/ µð·ºÅ丮»Ó ¾Æ´Ï¶ó hello-1.3.orig/ µð·ºÅ丮°¡ ³ªÅ¸³­ °ÍÀ» º¼ ¼ö ÀÖ´Ù.deb-make´Â ½ÇÇàµÈ ÈÄ ¿ø ¼Ò½º¸¦ *.orig·Î ¹Ù²Ù¾î ³õ°Ô µÈ´Ù.Áï hello-1.3.orig/¿¡´Â  ¸ÇóÀ½ ¿ì¸®°¡ Ç®¾î³õÀº ¿ø ¼Ò½º°¡ À§Ä¡ÇÏ°í ÀÖ´Â °ÍÀÌ°í hello-1.3/ ¿¡´Â µ¥ºñ¾È ÆÐÅ°Áö ºôµå¿ë ¼Ò½º°¡ À§Ä¡ÇÏ°Ô µÈ´Ù.

´Ù½Ã hello-1.3/ µð·ºÅ丮 ³»ºÎ·Î À̵¿ÇÏ°í ±× ³»ºÎÀÇ debian/µð·ºÅ丮·Î µé¾î°¡º¸µµ·Ï ÇÏÀÚ

$cd hello-1.3/debian/
$ls -F
README.denian   copyright    diversions.ex   init.d.ex  rules*
changelog      crontab.ex   inetd.conf.ex   manpage.1.ex   watch.ex
control     dirs    info.ex    menu.ex
$

.ex ÀÇ È®ÀåÀÚ¸¦ °¡Áø ÆÄÀϵéÀÌ ¸¹´Ù´Â °ÍÀ» º¼ ¼ö ÀÖ´Ù. ¸î °¡Áö´Â º» ÀûÀÌ ÀÖ´Â ÆÄÀÏÀÌ, ¸î °¡Áö´Â ÀüÇô »ý¼ÒÇÑ ÆÄÀϵµ ÀÖ´Ù. ÀÌ ÆÄÀÏÀÇ ¿ªÇÒÀ» Çϳª Çϳª ¾Ë¾Æº¸µµ·Ï ÇÏÀÚ

READMEdebian:

ÀÌ ÆÄÀÏ¿¡´Â ÀϹÝÀûÀÎ ÆÐÅ°Áö¿¡ ´ëÇÑ ¼³¸íÀÌ µé¾î°¡°Ô µÈ´Ù ÀÌ ÆÄÀÏÀº ÃÖÁ¾ÀûÀ¸·Î ./usr/doc/<ÆÐÅ°ÁöÀ̸§>/µð·ºÅ丮¿¡ ¼³Ä¡°¡ µÈ´Ù. ³»ºÎ´Â Á» ÃʶóÇÒÁö ¸ð¸£Áö¸¸ °£´ÜÇÑ ¼³¸íÀÌ »ðÀԵǾî ÀÖ´Ù. README.debian ÀÇ ³»ºÎ´Â ´ÙÀ½°ú °°´Ù

hello for DEBIAN

Comments regarding the Package

Chu-yeon Pakr <kokid@doit.ajou.ac,kr>.Tue 18 Nov 1997 03:00:25 +0900

¸Ç ¾Æ·§ÁÙ¿¡´Â ÆÐÅ°Áö¸¦ ¸¸µé¾î³»´Â »ç¶÷ÀÇ E-mailÁÖ¼Ò¿Í ¾ðÁ¦ debianized µÇ¾ú´ÂÁö ±× ³¯Â¥¿Í ½Ã°£À» ¸í½ÃÇÑ´Ù. ¼Õ ¼ö °íÃĵµ µÇÁö¸¸ deb-make¸¦ ½ÇÇà½Ãų ¶§ ÀúÀåµÈ °ÍÀ¸·Î ³öµÎ´Â °ÍÀÌ ÁÁ°Ú´Ù.

changelog:

ÇÁ·Î±×·¡¹Ö ¶§¿¡´Â ¹Ýµå½Ã ¹«¾ù ¹«¾ùÀÌ ¹Ù²î¾ú´ÂÁö ±×¿¡ ´ëÇÑ º¯È­¸¦ Àû¾îµÎ¸é ÃßÈÄ¿¡ ´Ù¸¥ »ç¶÷ÀÌ º¸°Å³ª ÀÚ±â ÀÚ½ÅÀÌ È®ÀÎÇØ º¼ ¶§ ¾ðÁ¦ ¹«¾ùÀÌ ¹Ù²î¾ú´ÂÁö ¾Ë¾Æº¸±â°¡ ÆíÇÏ´Ù ¿ª½Ã µ¥ºñ¾È ÆÐÅ°Áö´Â Çѹø ¸¸µé°í ¾ø¾îÁö´Â °ÍÀÌ ¾Æ´Ï±â ¶§¹®¿¡ Áö¼ÓÀûÀÎ º¯È­¿¡ ´ëÇÑ ·Î±×°¡ ÇÊ¿äÇÏ´Ù changelogÆÄÀÏÀÇ ³»ºÎ¸¦ »ìÆ캸ÀÚ

hello (1.3-1) unstable : urgency-low
* Initial Release
-Chu-yeon Park <kokods@doit.ajou.ac.kr> Tue 18 Nov 1997 03:00:25 + 0900
Local variables :
mode : debian-changelog
add-log-mailing-address:"kokids@doit.ajou.ac.kr"
End:

changelogÀÇ Çü½ÄÀº ¹Ýµå½Ã À§¿Í °°¾Æ¾ß ÇÑ´Ù ÀÌ Çü½ÄÀÌ Æ²¸®¸é ÆÐÅ°Áö¸¦ ¸¸µé ¶§ ¸¶´Ù ¼Õ¼ö ÀÛ¼ºÇϱâ´Â »ó´çÈ÷ ¹ø°Å·Ó´Ù ÀÌ·² ¶§¿¡´Â dechange¶ó´Â ÇÁ·Î±×·¥À» ÅëÇØ ÀÌ ¿ª½Ã ÀÚµ¿È­ÇÒ ¼ö ÀÕ´Ù changelog°¡ Á¦´ë·Î ±â·ÏµÇ¾î¾ß¸¸ ¿Ã¹Ù¸¥ ÆÐÅ°Áö°¡ ¸¸µé¾îÁö°Ô µÈ´Ù ¿Ö³ÄÇÏ¸é µ¥ºñ¾È ÆÐÅ°Áö´Â ÀÌ changelogÀÇ ³»¿ë°ú controlÆÄÀÏÀÇ ³»¿ëÀ» ÂüÁ¶ÇÏ¿© ÀÌ ÆÐÅ°Áö¸¦ »ý¼ºÇØ ³»±â ¶§¹®ÀÌ´Ù.

debchange ÇÁ·Î±×·¥ÀÇ »ç¿ë¹ýÀº ´ÙÀ½°ú °°´Ù. ¼Ò½ºÆ®¸®ÀÇ ÃÖ»óÀ§¿¡¼­ ½ÇÇà½ÃÅ°°Å³ª debian/ µð·ºÅ丮¿¡¼­ ½ÇÇà½ÃÅ°¸é µÈ´Ù.

debchang[-v ¹öÀü¹øÈ£][-n][³»¿ë]

dch[-v ¹öÀü¹øÈ£][-n][³»¿ë]

debchange¸¦ ¿É¼Ç¾øÀÌ ½ÇÇà½ÃÅ°°Ô µÇ¸é ´ÙÀ½°ú °°´Ù

hello (1.3-1) unstable : urgency-low
*
* Initial Release
-Chu-yeon Park <kokods@doit.ajou.ac.kr> Tue 18 Nov 1997 03:00:25 + 0900
Local variables :
mode : debian-changelog
add-log-mailing-address:"kokids@doit.ajou.ac.kr"
End:

¹Ù²ï Á¡À̶ó¸é (*) °¡ Çϳª ´õ »ý±â°í Ä¿¼­ºz ±× À§Ä¡¿¡¼­ ±ôºýÀÌ°í ÀÖ´Ù´Â Á¡ÀÌ´Ù ¹Ù²ï Á¡À» ÀÌÁ¦ ÇϳªÇϳª ÀÌ°÷¿¡¼­ ÷°¡ÇÏ¿© ½á ³ª°¡¸é µÈ´Ù Ȥ½Ã ¸®¹öÀü ¹øÈ£ (Revision number)¸¦ ÇÑ´Ü°è ³ôÀÌ°í ½ÍÀ» ¶§ (1.3-1dptj 1.3-2·Î )¿¡´Â -n ¿É¼ÇÀ» »ç¿ëÇÏ¸é µÈ´Ù ½ÇÇà ÈÄ ´ÙÀ½°ú °°ÀÌ µÊÀ» º¼ ¼ö ÀÖ´Ù.

$ debchange -n

±×·¯³ª ¸®ºñÀü ¹øÈ£¸¸ ¹Ù²îÁö´Â ¾Ê´Â´Ù Àüü ÆÐÅ°ÁöÀÇ ÆÇÀÌ ¿Ã¶ó°¡¸é(Version-up) ¹öÀüÀÇ ¼ýÀÚ°¡ ¿Ã¶ó°¡¾ß ÇÑ´Ù Áï 1.3-2¿¡¼­ 1.4·Î º¯È­ÇÒ ¼öµµ ÀÖ´Â °ÍÀÌ´Ù. ±×·² ¶§¿¡´Â -V ¿É¼ÇÀ» ÀÌ¿ëÇÏ¸é µÈ´Ù ´ÙÀ½°ú °°ÀÌ Çغ¸ÀÚ .
ÀÌ·¸°Ô ÇÏ¸é ´ÙÀ½°ú °°ÀÌ º¯È­ÇÏ°Ô µÈ´Ù.

$ debchange -v 1.4

º°´Ù¸¥ ¾î·Á¿òÀº ¾ø°ÚÁö¸¸ changelog¾²´Â °ÍÀ» °ÔÀ»¸® ÇÏÁö ¸»±â ¹Ù¶õ´Ù.

hello (1.3-1) unstable : urgency-low
*
-Chu-yeon Park <kokods@doit.ajou.ac.kr> Tue 18 Nov 1997 03:41:44 + 0900
hello(1.3-1)unstable : urgency=low
Initial Release
-Chu-yeon Park <kokods@doit.ajou.ac.kr> Tue 18 Nov 1997 03:00:25 + 0900
Local variables :
mode : debian-changelog
add-log-mailing-address:"kokids@doit.ajou.ac.kr"
End:

changelog´Â ÆÐÅ°Áö °ü¸®ÀÚÀÇ ¼º½Çµµ¸¦ ³ªÅ¸³»¸ç ÆÐÅ°Áö¸¦ ºôµåÇÒ ¶§ ¿¡µµ ÇʼöÀûÀÓÀ» ¸í½ÉÇϱ⠹ٶõ´Ù. ÁÖÀÇ ÇÒ Á¡Àº changelog ÆÄÀÏ ³»ºÎ´Â debchange¸¦ ½ÇÇà½ÃÅ´°ú µ¿½Ã¿¡ º¯È­ÇÏ¿© ÀÌ¹Ì ÀúÀåµÇ¾î Àִµ¥ , Àß ¸ø ±âÁ¦µÇ¾ú°Å³ª ÇÒ ¶§¿¡´Â changelog ÆÄÀÏÀ» ¼öµ¿À¸·Î °íÃÄÁÖ¸é µÈ´Ù

control

ÀÌ ÆÄÀÏÀº µ¥ºñ¾È ÆÐÅ°ÁöÀÇ ÇÙ½ÉÀ̶ó°í ÇÒ ¼ö ÀÖ´Ù. control ÆÄÀϳ»ºÎ¿¡´Â ÆÐÅ°ÁöÀÇ ÀÇÁ¸¼º°ú ´ë¸³¼º ±×¸®°í ÀÌ ÆÐÅ°Áö¿Í °ü·ÃµÈ ³»¿ëÀÌ ÃѸÁ¶óµÇ¾î ÀÖ´Ù ¿ì¼± hello-1.3/debian/control ÆÄÀÏÀÇ ³»ºÎ´Â À§¿Í °°´Ù

Source: hello
Section : unknow
Priority extra
Maintainer : Chu-yeon Park <kokids@doit.ajou.ac.kr>
Stands-Version: 2.3.0.0
Package : Hello
Architecture :any
Depends : ${shlibs: Depends]
Description : Missing
Missing

ÇöÀç ÇϳªÀÇ ¼Ò½º¿¡ ÇϳªÀÇ ÆÐÅ°Áö°¡ Á¸ÀçÇÔÀ» º¼ ¼ö ÀÖ´Ù ÀÌ°ÍÀº deb-make¸¦ ½ÇÇà½ÃÄ×À» ¶§ ÇϳªÀÇ ÆÐÅ°Áö¸¸À» ¸¸µé°íÀÚ ÇÏ¿´±â ¶§¹®¿¡ ÀÌ·¸°Ô ÁöÁ¤µÈ °ÍÀÌ´Ù. control ÆÄÀϳ»ºÎ´Â ÀÌó·³ Sourse ¼½¼ÇÀº ¹Ýµå½Ã Çϳª¿©¾ßÇÏ°í ÆÐÅ°Áö¼½¼ÇÀº ¿©·¯ °³°¡µÇ¾îµµ »ó°ü¾ø´Ù º¸Åë ÀÌ control ÆÄÀÏÀº ÆÐÅ°Áö ´ëÇØ ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ÁÖ¸é º¼ ¼ö ÀÖ´Ù. ¼³Ä¡°¡ ¾ÈµÇ¾î ÀÖ´Â ÆÐÅ°Áö¶ó¸é ´ÙÀ½°ú °°ÀÌ Å¸ÀÌÇÎÇÑ´Ù. Áö³­È£±îÁö ´Ù·ç¾ú´ø ³»¿ëÀ̹ǷΠÀ§¿¡ ´ëÇØ ¼³¸íÀ» ÇÏÁö ¾Ê°Ú´Ù.

$ dpkg- info <ÆÐÅ°Áö À̸§>_<¹öÀü¹øÈ£>_<¸®¹öÀü¹øÈ£>_<¾ÆÅ°ÅØó¸í>.deb

¼³Ä¡°¡ µÇ¾îÀÖ´Â ÆÐÅ°Áö¶ó¸é ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÇ°Ú´Ù.

¿ø·¡ GNU Hello ÇÁ·Î±×·¥ÀÇ µ¥ºñ¾È ÆÐÅ°Áö¿¡¼­ control

$ dpkg- s <ÆÐÅ°Áö À̸§>

Àº ¾î¶»°Ô µÇ¾î ÀÖ´ÂÁö »ìÆ캸µµ·Ï ÇÏÀÚ

Source: hello
Section :devel
Priority : optional
Maintainer : lan Jackson <ian@chiark.greenden.org.uk>
Stands-Version: 2.1.1.0
Package : hello
Architecture :any
Depends : ${shlibs: Depends]
Section: devel
Priority : optional
Description : The classic greeting , and a good example
The GNU hello program produces a familiar friendly greeting It allows nonprogrammers
to use a classic computer science tool which would otherwise be unavailable to them
Seriously. though : this is an example of how to do a Debian package. It is the
Debian version of the GNU Project's hello world program (which is itself an example)
for the GNU Projest )

Áï hello ÇÁ·Î±×·¥ÀÇ ¼Ò½º¿¡¼­ µ¥ºñ¾È ÆÐÅ°Áö°¡ ¸¸µé¾îÁö°Ô µÊÀ» ¸í½ÃÇÏ°í ÀÖ´Ù ±×¸®°í ÀÌ ¼Ò½ºÀÇ ¼¼¼Ç(Section)Àº devel Áï development ¼½¼ÇÀÓÀ» ±âÀçÇÑ´Ù. µ¥ºñ¾È¿¡´Â ÆÐÅ°ÁöÀÇ ¿ëµµ¿¡ µû¶ó ¼½¼ÇÀ» ±¸ºÐÇÏ¿© ³õ´Â´Ù´Â °ÍÀ» Áö³­È£¿¡¼­ ¾Ë¾Æº¸¾Ò´Ù.

Pririty´Â ¿ª½Ã optiomal·Î ÁöÁ¤ÀÌ µÇ¸ç Maintainer. Áï ÆÐÅ°Áö °ü¸®ÀÚ´Â Ian Jackson À̶ó´Â »ç¶÷ÀÓÀ» ¸í½ÃÇÏ°í ÀÖ´Ù À̺κÐÀº deb-make ½ÇÇà½Ã ÁöÁ¤µÇ´Â ºÎºÐÀÌ´Ù.

Standards-Version Àº µ¥ºñ¾È ÆÐÅ°Áö°ü¸® Ç¥ÁØÀÇ ¹öÀüÀ» ³ªÅ¸³½´Ù. ÇöÀç 2.3.0.0 ±îÁö ³ª¿Í ÀÖ´Ù. ´ÙÀ½ºÎºÐÀÌ ÆÐÅ°Áö ºÎºÐÀÌ´Ù hello ¼Ò½º¿¡¼­ hello ¶ó´Â ÆÐÅ°Áö°¡ ¸¸µé¾îÁ® ³ª¿À°Ô µÈ´Ù. ±×¸®°í Architecure ¿¡´Â ¸¸µé¾îÁø ÆÐÅ°Áö°¡ »ç¿ëÇÒ µÉ ¼ö ÀÖ´Â ÆÐÅ°Áö ¸íÀ» ¸í½ÃÇÏ°Ô µÈ´Ù. ƯÁ¤ ¾ÆÅ°ÅÃó, À̸¦ Å׸é i386À̳ª alpha, sparcµîÀ» Àû¾îÁ൵ µÇ³ª º¸Åë any¶ó°í ¸í½ÃÇϸé ÇöÀç ºôµå µÇ°í ÀÖ´Â ¾ÆÅ°ÅÃó¿¡ µû¶ó ±âÀçµÇ°Ô µÈ´Ù. ÀÌ °÷¿¡ all À̶ó°í ¸í½ÃµÉ °æ¿ì ±× ÆÐÅ°Áö´Â plaform-independent ÇÑ ÆÐÅ°Áö·Î º¸Åë ¹®¼­ ÆÄÀÏÀ̳ª ½©½ºÅ©¸³Æ® ,Perl ½ºÅ©¸³Æ®µîÀÌ ÀÌ¿¡ ¼ÓÇÏ°Ô µÈ´Ù.

Depends ºÎºÐ¿¡´Â ${shilds:Depends}¶ó´Â ºÎºÐÀÌ »ðÀԵǾî Àִµ¥, À̺κÐÀº ÆÐÅ°Áö°¡ ºôµåµÉ ¶§ dpkg-shilbdeps ÇÁ·Î±×·¥À» ÅëÇØ ÇØ´çÆÐÅ°Áö·Î ġȯµÈ´Ù. Áï ¶óÀ̺귯¸®°¡ ÇÊ¿äÇÒ °æ¿ì lddµîÀÇ ÇÁ·Î±×·¥À» ÅëÇØ ÇÊ¿äÇÑ ¶óÀ̺귯¸®¸¦ ãÀº ÈÄ ¶óÀ̺귯¸®°¡ ¾î´À ÆÐÅ°Áö¿¡ ¼ÓÇÏ´ÂÁö üũÇÑ ÈÄ ÀÌ °÷¿¡ ±âÀçÇØ ÁÖ°Ô µÇ¾î ÀÖ´Ù.º¸Åë üũ ÈÄ Depends ¿¡ ¸í½ÃÇØ ÁÖ´Â ÆÐÅ°Áö´Â /etc/dpkg/shlibs.defaults¾È¿¡ ¸í½ÃÇØ ÁÖ´Â ÆÐÅ°Áö¿Í ±× ¹öÀü ¹øÈ£¸¦ µû¸£°Ô µÈ´Ù.

ÁÖÀÇÇÒ Á¡Àº ÆÐÅ°Áö ³»ºÎ¿¡¼­ ±æµåµÇ´Â ¹ÙÀ̳ʸ®°¡ ¾ø°í Ç÷§Æû¿¡ µ¶¸³ÀûÀÎ ÆÐÅ°Áö¶ó¸é ${shlibs:Depends}¶ó´Â ºÎºÐÀÇ ¿¡·¯°¡ ³ª¹Ç·Î all ÆÐÅ°Áö°¡ È®½ÇÇÏ´Ù¸é ±× ºÎºÐÀº »© ÁÖ¾î¾ß ÇÑ´Ù.

ÀÌÁ¦ ¸¶Áö¸· ºÎºÐÀÌ´Ù. Descrition ¿¡´Â dselect¸¦ ½ÇÇà½ÃŲ ÈÄ È­¸éÀÇ ÇÏ´Ü ºÎºÐ¿¡ ³ªÅ¸³ª´Â ÆÐÅ°ÁöÀÇ ¼³¸íÀ» Àû¾îÁÖ´Â ºÎºÐÀÌ´Ù ÆÐÅ°ÁöÀÇ Á¦¸ñÀº Description : ÈÄ¿¡ °£·«È÷ Àû¾îÁÖ°í ÆÐÅ°Áö¿¡ ´ëÇÑ ¼³¸íÀº ±× ´ÙÀ½ÁÙºÎÅÍ ¸Ç ¾Õ¿¡ ÇÑ Ä­À» ¶ç¿ì°í Àû¾î ³ª°¡¸é µÈ´Ù. ÇÑ ÁÙÀ» ¶ç·Á¸é ÁÙ ¸Ç ¾ÕÀ» ÇÑÄ­ ¶ç¿ì°í ¿¬´Þ¾Æ Á¡(dot)À» Âï¾îÁÖ¸é µÈ´Ù.

copyright

ÆÐÅ°Áö¸¦ ¸¸µé ¶§¿¡ »ç¿ëµÈ ¿ø ¼Ò½ºÀÇ ÀúÀÛ±ÇÀ» ¸í½ÃÇÑ´Ù. ¼Ò½ºÀÇ ÀúÀ۱ǿ¡ ¹«°¨°¢ ÇÑ °ÍÀÌ ¿ì¸®³ª¶ó »ç¶÷Àε¥ ÀÌ ÀúÀ۱ǿ¡ ¹«°¨°¢ÇÏ¸é ¾ÈµÈ´Ù Æ¯È÷ ÆÐÅ°Áö °ü¸®ÀÚ¿¡°Ô´Â ÀúÀÛ±ÇÀÇ ¹üÀ§¿¡ µû¶ó ÆÐÅ°Áö ¸¸µå´Â ÀÛ¾÷ÀÌ ÀÌ·ç¾îÁ®¾ß ÇÑ´Ù ¿Ö³ÄÇϸé ÆÐŰ¡À» ÅëÇØ ¸¸µé¾îÁø °ÍÀº °ø°ø¿¡ ¹èÆ÷°¡ µÇ´Â °ÍÀÌ°í ¿ø ÀúÀÛÀÚ°¡ Àç ¹èÆ÷¸¦ ±ÝÇϰųª, ¹ÙÀ̳ʸ® ÇüÅ·ÎÀÇ ¹èÆ÷¸¦ ¿øÇÏÁö ¾Ê´Â °æ¿ì°¡ Àֱ⠶§¹®ÀÌ´Ù. ³»ºÎ¸¦ º¸°í ºóÄ­¸¸ Àû´çÈ÷ °íÃÄ ³Ö¾îÁÖ¸é µÈ´Ù.

crontab, cron.daily cron,.weekly cron.monthly :

corntab¿¡´Â ¸¸¾à  ÀÌ ÆÐÅ°Áö°¡ crom¿¡ ÀÇÇØ ÁÖ±âÀûÀ¸·Î ½ÇÇàµÇ¾î¾ß ÇÏ´Â ÇÁ·Î±×·¥ÀÏ °æ¿ì crontab ÀÇ Çü½Ä¿¡ ¸ÂÃç ±âÀ縦 ÇØÁÖ¸é, ÀÚµ¿À¸·Î ¼³Ä¡ ÈÄ¿¡ /etc/crontabÀ» ¼öÁ¤ÇÏ°í cronÀ» Àç ½ÃÀÛÇÏ°Ô µÈ´Ù. cron.daily. cron.weekly, cron.monthly ´Â ½ºÅ©¸³Æ® ÆÄÀÏ·Î dselect¿¡ ÀÇÇØ ÀÚµ¿À¸·Î ¼³Ä¡µÈ´Ù.

dirs:

debstd¿¡ ÀÇÇØ È£ÃâµÇÁö´Â ¾ÊÀ¸³ª ºôµåµÇ¾î ÆÐÅ°Áö¸¦ ¸¸µé ¶§¿¡ ¸¸µé¾îÁú µð·ºÅ丮¸¦ ¸í½ÃÇÏ°Ô µÈ´Ù. º¸Åë ÀÌ ÆÄÀÏÀº ´ÙÀ½°ú °°ÀÌ ±âÀçµÇ°Ô µÈ´Ù.

usr/bin
 
usr/sbin

ÀÌ·¸°Ô ±âÀçµÈÈÄ debain/rules³»¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÀÌ¿ëµÈ´Ù.

binary-arch: checkroot build
 
                  $(checkdir)
 
                 -rm -rf debian/tmp
 
                  install -d debian/tmp
 
                  cd debian/tmp & & install -d cat../dirs
 
                  make install prefix =pwd/debian/tmp/usr

diversion

ÀÌ¹Ì ÀÖ´Â ÆÐÅ°Áö¿¡ °ãÄ¡Áö ¾Ê°í, ÃßÈÄÀÇ ÆÐÅ°Áö ¾÷±×·¹ÀÌµå ¶§¿¡´Â À̸¦ ¹æÁöÇÏ¿© ÁÙ ¼ö ÀÖ´Â ±â´ÉÀ» Á¦°øÇÑ´Ù. °£´ÜÈ÷ ¿¹¸¦ µé¸é ÀÌ·± °ÍÀÌ´Ù ¸¸¾à SSL º¸¾È ±â´ÉÀÌ ÀÖ´Â ¾ÆÆÄÄ¡ À¥µ¥¸óÀ» ¼³Ä¡ÇÏ°í ½ÍÀºµ¥ ÀÌ·² °æ¿ì ±âÁ¸ÀÇ SSLº¸¾È ±â´ÉÀÌ ¾ø´Â À¥µ¥¸ó¿¡ °ãÃÄ ½áÁö°Ô µÇ´Â ¹®Á¦Á¡ÀÌ ¹ß»ýÇÑ´Ù. ÀÌ·² °æ¿ì diverisionÆÄÀÏ¿¡ À̸¦ ¸í½ÃÇÏ¿© SSLº¸¾È±â´ÉÀÌ ¾ø´Â À¥µ¥¸óÀ» ´Ù¸¥ À̸§À¸·Î ¹Ù²Ù¾î ³õÀº ÈÄ ( À̸¦Å׸é apach.nossl) À̸¦ ÆÐÅ°Áö °ü¸®ÀÚ¿¡°Ô ¾Ë·ÁÁ־ ³ªÁß¿¡ º¸¾È ±â´ÉÀÌ ¾ø´Â À¥µ¥¸óÀ» ¼³Ä¡ÇÒ ¶§ apache¸¦ ¼³Ä¡ÇÏ°Ô µÇ¸é apache.nossl ·Î ÀνÄÇϵµ·Ï ÇÏ´Â °ÍÀÌ´Ù. ÀÌ·¸°Ô ÇÏ¸é º¸¾È ±â´ÉÀÌ ¾ø´Â ¾ÆÆÄÄ¡ À¥µ¥¸óÀÌ ÆÐÅ°Áö·Î ¾÷±×·¹À̵尡 µÇ´õ¶ó°í º¸¾È ±â´ÉÀÌ ÀÖ´Â À¥µ¥¸óÀ» Áö¿ìÁö ¾Ê°í ¾÷±×·¹À̵带 ÇÒ ¼ö ÀÖ°Ô µÈ´Ù.

inetd.conf :

ÀÌ ÆÄÀÏ¿¡ ±â·ÏµÈ °ÍÀº ÆÐÅ°Áö°¡ ¼³Ä¡µÉ ¶§ /etc/inetd.conf¸¦ ÀÚµ¿À¸·Î ¼öÁ¤ÇÏ¿© ÁÖ°Ô µÈ´Ù.

postinst , postrm preinst, prerm

ÀÌ°ÍÀº ÆÐÅ°Áö ¼³Ä¡¶§ »ç¿ëµÇ´Â ½ºÅ©¸³Æ®µéÀÌ´Ù. ÀÌ ½ºÅ©¸³Æ®´Â ¼¿ ½ºÅ©¸³Æ®³ª ÆÞ ½ºÅ©¸³Æ®·Î ¸¸µé¾îÁö°Ô µÈ´Ù. ¾Õ¿¡¼­ºÎÅÍ Â÷·Ê´ë·Î º¸¸é postinst ´Â ÆÐÅ°Áö¸¦ unpackÇÑ ÈÄ¿¡ ½ÇÇàµÇ¸ç , postrm´Â ÆÐÅ°Áö¸¦ remove ÇÑ ÈÄ¿¡ ½ÇÇàµÇ°í preinst´Â ÆÐÅ°Áö¸¦ remove Çϱâ Àü¿¡ ½ÇÇàµÈ´Ù. Á» º¹ÀâÇÑ °Í°°Áö¸¸ º¹ÀâÇÑ °ÍÀº ¾Æ´Ï°í À̸¦ ¾ó¸¶³ª È¿°úÀûÀ¸·Î »ç¿ëÇÏ´À³Ä¿¡ µû¶ó ÆÐÅ°Áö ¼³Ä¡ÀÇ ¹«°á¼ºÀÌ ÀÔÁõµÉ ¼ö ÀÖ´Ù ¹«¾ùº¸´Ùµµ ÆÐŰ¡Àº ÇϳªÀÇ ÇÁ·Î±×·¡¹Ö°ú °°¾Æ¼­ ¾î¶°ÇÑ »óȲ¿¡¼­µµ ¹®Á¦¾øÀÌ ¼³Ä¡µÇ°í , ¾î¶°ÇÑ »óȲÀÌ¶óµµ ±× ¿¹¿Ü 󸮰¡ Á¤È®È÷ ÀÌ·ç¾îÁ®¾ß ÇÑ´Ù GUN Hello ÇÁ·Î±×·¥ÀÇ postinst¿Í prerm ÆÄÀÏÀ» ÷ºÎÇÑ´Ù. Âü°í°¡ µÇ±æ ¹Ù¶õ´Ù.

#!/bin/sh
 
set -e
 
install-info -description ='GNU Hello. Print a classic greeting.\
 
              -quite/usr/info/hello.info

GNU Hello ÀÇ debian/postinst

#!/bin/sh
 
set-e
 
install-info -quiet -remove/usr/hello.info

GNU HelloÀÇ debian/prerm

conffles

º¸Åë /etc µð·ºÅ丮¿¡ ¼³Ä¡µÇ´Â configuration files µé (¿¹¸¦ µé¾î *.conf ¿Í °°Àº °Íµé)À» ¸í½ÃÇØ ³õ°Ô µÈ´Ù ÀÌ·¸°Ô Çϸé ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÒ ¶§ ¼³Á¤ÆÄÀÏÀÌ Á¸ÀçÇϸé ÀÌ ÆÄÀÏ¿¡ µ¤¾î ¾²±â¸¦ ÇÏ¿© ÆÐÅ°Áö¿Í ÇÔ²² ¹èÆ÷µÇ´Â ¼³Á¤ÆÄÀÏÀ» ¼³Ä¡ÇÒÁö ¾Æ´Ï¸é ±×´ë·Î ³öµÑ °ÍÀÎÁö¸¦ ¹°¾î¿À°Ô µÈ´Ù ¶ÇÇÑ dpkg-remove <ÆÐÅ°ÁöÀ̸§>À» ÅëÇØ ÆÐÅ°ÁöÀÇ »èÁ¦¸¦ ÇÒ °æ¿ì ÀÌ°÷¿¡ ¸í½ÃµÈ ÆÄÀÏÀº Á¦¿ÜÇÏ°Ô µÈ´Ù.

rules :

°¡Àå Áß¿äÇÑ ÆÄÀÏÀÌ´Ù. ÀÌ ÆÄÀÏÀº º¸Åë Makefile ÀÇ Çü½ÄÀ» µû¸£°í ÀÖ´Ù. ÀÌ ÆÄÀÏÀº °¡Àå ¸¸µé±â ¾î·Æ±âµµ ÇÏÁö¸¸ ¸Å¿ì °£´ÜÇϱ⵵ ÇÏ´Ù GNU Hello¸¦ ¸¸µé¾î ³¾ ¶§´Â ÀϹÝÀûÀÎ GNU  ÇÁ·Î±×·¥ÀÌ ±×·¯ÇÏÁö¸¸ ´ÙÀ½°ú °°Àº ÀýÂ÷¸¦ ÅëÇØ ¼³Ä¡°¡ µÈ´Ù.

$./configure
 
$./make
 
$./make install

ÀÌ¿¡ ´ëÇØ debian/rulesÆÄÀÏ¿¡ ±âÀ縦 ÇØÁÖ¸é µÇ´Â °ÍÀÌ´Ù.

GNU  Hello ÆÐÅ°Áö¸¦ ¸¸µé¾î³¾ ¶§ »ç¿ëµÇ´Â rules ÆÄÀÏÀº ¾î¶»°Ô ±âÀç°¡ µÇ¾î ÀÖ´ÂÁö º¸µµ·Ï ÇÏÀÚ

#! /usr/bin/make -f
 
# Sample debian.rules file -for GNU Hello(1.3)
 
# Copyright 1994 ,1995 by lan Jackson
 
# I hereby give you perpetual unlimited permission to copy
 
# modify and relicence this file , provided that you do not remove
 
# my name from the file it self (I assert my moral right of
 
# paternity under the Copyright . Designs and Patents Act 1988)
 
# This file may have to be extensively modified
 
# There used to be source and diff targets in this file, an many
 
# package also had changes' and dist' targets These functions
 
# have been taken over by dpkg-source. dpkg-genchages and
 
# dpkg- buildpackage in a package-indepandent way, and so these targets
 
# are obsolete
 
package= hello
 
build:
 
             $(checkdir)
 
             ./configure-prefix= /usr
 
             $(MAKE) CFLAGS =-O2 LDFLAGS=
 
            touch build
 
clean:
 
            $(checkdir)
 
            -rm -f build
 
            -$(MAKE) -i distclean ||$ (MAKE) -f Makefile.in distclean
 
            -rm -rf* ~ debian/tmp debian/*~ debian/files* debian/substvars
 
bibary-indep : checkroot build
 
            $(checkdir)
 
# There are no architecture-independent files to be unloaded
 
# generated by this package. If there were any they would be
 
# made here
 
binary-arch: checkroot build
 
              $(checkdir)
 
              -rm -rf debian /tmp
 
              install -d debian/tmp  debian/tmp/DEBIAN
 
              install -d debian/tmp/usr/doc/$(package)
 
             cp debian/{postinst.prerm} debian/tmp/DEBIAN
 
             cdmod + X debian/tmp/DEBIAN/{postinst.prerm}
 
             $(MAKE) CFLAGS=-o2 LDFAGS=-s install_program='install-c-s'\
 
                    prefix=debian/tmp/usr install
 
             gzip -9v debian/tmp/usr/info/*
 
             cp debian/copyright debian/tmp/usr/doc/$(Package)/.
 
             cp debian/changelog debian/tmp/doc/$(package)/changelog.Debian
 
 
             cp Changelog debian/tmp/usr/doc/$(package)/changelog
 
 
             gzip -9v debian/tmp/usr/doc/$(package)/changelog{,.Debian}
 
 
             dpkg -shlibdeps hello
 
             dpkg-gencontrol
 
             chown -R root.root debian/tmp
 
             chmod -R g -ws debian.tmp
 
             dpkg -bulid debian.tmp..
 
define checkdir
 
            test -f $(package).c -a -f debian/rules
 
endef
 
# Below here is fairly generic really
 
binary :    binary-indep binary-arch
 
source diff :
 
             @echo> &2'source and diff are obsolete - use dpkg -source -b' :false
 
checkroot:
 
             $(checkdir)
 
             test root = "whoami"
 
.PHONY : binary bibary-arch-indep clean checkroot

±×¹Û¿¡ ¸Å¿ì ¸¹Àº °ü·ÃÆÄÀÏÀÌ Á¸ÀçÇÑ´Ù. debian/µð·ºÅ丮 ³»¿¡ Á¸ÀçÇÏ´Â ÆÄÀÏÀº ÇϳªÇϳª ±× ¾²ÀÓ»õ°¡ ÀÖÀ¸¸ç, ÆÐŰ¡À» ÇÒ ¶§ ²Ï µµ¿òÀ» ÁÖ´Â ÆÄÀÏÀÌ´Ù. ÀÚ¼¼ÇÑ °ÍÀº debstd(1)¸¦ ÂüÁ¶Çϱ⠹ٶõ´Ù .

ÆÐŰ¡ ÀýÂ÷ ³¡, ÀÌÁ¦ ºôµåÇØ º¸ÀÚ

Âü Áö·çÇÏÁö¸¸ Èûµç ÀÏÀº ´ëÃæ ³¡³µ´Ù. ÆÐŰ¡½Ã¿¡´Â changelog,control, rules ÆÄÀÏÀÌ ¿ì¼±ÀûÀ¸·Î ¸¸µé¾îÁø´Ù.

´Ù µÇ¾úÀ¸¸é hello -1.3 µð·ºÅ丮·Î À̵¿ÇÑ ÈÄ ´ÙÀ½°ú °°ÀÌ Å¸ÀÌÇÎÇÑ´Ù.

$debian/rules build

ÀÌ·¸°Ô Çϸé ÄÄÆÄÀÏÀ» ÇÑÈÄ ¸¶Áö¸· ÁÙ¿¡¼­ touch bulid¸¦ ÅëÇØ ÆÐÅ°ÁöÀÇ build ÀýÂ÷°¡ ¸¶ÃÄÁ³À½À» ¾Ë·ÁÁØ´Ù. ÀÌÁ¦´Â ÀÌ°ÍÀ» µ¥ºñ¾È ¹ÙÀ̳ʸ®·Î ¸¸µé Â÷·ÊÀÌ´Ù.

ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½°ú °°ÀÌ Å¸ÀÌÇÎÇÑ´Ù. ÀÌÀýÂ÷¸¦ Çϱâ Àü¿¡ root ±ÇÇÑ ÀÌ ÀÖ¾î¾ß ÇÑ´Ù.

$debian/rules binary

¸Ç ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½°ú °°ÀÌ ¸Þ½ÃÁö°¡ ³ª¿Â´Ù¸é ¼º°øÀÌ´Ù.

ÀÌ·¸°Ô ÇÑ ÈÄ ¹Ù·Î »óÀ§ µð·ºÅ丮¿¡ ¿øÇÏ´Â ÆÐÅ°Áö°¡ ¸¸µé¾î º´Ù¸?ó³àÀÛÀÎ GNU  Hello ÆÐŰ¡Àº ³¡³ª°Ô µÈ ¼ÀÀÌ´Ù.

dpkg - build debian/tmp..
 
dpkg-deb : building package hello'in../hello_1.3-1_i386.deb'.

¼Ò½ºÆÐÅ°Áö °ü¸®

¾ÆÁÖ °£´ÜÇÑ ÀϺκп¡ ´ëÇؼ­ ¼³¸íÇؼ­ ¿©·¯ºÐµéÀÌ ±Øµµ·Î(?) ´çȲÇÏ¿´°Å³ª Çì¸Þ´Â »çÅ°¡ ÀÖÁö ¾Ê¾Ò´ÂÁö ¸ð¸£°Ú´Ù. ¹«¾ùÀ̳ª ¸¶Âù °¡Áö°ÚÀ¸³ª , ¹é¹®ÀÌ ºÒ¿© ÀÏ°ßÀÌ´Ù. ÇÊÀÚ´Â ³Ê¹« °£´ÜÇÑ ³»¿ë¸¸À» Àü´ÞÇß´ÂÁö ¸ð¸£°Ú´Ù. . ÀÌÁ¦ ¿©·¯ºÐµéÀÌ ÇÒ ÀÏÀº ÆÐÅ°Áö¼Ò½º¸¦ »ìÆ캸°í ±× ÀÛµ¿¿ø¸®¸¦ ÃßÃøÇغ¸´Â °ÍÀÌ °¡Àå Çö¸íÇÑ ÀÏÀÌ´Ù ÆÐÅ°Áö¸¦ ¸¸µé¾î ³ÂÀ¸¸ç dpkg-source ÇÁ·Î±×·¥À» ÀÌ¿ëÇÏ¿© ¹èÆ÷¸¦ ÁغñÇÏ¿©¾ß ÇÑ´Ù.

µ¥ºñ¾È ¼Ò½º ÆÐÅ°Áö´Â ´ÙÀ½°ú °°Àº Çü½ÄÀ» µû¸¥´Ù.

À§ÀÇ ¼¼°¡Áö°¡ µ¥ºñ¾È ¼Ò½ºÆÐÅ°Áö¸¦ ÀÌ·é´Ù. ÀÌ ¼Ò½ºÆÐÅ°Áö¸¦ Ç®¾î³»´Â ¹æ¹ýÀº °£´ÜÇÏ´Ù ÃßÈÄ¿¡ ¼Ò½º¸¦ ¹Þ¾Æ¼­ ÄÄÆÄÀÏÇÑ´Ù´ø°¡ ȤÀº ¸î °¡Áö ¼öÁ¤ÇÏ¿© »õ·Î¿î ÆÐÅ°Áö¸¦ ¸®ºôµåÇÒ ¶§¿¡ »ç¿ëÇÒ ¼ö ÀÖ°Ú´Ù.

<ÆÐÅ°ÁöÀ̸§>_<¹öÀü¹øÈ£>_<¸®ºñÀü ¹øÈ£>.dsc
 
<ÆÐÅ°ÁöÀ̸§>_<¹öÀü¹øÈ£>_<¸®ºñÀü¹øÈ£>.diff.gz(¾øÀ»¼öµµ ÀÖÀ½)
 
<ÆÐÅ°ÁöÀ̸§>_<¹öÀü¹øÈ£>_orig.tar.gz

ÆÐÅ°Áö¸¦ Ç®¾î³»´Â ¹æ¹ýÀº ´ÙÀ½°ú °°´Ù.

$ dpkg-source-x <ÆÐÅ°ÁöÀ̸§>_<¹öÀü¹øÈ£><¸®ºñÀü¹øÈ£>.dsc

ÀÌ·¸°Ô ÇÏ¸é  µ¥ºñ¾È ¼Ò½º ÆÐÅ°Áö°¡ Ç®·Á ³ª¿À°Ô µÈ´Ù.

¸¶Ä¡¸ç

µ¥ºñ¾È ÆÐŰ¡ ÇÏ´Â ¹æ¹ýÀ» ·¹µåÇÞ°ú ºñ±³ÇÒ ¶§ Á» ¾Ë¾Æ¾ß µÇ´Â °ÍÀÌ ¸¹´Ù´Â Á¡ÀÌ ÈìÀÌ´Ù. ÇÏÁö¸¸ Á¶±Ý¸¸ ¸Ó¸®¸¦ ¾²¸é ±Ý¼¼ ¸¸µé¾î ³¾ ¼ö ÀÖ´Â °ÍÀÌ µ¥ºñ¾È ÆÐÅ°Áö À̱⵵ ÇÏ´Ù.

¶ÇÇÑ µ¥ºñ¾ÈÀº °¢ ¹èÆ÷º» °£ÀÇ ¿ì¼öÇÑ À̽ļºµµ Á¦°øÇÑ´Ù. alien ÆÐÅ°Áö¸¦ ÅëÇØ rpm. tgz Áï ·¹µåÇÞ°ú ½½·º¿þ¾î ÀÇ ÆÐÅ°Áö¸¦ µ¥ºñ¾ÈÆÐÅ°Áö·Î ¸¸µé¾î³¾ ¼öµµ ÀÖ´Ù. ¾î¶»°Ô Çϴ°¡´Â ¿©·¯ºÐÀÇ ¼Õ¿¡ ´Þ·È´Ù. ÇÊÀÚÀÇ ¹Ù·¥Àº ¾î¶² ƯÁ¤ÇÑ »ç¶÷ÀÌ ÆÐŰ¡ÇÏ°í ±× ÆÐŰ¡ ÇÑ °ÍÀ» ¿©·¯ »ç¶÷ÀÌ ¾²´Â °Íº¸´Ù ¿©·¯ »ç¶÷ÀÌ ÇÔ²² ¸¸µé¾î¼­ °øÀ¯ÇÏ´Â °ÍÀ» ¹Ù¶õ´Ù. ´õ ¸¹Àº »ç¶÷µéÀÌ ÆÐŰ¡¿¡ Âü¿©ÇÏ°í ¾ÕÀ¸·Î ÀÌ ÆÐŰ¡ ÀÛ¾÷À» ÅëÇØ µ¥ºñ¾È °ø½Ä ¹èÆ÷º»¿¡ ÇÁ·Î±×·¥ÀÌ µé¾î°¡°Ô µÈ´Ù¸é ±×º¸´Ù ´õ ÁÁÀº ÀÏÀÌ ¾îµð ÀÖÀ»±î ?

ÀÌ¹Ì ÀϺ»Àº konÀÌ µ¥ºñ¾È 2.0 °ø½Ä ¹èÆ÷º»¿¡ µé¾î°¡°Ô µÇ¾ú´Ù ¿ì¸®µµ ¹º°¡ ³ë·ÂÇØ¾ß ÇÏÁö ¾ÊÀ»±î ?

µ¥ºñ¾È ÆÐÅ°Áö °ü¸®ÀÚ°¡ µÇ±â À§ÇÑ ÀýÂ÷¿Í Á¶°ÇÀ» ¼³¸íÇÑ ÆÐÅ°Áö´Â developers-reference_2.0.deb ÀÌ´Ù. ÀÌ ÆÐÅ°Áö¸¦ ÂüÁ¶ÇÏ±æ ¹Ù¶õ´Ù.

ÃÑ 3ȸ¿¡ °ÉÄ£ µ¥ºñ¾È ±â»ç°¡ À̹øÈ£·Î ¸¶¹«¸® µÇ°Ô µÇ¾ú´Ù. ÇÊÀÚ³ª¸§´ë·Î ½±°Ô Àü´ÞÇÏ·Á ³ë·ÂÇߴµ¥ ¹ÌÈíÇÑ ºÎºÐÀÌ ¸¹¾ÒÀ¸¸®¶ó »ý°¢ÇÑ´Ù. ³»³âÃÊ¿¡ Debian-KRÇÁ·ÎÁ§Æ®°¡ ¸¶¹«¸®µÇ¾î ¿©·¯ºÐ ¾Õ¿¡ ¼±À» º¸ÀÏ °ÍÀÌ´Ù ¿©·¯ºÐµµ Debian ÀÇ ÆÐÅ°Áö °ü¸®ÀÚ·Î ÇÒµ¿Çغ½ÀÌ ¾î¶³±î . ¸î °¡Áö Âü°í µÉ ¸¸ÇÑ URLÀ» ÷ºÎÇÑ´Ù. ¿©·¯ºÐµé¿¡°Ô µµ¿òÀÌ µÇ¾úÀ¸¸é ÁÁ°Ú´Ù.

Resource

http://www.debian.org.international.html  ÇöÀç µ¥ºñ¾ÈÀÇ ±¹Á¦È­°¡ ÀÌ·ç¾îÁö´Â »óȲ¿¡ ´ëÇØ ¾Ë ¼ö ÀÖ´Ù.

http://www.denian.org/developers_corner.html -µ¥ºñ¾È ¹èÆ÷º» °³¹ßÀÚ¸¦ À§ÇÑ ÄÚ³Ê

ftp://ftp.debian.org - µ¥ºñ¾È °ø½Ä ¹èÆ÷ »çÀÌÆ®

ftp://doit.ajou.ac.kr/pub/debian-kr - Debian-KR °ø½Ä ¹èÆ÷ »çÀÌÆ®

http://www.linux.or.jp JLUG  È¨ÆäÀÌÁö

http://www.debian.linux.or.jp Debian-JP ȨÆäÀÌÁö

 

Debian Gnu/Linux 1 ¼Ò°³¿Í dselect »ç¿ë¹ý

Debian Gnu/Linux 2 Áß°£¼öÁØÀÇ ÆÐÅ°Áö °ü¸® ÇÁ·Î±×·¥ dpkg-


 À̱ÛÀº ¸®´ª½º¿ùµå '97³â 12¿ùÈ£ ±â»çÀÔ´Ï´Ù.