File drac.spec of Package drac

# spec file for package drac
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           drac
BuildRequires:  db-devel
Summary:        Dynamic Relay Authorization Control
License:        BSD-3-Clause
Group:          Productivity/Networking/Email/Utilities
Version:        1.12
Release:        0
Source:         drac-%{version}.tar.gz
Patch:          drac.dif
PreReq:         %insserv_prereq %fillup_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# ---------------------------------------------------------------------------

%setup -qn drac
%patch -p 1
# ---------------------------------------------------------------------------

# ---------------------------------------------------------------------------

mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/etc/init.d
make install     EBIN=$RPM_BUILD_ROOT/usr/sbin/rpc.dracd
make install-man MAN=$RPM_BUILD_ROOT/%{_mandir}/man
install -m 644 libdrac.a $RPM_BUILD_ROOT/%{_libdir}/libdrac.a
install -m 755 rc.dracd $RPM_BUILD_ROOT/etc/init.d/dracd
ln -sf ../etc/init.d/dracd $RPM_BUILD_ROOT/sbin/rcdracd
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 644 sysconfig.dracd $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.dracd

%{fillup_and_insserv -yn dracd}

%stop_on_removal dracd

%restart_on_update dracd


%doc %{_mandir}/man?/*.gz
%doc COPYRIGHT Changes INSTALL PORTING README dracd.allow-sample
%attr(755,bin,bin) /usr/sbin/rpc.dracd

DRAC is a daemon that dynamically updates a relay authorization map for
sendmail. It provides a way to allow legitimate users to relay mail
through an SMTP server, while still preventing others from using it as
a spam relay. User's IP addresses are added to the map immediately
after they have authenticated to the POP or IMAP server.

    Gary Mills <>

openSUSE Build Service is sponsored by