talimat 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. # Tanım: iptables ayarlamaları için güçlü bir arayüz uygulaması
  2. # URL: http://www.vuurmuur.org
  3. # Paketçi: milisarge
  4. # Gerekler: libnetfilter_log iptables libjpeg-turbo
  5. # Grup: ağ
  6. isim=vuurmuur
  7. _isim=Vuurmuur
  8. surum=0.8rc2
  9. devir=1
  10. kaynak=(ftp://ftp.vuurmuur.org/releases/$surum/$_isim-$surum.tar.gz)
  11. derle() {
  12. cd Vuurmuur-$surum
  13. chown -R root:root .
  14. for file in libvuurmuur vuurmuur vuurmuur_conf ; do
  15. tar xfvz $file-$surum.tar.gz
  16. done
  17. chown -R root:root .
  18. CFLAGS="$SLKCFLAGS" \
  19. cd libvuurmuur-$surum
  20. ./configure \
  21. --prefix=/usr \
  22. --sysconfdir=/etc
  23. make
  24. mkdir -p $PKG/usr/lib
  25. ( cd src/.libs/
  26. for file in libvuurmuur.a libvuurmuur.so.0.6.0 ; do
  27. cat $file > $PKG/usr/lib/$file
  28. done
  29. )
  30. #replace "installed=no" "installed=yes" -- $PKG/usr/lib/libvuurmuur.la
  31. mkdir -p $PKG/usr/include
  32. ( cd src
  33. #strip --strip-unneeded vuurmuur.h
  34. cat vuurmuur.h > $PKG/usr/include/vuurmuur.h
  35. )
  36. cd $PKG/usr/lib
  37. ln -s libvuurmuur.so.0.6.0 libvuurmuur.so.0
  38. ln -s libvuurmuur.so.0.6.0 libvuurmuur.so
  39. cd $SRC/Vuurmuur-$surum/vuurmuur-$surum
  40. ./configure \
  41. --prefix=/usr \
  42. --sysconfdir=/etc \
  43. --with-libvuurmuur-includes=$PKG/usr/include \
  44. --with-libvuurmuur-libraries=$PKG/usr/lib
  45. make
  46. mkdir -p $PKG/usr/bin
  47. for file in vuurmuur vuurmuur_log vuurmuur_script ; do
  48. ( cd $file
  49. strip --strip-unneeded $file
  50. cat $file > $PKG/usr/bin/$file
  51. chmod 755 $PKG/usr/bin/$file
  52. )
  53. done
  54. mkdir -p $PKG/etc/rc.d/init.d
  55. mkdir -p $PKG/etc/logrotate.d
  56. ( cd scripts
  57. cat rc.vuurmuur > $PKG/etc/rc.d/init.d/vuurmuur
  58. cat vuurmuur-logrotate > $PKG/etc/logrotate.d/vuurmuur
  59. )
  60. #replace "VUURMUUR_LOCATION=/usr/local/bin" "VUURMUUR_LOCATION=/usr/bin" -- $PKG/etc/rc.d/init.d/vuurmuur
  61. chmod +x $PKG/etc/rc.d/init.d/vuurmuur
  62. mkdir -p $PKG/usr/man/ru/man8
  63. mkdir -p $PKG/usr/man/man8
  64. ( cd man/en
  65. for file in vuurmuur.8 vuurmuur_log.8 vuurmuur_script.8 ; do
  66. cat $file > $PKG/usr/man/man8/$file
  67. done
  68. )
  69. ( cd man/ru
  70. for file in vuurmuur.8 vuurmuur_log.8 vuurmuur_script.8 ; do
  71. cat $file > $PKG/usr/man/ru/man8/$file
  72. done
  73. )
  74. mkdir -p $PKG/usr/share/vuurmuur/scripts
  75. ( cd scripts
  76. cat vuurmuur-config-setup.sh > $PKG/usr/share/vuurmuur/scripts/vuurmuur-config-setup.sh
  77. chmod 755 $PKG/usr/share/vuurmuur/scripts/vuurmuur-config-setup.sh
  78. )
  79. mkdir -p $PKG/usr/share/vuurmuur/config
  80. mkdir -p -m 700 $PKG/etc/vuurmuur
  81. ( cd config
  82. cat config.conf.sample > $PKG/usr/share/vuurmuur/config/config.conf.sample
  83. cat config.conf.sample > $PKG/etc/vuurmuur/config.conf
  84. chmod 600 $PKG/etc/vuurmuur/config.conf
  85. )
  86. mkdir -p $PKG/usr/share/vuurmuur/services
  87. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/services
  88. ( cd services ;
  89. LIST=" cvs imaps pop3 smtp upnp
  90. dns irc msn pop3s socks usermin
  91. ftp jabber mysql pptp squid-proxy vnc
  92. http ldap news razor ssh webmin
  93. https lisa ntp rdp syslog whois
  94. ident pcanywhere rsync telnet windowsmedia
  95. imap ping samba traceroute"
  96. for file in $LIST ; do
  97. cat $file > $PKG/usr/share/vuurmuur/services/$file
  98. cat $file > $PKG/etc/vuurmuur/textdir/services/$file
  99. chmod 600 $PKG/etc/vuurmuur/textdir/services/$file
  100. done
  101. )
  102. cd $SRC/Vuurmuur-$surum/vuurmuur_conf-$surum
  103. ./configure \
  104. --prefix=/usr \
  105. --sysconfdir=/etc \
  106. --with-libvuurmuur-includes=$PKG/usr/include \
  107. --with-libvuurmuur-libraries=$PKG/usr/lib
  108. make
  109. mkdir -p $PKG/usr/bin
  110. ( cd src
  111. cat vuurmuur_conf > $PKG/usr/bin/vuurmuur_conf
  112. chmod 755 $PKG/usr/bin/vuurmuur_conf
  113. )
  114. ( cd po
  115. for lang in de fr nb nl no ru en@boldquot pt_BR en@quot ; do
  116. mkdir -p $PKG/usr/share/locale/$lang/LC_MESSAGES
  117. cat $lang.gmo > $PKG/usr/share/locale/$lang/LC_MESSAGES/vuurmuur_conf.mo
  118. done
  119. )
  120. mkdir -p $PKG/usr/share/vuurmuur/help
  121. ( cd help
  122. for file in vuurmuur-fr.hlp vuurmuur-ru.UTF-8.hlp vuurmuur-ru.hlp vuurmuur.hlp ; do
  123. cat $file > $PKG/usr/share/vuurmuur/help/$file
  124. done
  125. )
  126. ( cd man/en
  127. for file in vuurmuur_conf.8 ; do
  128. cat $file > $PKG/usr/man/man8/$file
  129. done
  130. )
  131. ( cd man/ru
  132. for file in vuurmuur_conf.8 ; do
  133. cat $file > $PKG/usr/man/ru/man8/$file
  134. done
  135. )
  136. mkdir -p $PKG/usr/share/vuurmuur/scripts
  137. ( cd scripts
  138. cat vuurmuur-searchlog.sh > $PKG/usr/share/vuurmuur/scripts/vuurmuur-searchlog.sh
  139. chmod 755 $PKG/usr/share/vuurmuur/scripts/vuurmuur-searchlog.sh
  140. )
  141. mkdir -p $PKG/usr/share/vuurmuur/config
  142. mkdir -p -m 700 $PKG/etc/vuurmuur
  143. ( cd config
  144. cat vuurmuur_conf.conf.sample > $PKG/usr/share/vuurmuur/config/vuurmuur_conf.conf.sample
  145. cat vuurmuur_conf.conf.sample > $PKG/etc/vuurmuur/vuurmuur_conf.conf
  146. )
  147. cd $SRC/Vuurmuur-$surum/installer/zones
  148. ( for zone in dmz inet lan vpn ; do
  149. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/$zone/networks
  150. cat $SRC/Vuurmuur-$surum/installer/zones/$zone/zone.config > $PKG/etc/vuurmuur/textdir/zones/$zone/zone.config
  151. done
  152. )
  153. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/groups
  154. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/hosts
  155. cat $SRC/Vuurmuur-$surum/installer/zones/inet/networks/internet/network.config > $PKG/etc/vuurmuur/textdir/zones/inet/networks/internet/network.config
  156. mkdir -p -m 700 $PKG/etc/vuurmuur/plugins
  157. touch $PKG/etc/vuurmuur/plugins/textdir.conf
  158. chmod 600 $PKG/etc/vuurmuur/plugins/textdir.conf
  159. echo "LOCATION=\"/etc/vuurmuur/textdir\"" > $PKG/etc/vuurmuur/plugins/textdir.conf
  160. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/zones
  161. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/interfaces
  162. mkdir -p -m 700 $PKG/etc/vuurmuur/textdir/rules
  163. }