webalizer-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. %define oversion 2.01
  2. %define patchlevel 10
  3. Summary: Web access analyzer tool
  4. Summary(ja): ウェブアクセス解析ツール
  5. Name: webalizer
  6. Version: %{oversion}.%{patchlevel}
  7. Release: 1%{?_dist_release}
  8. #Serial: 1
  9. License: MIT
  10. Group: Applications/System
  11. Source: webalizer-%{oversion}-%{patchlevel}-src.tar.bz2
  12. Source2: gd-1.8.3.tar.gz
  13. Source3: webalizer-vine.conf
  14. Source4: webalizer.cron
  15. Patch1: webalizer-%{oversion}-%{patchlevel}-jp.patch
  16. Patch2: gd-1.8.3-jpttf_for_webalizer.patch
  17. # http://www.securiteam.com/unixfocus/6U00O202UG.html
  18. #Patch100: ftp://ftp.mrunix.net/pub/webalizer/sec-fix.patch
  19. Requires: webserver libpng freetype
  20. Requires: TrueTypeFonts_jp
  21. BuildRoot: %{_tmppath}/%{name}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: Daisuke SUZUKI <daisuke@linux.or.jp>
  25. %description
  26. The Webalizer is a web server log file analysis program which produces
  27. usage statistics in HTML format for viewing with a browser.
  28. %description -l ja
  29. Webalzerはウェブサーバのログファイルを解析するプログラムです.
  30. 統計結果をHTML形式にして出力してブラウザで確認できます.
  31. %prep
  32. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  33. %setup -n webalizer-%{oversion}-%{patchlevel} -a 2
  34. %patch1 -p1 -b .jp
  35. %patch2 -p0 -b .jpttf
  36. #%patch100 -p0 -b .sec-fix
  37. %build
  38. ln -s gd-1.8.3 gd
  39. cd gd
  40. make
  41. cd ..
  42. %configure --with-language=japanese \
  43. --with-gdlib=$PWD/gd
  44. make
  45. %install
  46. # make prefix=$RPM_BUILD_ROOT/usr install
  47. install -d $RPM_BUILD_ROOT%{_bindir}
  48. install -s webalizer $RPM_BUILD_ROOT%{_bindir}
  49. ln -s webalizer $RPM_BUILD_ROOT%{_bindir}/webazolver
  50. install -d $RPM_BUILD_ROOT%{_mandir}/man1
  51. cp webalizer.1 $RPM_BUILD_ROOT%{_mandir}/man1
  52. install -d $RPM_BUILD_ROOT%{_sysconfdir}
  53. cp %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/webalizer.conf
  54. install -d $RPM_BUILD_ROOT/etc/cron.weekly
  55. install -m 755 %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.weekly/webalizer.cron
  56. install -d $RPM_BUILD_ROOT/home/httpd/html/webalizer
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %files
  60. %defattr(-,root,root)
  61. %doc DNS.README README README.ja README.FIRST CHANGES Copyright country-codes.txt
  62. %config(noreplace) %{_sysconfdir}/webalizer.conf
  63. %config(missingok) /etc/cron.weekly/webalizer.cron
  64. %dir /home/httpd/html/webalizer
  65. %{_bindir}/*
  66. %{_mandir}/man1/*
  67. %changelog
  68. * Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.01.10-1vl5
  69. - applied new versioning policy, spec in utf-8
  70. * Mon Feb 04 2008 Shu KONNO <owa@bg.wakwak.com> 2.01.10-0vl4
  71. - dropt Serial:1 tag
  72. - s/Copyright/License/
  73. * Mon Sep 15 2003 IWAI, Masaharu <iwai@alib.jp> 2.01.10-0vl3
  74. - update Requires: apache -> webserver
  75. * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 2.01.10-0vl2
  76. - rebuild with new toolchain
  77. * Sat May 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01.10-0vl1
  78. - new upstream release 2.01-10
  79. - update webalizer.conf to use new TrueType-{kochi,ricohlx}
  80. * Wed Oct 31 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.01.06-0vl3
  81. - used RPM macros
  82. * Wed Oct 31 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.01.06-0vl2
  83. - patched for Cross-Site Scripting Flaw
  84. - added noreplace flag (%%config file is not replaced)
  85. * Thu Dec 14 2000 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01.06-0vl1
  86. - updated to 2.00-12
  87. * Mon Jun 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  88. - updated to 2.00-12
  89. - updated gd to 1.8.3.
  90. - optimized jpttf patch .
  91. * Wed Apr 12 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  92. - updated to 2.00-11
  93. - modified webalizer.cron file to fit with default logrotate setting.
  94. * Thu Jan 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  95. - first release