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