sysmon.spec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## sysmon.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: sysmon
  27. Summary: System Monitoring Tool
  28. URL: http://www.sysmon.org/
  29. Vendor: Jared Mauch
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: Network
  33. License: GPL
  34. Version: 0.91.14
  35. Release: 20021219
  36. # list of sources
  37. Source0: ftp://puck.nether.net/pub/jared/sysmon-%{version}.tar.gz
  38. Source1: sysmon.conf
  39. Source2: rc.sysmon
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020826, ncurses, MTA, openssl, flex
  44. PreReq: OpenPKG, openpkg >= 20020826, ncurses, MTA
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. Sysmon is a network monitoring tool designed to provide high
  49. performance and accurate network monitoring. Currently supported
  50. protocols include SMTP, IMAP, HTTP, TCP, UDP, NNTP, and PING tests.
  51. %prep
  52. %setup -q
  53. %build
  54. CC="%{l_cc}" \
  55. CFLAGS="%{l_cflags -O}" \
  56. CPPFLAGS="-I%{l_prefix}/include" \
  57. LDFLAGS="-L%{l_prefix}/lib" \
  58. ./configure \
  59. --prefix=%{l_prefix}
  60. %{l_make} %{l_mflags -O}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  65. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  66. $RPM_BUILD_ROOT%{l_prefix}/etc/sysmon \
  67. $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
  68. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  69. $RPM_BUILD_ROOT%{l_prefix}/var/sysmon
  70. %{l_shtool} install -c -s -m 755 \
  71. src/sysmon src/sysmond $RPM_BUILD_ROOT%{l_prefix}/sbin/
  72. %{l_shtool} install -c -m 644 \
  73. docs/sysmon.conf.man $RPM_BUILD_ROOT%{l_prefix}/man/man5/sysmon.conf.5
  74. %{l_shtool} install -c -m 644 \
  75. docs/sysmon.man $RPM_BUILD_ROOT%{l_prefix}/man/man8/sysmon.8
  76. %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
  77. %{SOURCE sysmon.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/sysmon/
  78. %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
  79. %{SOURCE rc.sysmon} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT