mars-nwe-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Summary: NetWare file and print servers which run on Linux systems.
  2. Name: mars-nwe
  3. Version: 0.99pl20
  4. Release: 6vl1
  5. License: GPL
  6. Source: ftp://ftp.gwdg.de/pub/linux/misc/ncpfs/mars_nwe-0.99.pl19.tgz
  7. Source1: mars_nwe-mk.li
  8. Source2: mars_nwe-config.h
  9. Source4: mars_nwe-readme.txt
  10. Source5: mars_nwe.init
  11. Source6: mars_nwe.log
  12. Patch1: mars_nwe-glibc21.patch
  13. Patch2: mars_nwe-0.99.pl19-buffer.patch
  14. Patch3: mars_nwe-rh.patch
  15. Patch4: mars_nwe-format.patch
  16. Group: System Environment/Daemons
  17. Prereq: /sbin/chkconfig, /sbin/service
  18. BuildPrereq: gdbm-devel
  19. Requires: ipxutils
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. ExcludeArch: s390 s390x
  22. %description
  23. The mars_nwe (MARtin Stover's NetWare Emulator) package enables Linux
  24. to provide both file and print services for NetWare clients (i.e.,
  25. providing the services of a Novell NetWare file server). Mars_nwe
  26. allows the sharing of files between Linux machines and Novell NetWare
  27. clients, using NetWare's native IPX protocol suite.
  28. Install the mars_nwe package if you need a Novell NetWare file server
  29. on your Red Hat Linux system.
  30. %prep
  31. %setup -q -n mars_nwe
  32. %patch1 -p1 -b .glibc21
  33. %patch2 -p1 -b .buffer
  34. %patch3 -p1 -b .rh
  35. %patch4 -p1 -b .format
  36. cp -f $RPM_SOURCE_DIR/mars_nwe-config.h ./config.h
  37. cp -f $RPM_SOURCE_DIR/mars_nwe-mk.li ./mk.li
  38. %build
  39. chmod 755 mk.li
  40. make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE_ -DUSE_GDBM"
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. for I in sys/login sys/public sys/system bindery; do \
  44. mkdir -p --mode=0755 $RPM_BUILD_ROOT/var/mars_nwe/$I
  45. done
  46. mkdir -p $RPM_BUILD_ROOT/var/log $RPM_BUILD_ROOT/var/run
  47. install -m644 $RPM_SOURCE_DIR/mars_nwe-readme.txt $RPM_BUILD_ROOT/var/mars_nwe/sys/readme.txt
  48. :> $RPM_BUILD_ROOT/var/log/mars_nwe.log
  49. chmod 0644 $RPM_BUILD_ROOT/var/log/mars_nwe.log
  50. :> $RPM_BUILD_ROOT/var/run/mars_nwe.routes
  51. chmod 0644 $RPM_BUILD_ROOT/var/run/mars_nwe.routes
  52. mkdir -p $RPM_BUILD_ROOT/etc $RPM_BUILD_ROOT/usr/sbin
  53. install -m644 examples/nwserv.stations $RPM_BUILD_ROOT/etc/nwserv.stations
  54. for I in nwserv nwconn ncpserv nwclient nwbind; do
  55. install -s -m 755 $I $RPM_BUILD_ROOT/usr/sbin/$I
  56. done
  57. install -m600 examples/nw.ini $RPM_BUILD_ROOT/etc/nwserv.conf
  58. mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/etc/logrotate.d
  59. install -m755 $RPM_SOURCE_DIR/mars_nwe.init $RPM_BUILD_ROOT/etc/rc.d/init.d/mars-nwe
  60. install -m644 $RPM_SOURCE_DIR/mars_nwe.log $RPM_BUILD_ROOT/etc/logrotate.d/mars-nwe.log
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post
  64. /sbin/chkconfig --add mars-nwe
  65. %preun
  66. if [ $1 = 0 ]; then
  67. /sbin/service mars-nwe stop > /dev/null 2>&1 || :
  68. /sbin/chkconfig --del mars-nwe
  69. fi
  70. %postun
  71. if [ "$1" -ge "1" ]; then
  72. /sbin/service mars-nwe condrestart > /dev/null 2>&1 || :
  73. fi
  74. %files
  75. %defattr(-,root,root)
  76. %dir /var/mars_nwe
  77. /var/mars_nwe/sys
  78. %dir /var/mars_nwe/bindery
  79. %ghost /var/log/mars_nwe.log
  80. %ghost /var/run/mars_nwe.routes
  81. %config(noreplace) /etc/nwserv.conf
  82. %config(noreplace) /etc/nwserv.stations
  83. %config /etc/logrotate.d/mars-nwe.log
  84. %doc README COPYING doc examples
  85. /usr/sbin/nwserv
  86. /usr/sbin/nwconn
  87. /usr/sbin/ncpserv
  88. /usr/sbin/nwclient
  89. /usr/sbin/nwbind
  90. %config /etc/rc.d/init.d/mars-nwe
  91. %changelog
  92. * Sat Aug 18 2001 <sagami@vinelinux.org>
  93. - 0.99pl20-6vl1: was ported to Vine
  94. * Mon Jul 16 2001 Philipp Knirsch <pknirsch@redhat.de>
  95. - Fixed missing BuildPrerequ for gdbm-devel (#44864)
  96. * Tue Jun 19 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  97. - add ExcludeArch: s390 s390x
  98. * Tue Mar 13 2001 Bill Nottingham <notting@redhat.com>
  99. - fix usage translation message in init script
  100. * Tue Feb 27 2001 Bill Nottingham <notting@redhat.com>
  101. - fix subsys in init script
  102. * Thu Feb 1 2001 Trond Eivind Glomsrød <teg@redhat.com>
  103. - don't use gprintf
  104. * Fri Jan 19 2001 Bill Nottingham <notting@redhat.com>
  105. - fix format string error (#17911)
  106. - i18n-ize initscript
  107. - update to 0.99.pl20
  108. * Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
  109. - condrestart fixes
  110. * Mon Jul 23 2000 Nalin Dahyabhai <nalin@redhat.com>
  111. - fix %%post and %%postun scripts
  112. * Sun Jul 23 2000 Trond Eivind Glomsrød <teg@redhat.com>
  113. - source files from /etc/rc.d/init.d
  114. - don't prereq /etc/init.d anymore
  115. - rename "rh-status"
  116. * Thu Jul 20 2000 Bill Nottingham <notting@redhat.com>
  117. - move initscript back
  118. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  119. - automatic rebuild
  120. * Tue Jun 27 2000 Preston Brown <pbrown@redhat.com>
  121. - don't prereq, only require initscripts
  122. * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
  123. - initscript munging
  124. * Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
  125. - added defattr
  126. * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  127. - tweak logrotate configuration file to use the PID file in /var/run
  128. * Sat Jun 10 2000 Bill Nottingham <notting@redhat.com>
  129. - update to pl19
  130. * Tue Apr 18 2000 Bill Nottingham <notting@redhat.com>
  131. - build on alpha again
  132. - require ipxutils
  133. - futz with default config some (use included sample)
  134. * Thu Feb 24 2000 Bill Nottingham <notting@redhat.com>
  135. - don't build on alpha for now
  136. * Tue Dec 22 1999 Bill Nottingham <notting@redhat.com>
  137. - fix buffer overflow patch oops
  138. * Mon Oct 18 1999 Bill Nottingham <notting@redhat.com>
  139. - fix typo in buffer overflow patch
  140. - fix path to killall in logrotate file
  141. * Fri Sep 3 1999 Bill Nottingham <notting@redhat.com>
  142. - add patch to fix some buffer overflows.
  143. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  144. - initscript munging
  145. * Sat Jun 12 1999 Jeff Johnson <jbj@redhat.com>
  146. - update to 0.99.pl17
  147. * Thu Jun 10 1999 Dale Lovelace <dale@redhat.com>
  148. - fixed logrotate script
  149. * Mon May 24 1999 Bill Nottingham <notting@redhat.com>
  150. - update to 0.99.pl16
  151. * Thu May 13 1999 Bill Nottingham <notting@redhat.com>
  152. - actually update source to 0.99.pl15. Doh!
  153. * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com>
  154. - logrotate fixes
  155. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  156. - auto rebuild in the new build environment (release 2)
  157. * Tue Mar 9 1999 Bill Nottingham <notting@redhat.com>
  158. - update to 0.99.pl15
  159. * Tue Feb 23 1999 Bill Nottingham <notting@redhat.com>
  160. - update to 0.99.pl14
  161. * Tue Aug 18 1998 Cristian Gafton <gafton@redhat.com>
  162. - buildroot
  163. * Sun May 10 1998 Alan Cox <alan@redhat.com>
  164. - Made it compile with 2.1.* kernels and also gcc 2.0.7 where sysv_signal
  165. is correctly hidden as __sysv_signal.
  166. * Fri May 08 1998 Prospector System <bugs@redhat.com>
  167. - translations modified for de, fr, tr
  168. * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
  169. - upgraded to 0.99pl6
  170. - enhanced initscripts
  171. * Tue Jan 13 1998 Erik Troan <ewt@redhat.com>
  172. - use sysv_signal everywhere instead of normal signal -- this makes signal
  173. handlers not block signals, which mars_nwe expects
  174. - changed _ to - in name of logrotate config file
  175. * Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
  176. - updated for chkconfig
  177. - doesn't start by default
  178. - added status, restart options to init script
  179. * Fri Aug 22 1997 Erik Troan <ewt@redhat.com>
  180. - built against glibc