netcat.spec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ##
  2. ## netcat.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: netcat
  26. Summary: TCP/IP Swiss Army Knife
  27. URL: http://199.103.168.8:3529/web1/hak/netcat.html
  28. Vendor: Avian Research
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Net
  32. License: no restrictions
  33. Version: 1.10
  34. Release: 2
  35. # list of sources
  36. Source0: ftp://avian.org/src/hacks/nc110.tgz
  37. Source1: nc.1
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  42. PreReq: OpenPKG, openpkg >= 0.9-33
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. A simple Unix utility which reads and writes data across network
  47. connections using TCP or UDP protocol. It is designed to be a reliable
  48. "back-end" tool that can be used directly or easily driven by other
  49. programs and scripts. At the same time it is a feature-rich network
  50. debugging and exploration tool, since it can create almost any kind of
  51. connection you would need and has several interesting built-in
  52. capabilities.
  53. %prep
  54. %setup -q -c /%{name}-%{version}
  55. %build
  56. os=generic
  57. case "%{l_target}" in
  58. *-solaris* ) os=solaris ;;
  59. *-linux* ) os=linux ;;
  60. *-freebsd* ) os=freebsd ;;
  61. esac
  62. %{l_make} %{l_mflags} $os
  63. %install
  64. test -d $RPM_BUILD_ROOT && rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
  66. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1
  67. %{l_shtool} install -c -s -m 755 nc $RPM_BUILD_ROOT%{l_prefix}/bin/
  68. %{l_shtool} install -c -m 644 %{SOURCE nc.1} $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  69. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  70. %files -f files
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT