talimat 5.6 KB

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