uucp.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ##
  2. ## uucp.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: uucp
  27. Summary: Unix to Unix CoPy
  28. URL: http://www.gnu.org/software/uucp/
  29. Vendor: Ian Lance Taylor
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [REL]
  32. Group: Communication
  33. License: GPL
  34. Version: 1.06.1
  35. Release: 20020206
  36. # list of sources
  37. Source0: ftp://ftp.gnu.org/gnu/uucp/uucp-%{version}.tar.gz
  38. Source1: uucpd.tar.gz
  39. Source2: etc.tar
  40. Source3: rc.uucp
  41. Patch0: uucp-%{version}.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20020206
  46. PreReq: OpenPKG, openpkg >= 20020206
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Unix to Unix CoPy (UUCP) is an old-fashioned but still very
  51. useful way of spooling files (usually Email and News files) and
  52. transferring them to a remote site in batch.
  53. %prep
  54. %setup0 -q -c -n uucp-%{version}
  55. %patch0 -p0
  56. %setup1 -q -T -D -a 1
  57. %setup2 -q -T -D -a 2
  58. %build
  59. ( cd uucp-%{version}
  60. %{l_rpmtool} subst \
  61. 's;chown;true;g' \
  62. 's;owner = uucp;owner = %{l_musr};' \
  63. 's;\(sbindir = $(exec_prefix)\)/lib/uucp;\1/sbin;' \
  64. 's;/conf/uucp;/etc/uucp;' \
  65. -- Makefile.in
  66. CC="%{l_cc}" \
  67. CFLAGS="%{l_cflags -O}" \
  68. ./configure \
  69. --prefix=%{l_prefix}
  70. %{l_make} %{l_mflags}
  71. )
  72. ( cd uucpd
  73. CC="%{l_cc}" \
  74. CFLAGS="%{l_cflags -O}" \
  75. ./configure
  76. %{l_make} %{l_mflags}
  77. )
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_shtool} mkdir -p -f -m 755 \
  81. $RPM_BUILD_ROOT%{l_prefix} \
  82. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  83. $RPM_BUILD_ROOT%{l_prefix}/etc/uucp \
  84. $RPM_BUILD_ROOT%{l_prefix}/bin \
  85. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  86. $RPM_BUILD_ROOT%{l_prefix}/lib \
  87. $RPM_BUILD_ROOT%{l_prefix}/man \
  88. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/spool \
  89. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/run \
  90. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/log
  91. ( cd uucp-%{version}
  92. %{l_make} %{l_mflags} install install-info \
  93. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  94. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  95. )
  96. %{l_shtool} install -c -s -m 755 \
  97. uucpd/uucpd $RPM_BUILD_ROOT%{l_prefix}/sbin/
  98. %{l_shtool} install -c -m 640 \
  99. -e 's;@l_prefix@;%{l_prefix};g' \
  100. etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/uucp/
  101. %{l_shtool} install -c -m 755 \
  102. -e 's;@l_prefix@;%{l_prefix};g' \
  103. %{SOURCE rc.uucp} \
  104. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  105. %{l_shtool} install -c -m 644 /dev/null \
  106. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/log/uucp.log
  107. %{l_shtool} install -c -m 644 /dev/null \
  108. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/log/uucp.stat
  109. %{l_shtool} install -c -m 644 /dev/null \
  110. $RPM_BUILD_ROOT%{l_prefix}/var/uucp/log/uucp.debug
  111. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  112. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* 2> /dev/null || true
  113. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  114. %{l_files_std} \
  115. '%config %{l_prefix}/etc/uucp/*'
  116. %files -f files
  117. %clean
  118. rm -rf $RPM_BUILD_ROOT