dracd-vl.spec 4.9 KB

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