dracd-vl.spec 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. Summary: Dynamic relay authorization control
  2. Name: dracd
  3. Version: 1.12
  4. Release: 2%{?_dist_release}
  5. License: Other
  6. Group: System Environment/Daemons
  7. Url: http://mail.cc.umanitoba.ca/drac/
  8. Source0: drac.tar.Z
  9. Source1: dracd-init.d.source
  10. Source2: dracd-rc.d.source
  11. Source3: dracd.allow-sample
  12. Source4: README.vine-drac
  13. Patch0: drac-Makefile-1.12.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildPrereq: db4-devel >= 4.6.21
  16. Prereq: chkconfig portmap
  17. Requires: db4 >= 4.6.21
  18. %description
  19. DRAC is a daemon that dynamically updates a relay authorization map
  20. for sendmail. It provides a way to allow legitimate users to relay
  21. mail through an SMTP server, while still preventing others from using
  22. it as a spam relay. User's IP addresses are added to the map
  23. immediately after they have authenticated to the POP or IMAP
  24. server. By default, map entries expire after 30 minutes, but can be
  25. renewed by additional authentication. Periodically checking mail on a
  26. POP server is sufficient to do this. The POP and SMTP servers can be
  27. on different hosts.
  28. %prep
  29. %setup -q -c -n drac-1.12
  30. %patch0 -p0
  31. cp %{SOURCE4} ./README.vine
  32. %build
  33. make OPTFLAGS="$RPM_OPT_FLAGS -fPIC"
  34. %install
  35. install -d $RPM_BUILD_ROOT%{_sbindir}
  36. install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
  37. install -d $RPM_BUILD_ROOT/etc/mail
  38. install -d $RPM_BUILD_ROOT%{_libdir}
  39. install -d $RPM_BUILD_ROOT%{_mandir}/man3
  40. install -d $RPM_BUILD_ROOT%{_mandir}/man8
  41. install -m755 rpc.dracd $RPM_BUILD_ROOT%{_sbindir}
  42. install -m644 dracauth.3 $RPM_BUILD_ROOT%{_mandir}/man3/
  43. install -m644 rpc.dracd.1m $RPM_BUILD_ROOT%{_mandir}/man8/rpc.dracd.8
  44. install -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dracd
  45. install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/rc.dracd
  46. install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/mail/dracd.allow
  47. install -m644 libdrac.a $RPM_BUILD_ROOT%{_libdir}
  48. install -m755 testing $RPM_BUILD_ROOT%{_sbindir}/testdrac
  49. %post
  50. /sbin/chkconfig --add dracd
  51. %preun
  52. if [ $1 = 0 ] ; then
  53. /sbin/chkconfig --del dracd
  54. fi
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %files
  58. %defattr(-,root,root)
  59. %doc COPYRIGHT Changes INSTALL PORTING README*
  60. %{_sbindir}/rpc.dracd
  61. %{_sbindir}/rc.dracd
  62. %{_sbindir}/testdrac
  63. %{_libdir}/libdrac.a
  64. %{_mandir}/man3/dracauth.3*
  65. %{_mandir}/man8/rpc.dracd.8*
  66. %config /etc/rc.d/init.d/dracd
  67. %config(noreplace) /etc/mail/dracd.allow
  68. %changelog
  69. * Tue Jul 7 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 1.12-2
  70. - README.vine-drac in UTF-8
  71. * Sat Jun 21 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.12-1
  72. - rebuilt against db4-4.6.21
  73. - new versioning policy
  74. * Tue Nov 20 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.12-0vl6
  75. - use RPM_OPT_FLAGS and -fPIC
  76. * Thu May 10 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.12-0vl5
  77. - rebuild with db4-4.3
  78. * Thu Jul 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.12-0vl4
  79. - changed Group to System Environment/Daemons
  80. * Sun Nov 7 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.12-0vl3
  81. - rebuilt with db4-4.2.52
  82. * Mon Sep 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl2
  83. - fix typo on README.vine
  84. * Sat Aug 23 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.12-0vl1
  85. - source upgrade
  86. - update Patch0
  87. * Fri Aug 22 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.11-0vl6
  88. - update SOURCE4
  89. - use License tag
  90. * Fri Aug 22 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.11-0vl5
  91. - BuildPrereq: db4-devel and Requires: db4
  92. * Fri Aug 23 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.11-0vl4
  93. - add README.vine (SOURCE4)
  94. * Fri Jun 21 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.11-0vl3
  95. - build for Vine Linux 2.5
  96. - add BuildPrereq: db3-devel and Requires: db3
  97. * Tue May 28 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.11-0vl2
  98. - clean up spec
  99. * Thu Mar 15 2001 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp>
  100. - 1.11-0vl1
  101. * Thu Dec 14 2000 Kenneth Porter <shiva@well.com>
  102. - Add testing program to package, renamed to testdrac
  103. * Thu Nov 2 2000 Kenneth Porter <shiva@well.com>
  104. - Move rc.dracd out of /etc
  105. - Mark remaining /etc files (init file) as config
  106. - Return a value from init script
  107. - Add status to init script
  108. * Mon Oct 30 2000 Kenneth Porter <shiva@well.com>
  109. - Add Requires: portmap
  110. - Make dracd.allow a config file
  111. - Compressed man pages on newer RPM systems
  112. * Sat Jul 1 2000 Kenneth Porter <shiva@well.com>
  113. - Fix install for non-root packager
  114. - Remove bogus address from default client allow file.
  115. - Add chkconfig invocation to automatically install startup links.
  116. - Move libdrac.a to /usr/lib. No need for a directory of its own.
  117. * Tue Oct 26 1999 Mike McHenry <mmchen@minn.net>
  118. - First RPM build