sysmon.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## sysmon.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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 [EXP]
  32. Group: Network
  33. License: GPL
  34. Version: 0.91.9
  35. Release: 20020303
  36. # list of sources
  37. Source0: ftp://puck.nether.net/pub/jared/sysmon-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206, openssl, flex, ncurses, MTA
  42. PreReq: OpenPKG, openpkg >= 20020206, MTA
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Sysmon is a network monitoring tool designed to provide high
  47. performance and accurate network monitoring. Currently supported
  48. protocols include SMTP, IMAP, HTTP, TCP, UDP, NNTP, and PING tests.
  49. %prep
  50. %setup -q
  51. %build
  52. PATH="%{l_prefix}/bin:%{l_prefix}/sbin:$PATH"; export PATH
  53. CC="%{l_cc}" \
  54. CFLAGS="%{l_cflags -O}" \
  55. CPPFLAGS="-I%{l_prefix}/include" \
  56. LDFLAGS="-L%{l_prefix}/lib" \
  57. ./configure \
  58. --prefix=%{l_prefix}
  59. %{l_make} %{l_mflags -O}
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. %{l_shtool} mkdir -f -p -m 755 \
  63. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  64. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  65. $RPM_BUILD_ROOT%{l_prefix}/etc/sysmon \
  66. $RPM_BUILD_ROOT%{l_prefix}/man/man5 \
  67. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  68. $RPM_BUILD_ROOT%{l_prefix}/var/sysmon
  69. %{l_shtool} install -c -s -m 755 \
  70. src/sysmon src/sysmond $RPM_BUILD_ROOT%{l_prefix}/sbin/
  71. %{l_shtool} install -c -m 644 \
  72. docs/sysmon.conf.man $RPM_BUILD_ROOT%{l_prefix}/man/man5/sysmon.conf.5
  73. %{l_shtool} install -c -m 644 \
  74. docs/sysmon.man $RPM_BUILD_ROOT%{l_prefix}/man/man8/sysmon.8
  75. %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
  76. %{SOURCE sysmon.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/sysmon/
  77. %{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \
  78. %{SOURCE rc.sysmon} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT