home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / INN / SLACKBUI < prev   
Encoding:
Text File  |  1995-04-20  |  6.9 KB  |  139 lines

  1. #!/bin/sh
  2. # Set initial variables:
  3. CWD=`pwd`
  4. if [ "$TMP" = "" ]; then
  5.   TMP=/tmp
  6. fi
  7. PKG=$TMP/package-inn
  8. SRC=/devel/manpagesrc
  9. INFO=/devel/info-pages/usr/info
  10. TEX=/devel/texinfo-docs
  11.  
  12. if [ ! -d $TMP ]; then
  13.   mkdir -p $TMP # location to build the source
  14. fi
  15. if [ ! -d $PKG ]; then
  16.   mkdir -p $PKG # place for the package to be built
  17. fi
  18.  
  19. # Explode the package framework:
  20. cd $PKG
  21. tar xzvf $CWD/_inn.tar.gz
  22.  
  23. # Function to handle manpage source:
  24. man2gz () { # $1 is source page name, $2 is target name for preformatted
  25.             # output (full path && name) and $3 is the same, but for the
  26.             # source.
  27.   mkdir -p `dirname $2`
  28.   groff -Tascii -mandoc $1 | gzip -9c > $2
  29.   if [ ! "$3" = "" ]; then
  30.     mkdir -p `dirname $3`
  31.     cat $1 > $3 
  32.   fi 
  33. }
  34.  
  35. echo "+========+"
  36. echo "| inn1.4 |"
  37. echo "+========+"
  38. cd $TMP
  39. tar xzvf $CWD/inn1.4.tar.gz
  40. cd inn
  41. make all
  42. cd frontends
  43. cat inews > $PKG/usr/lib/news/inews
  44. cat rnews > $PKG/usr/lib/news/rnews
  45. cat ctlinnd > $PKG/usr/lib/news/bin/ctlinnd
  46. cat getlist > $PKG/usr/lib/news/bin/getlist
  47. cat innconfval > $PKG/usr/lib/news/bin/innconfval
  48. cat encode > $PKG/usr/lib/news/bin/rnews/encode
  49. cat decode > $PKG/usr/lib/news/bin/rnews/decode
  50. cd ../backends
  51. cat archive > $PKG/usr/lib/news/bin/archive
  52. cat batcher > $PKG/usr/lib/news/bin/batcher
  53. cat buffchan > $PKG/usr/lib/news/bin/buffchan
  54. cat cvtbatch > $PKG/usr/lib/news/bin/cvtbatch
  55. cat filechan > $PKG/usr/lib/news/bin/filechan
  56. cat innxmit > $PKG/usr/lib/news/bin/innxmit
  57. cat nntpget > $PKG/usr/lib/news/bin/nntpget
  58. cat overchan > $PKG/usr/lib/news/bin/overchan
  59. cat shlock > $PKG/usr/lib/news/bin/shlock
  60. cat shrinkfile > $PKG/usr/lib/news/bin/shrinkfile
  61. cd ../expire
  62. cat convdate > $PKG/usr/lib/news/bin/convdate
  63. cat expire > $PKG/usr/lib/news/bin/expire
  64. cat expireover > $PKG/usr/lib/news/bin/expireover
  65. cat fastrm > $PKG/usr/lib/news/bin/fastrm
  66. cat grephistory > $PKG/usr/lib/news/bin/grephistory
  67. cat makeactive > $PKG/usr/lib/news/bin/makeactive
  68. cat makehistory > $PKG/usr/lib/news/bin/makehistory
  69. cat newsrequeue > $PKG/usr/lib/news/bin/newsrequeue
  70. cat prunehistory > $PKG/usr/lib/news/bin/prunehistory
  71. cd ../innd
  72. cat innd > $PKG/usr/lib/news/etc/innd
  73. cat inndstart > $PKG/usr/lib/news/etc/inndstart
  74. cd ../nnrpd
  75. cat nnrpd > $PKG/usr/lib/news/etc/in.nnrpd
  76. cd ../doc
  77. man2gz convdate.1 $PKG/usr/man/preformat/cat1/convdate.1.gz $SRC/usr/man/man1/convdate.1
  78. man2gz getlist.1 $PKG/usr/man/preformat/cat1/getlist.1.gz $SRC/usr/man/man1/getlist.1
  79. man2gz grephistory.1 $PKG/usr/man/preformat/cat1/grephistory.1.gz $SRC/usr/man/man1/grephistory.1
  80. man2gz inews.1 $PKG/usr/man/preformat/cat1/inews.1.gz $SRC/usr/man/man1/inews.1
  81. man2gz innconfval.1 $PKG/usr/man/preformat/cat1/innconfval.1.gz $SRC/usr/man/man1/innconfval.1
  82. man2gz installit.1 $PKG/usr/man/preformat/cat1/installit.1.gz $SRC/usr/man/man1/installit.1
  83. man2gz nntpget.1 $PKG/usr/man/preformat/cat1/nntpget.1.gz $SRC/usr/man/man1/nntpget.1
  84. man2gz rnews.1 $PKG/usr/man/preformat/cat1/rnews.1.gz $SRC/usr/man/man1/rnews.1
  85. man2gz shlock.1 $PKG/usr/man/preformat/cat1/shlock.1.gz $SRC/usr/man/man1/shlock.1
  86. man2gz shrinkfile.1 $PKG/usr/man/preformat/cat1/shrinkfile.1.gz $SRC/usr/man/man1/shrinkfile.1
  87. man2gz subst.1 $PKG/usr/man/preformat/cat1/subst.1.gz $SRC/usr/man/man1/subst.1
  88. man2gz clientlib.3 $PKG/usr/man/preformat/cat3/clientlib.3.gz $SRC/usr/man/man3/clientlib.3
  89. man2gz dbz.3 $PKG/usr/man/preformat/cat3/dbz.3.gz $SRC/usr/man/man3/dbz.3
  90. man2gz inndcomm.3 $PKG/usr/man/preformat/cat3/inndcomm.3.gz $SRC/usr/man/man3/inndcomm.3
  91. man2gz libinn.3 $PKG/usr/man/preformat/cat3/libinn.3.gz $SRC/usr/man/man3/libinn.3
  92. man2gz parsedate.3 $PKG/usr/man/preformat/cat3/parsedate.3.gz $SRC/usr/man/man3/parsedate.3
  93. man2gz qio.3 $PKG/usr/man/preformat/cat3/qio.3.gz $SRC/usr/man/man3/qio.3
  94. man2gz strcasecmp.3 $PKG/usr/man/preformat/cat3/strcasecmp.3.gz $SRC/usr/man/man3/strcasecmp.3
  95. man2gz wildmat.3 $PKG/usr/man/preformat/cat3/wildmat.3.gz $SRC/usr/man/man3/wildmat.3
  96. man2gz active.5 $PKG/usr/man/preformat/cat5/active.5.gz $SRC/usr/man/man5/active.5
  97. man2gz control.ctl.5 $PKG/usr/man/preformat/cat5/control.ctl.5.gz $SRC/usr/man/man5/control.ctl.5
  98. man2gz distrib.pats.5 $PKG/usr/man/preformat/cat5/distrib.pats.5.gz $SRC/usr/man/man5/distrib.pats.5
  99. man2gz expire.ctl.5 $PKG/usr/man/preformat/cat5/expire.ctl.5.gz $SRC/usr/man/man5/expire.ctl.5
  100. man2gz history.5 $PKG/usr/man/preformat/cat5/history.5.gz $SRC/usr/man/man5/history.5
  101. man2gz hosts.nntp.5 $PKG/usr/man/preformat/cat5/hosts.nntp.5.gz $SRC/usr/man/man5/hosts.nntp.5
  102. man2gz inn.conf.5 $PKG/usr/man/preformat/cat5/inn.conf.5.gz $SRC/usr/man/man5/inn.conf.5
  103. man2gz innwatch.ctl.5 $PKG/usr/man/preformat/cat5/innwatch.ctl.5.gz $SRC/usr/man/man5/innwatch.ctl.5
  104. man2gz moderators.5 $PKG/usr/man/preformat/cat5/moderators.5.gz $SRC/usr/man/man5/moderators.5
  105. man2gz newsfeeds.5 $PKG/usr/man/preformat/cat5/newsfeeds.5.gz $SRC/usr/man/man5/newsfeeds.5
  106. man2gz newslog.5 $PKG/usr/man/preformat/cat5/newslog.5.gz $SRC/usr/man/man5/newslog.5
  107. man2gz nnrp.access.5 $PKG/usr/man/preformat/cat5/nnrp.access.5.gz $SRC/usr/man/man5/nnrp.access.5
  108. man2gz nntpsend.ctl.5 $PKG/usr/man/preformat/cat5/nntpsend.ctl.5.gz $SRC/usr/man/man5/nntpsend.ctl.5
  109. man2gz overview.fmt.5 $PKG/usr/man/preformat/cat5/overview.fmt.5.gz $SRC/usr/man/man5/overview.fmt.5
  110. man2gz passwd.nntp.5 $PKG/usr/man/preformat/cat5/passwd.nntp.5.gz $SRC/usr/man/man5/passwd.nntp.5
  111. man2gz archive.8 $PKG/usr/man/preformat/cat8/archive.8.gz $SRC/usr/man/man8/archive.8
  112. man2gz batcher.8 $PKG/usr/man/preformat/cat8/batcher.8.gz $SRC/usr/man/man8/batcher.8
  113. man2gz buffchan.8 $PKG/usr/man/preformat/cat8/buffchan.8.gz $SRC/usr/man/man8/buffchan.8
  114. man2gz ctlinnd.8 $PKG/usr/man/preformat/cat8/ctlinnd.8.gz $SRC/usr/man/man8/ctlinnd.8
  115. man2gz cvtbatch.8 $PKG/usr/man/preformat/cat8/cvtbatch.8.gz $SRC/usr/man/man8/cvtbatch.8
  116. man2gz expire.8 $PKG/usr/man/preformat/cat8/expire.8.gz $SRC/usr/man/man8/expire.8
  117. man2gz expireover.8 $PKG/usr/man/preformat/cat8/expireover.8.gz $SRC/usr/man/man8/expireover.8
  118. man2gz fastrm.8 $PKG/usr/man/preformat/cat8/fastrm.8.gz $SRC/usr/man/man8/fastrm.8
  119. man2gz filechan.8 $PKG/usr/man/preformat/cat8/filechan.8.gz $SRC/usr/man/man8/filechan.8
  120. man2gz innd.8 $PKG/usr/man/preformat/cat8/innd.8.gz $SRC/usr/man/man8/innd.8
  121. man2gz innxmit.8 $PKG/usr/man/preformat/cat8/innxmit.8.gz $SRC/usr/man/man8/innxmit.8
  122. man2gz news-recovery.8 $PKG/usr/man/preformat/cat8/news-recovery.8.gz $SRC/usr/man/man8/news-recovery.8
  123. man2gz news.daily.8 $PKG/usr/man/preformat/cat8/news.daily.8.gz $SRC/usr/man/man8/news.daily.8
  124. man2gz newslog.8 $PKG/usr/man/preformat/cat8/newslog.8.gz $SRC/usr/man/man8/newslog.8
  125. man2gz nnrpd.8 $PKG/usr/man/preformat/cat8/nnrpd.8.gz $SRC/usr/man/man8/nnrpd.8
  126. man2gz nntpsend.8 $PKG/usr/man/preformat/cat8/nntpsend.8.gz $SRC/usr/man/man8/nntpsend.8
  127. man2gz overchan.8 $PKG/usr/man/preformat/cat8/overchan.8.gz $SRC/usr/man/man8/overchan.8
  128. man2gz prunehistory.8 $PKG/usr/man/preformat/cat8/prunehistory.8.gz $SRC/usr/man/man8/prunehistory.8
  129.  
  130. # Build the package:
  131. cd $PKG
  132. tar czvf $TMP/inn.tgz .
  133.  
  134. # Clean up the extra stuff:
  135. if [ "$1" = "--cleanup" ]; then
  136.   rm -rf $TMP/inn
  137.   rm -rf $PKG
  138. fi
  139.