dracd-vl.spec 4.8 KB

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