-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenma.spec
79 lines (64 loc) · 1.86 KB
/
enma.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Summary: A sender authentication milter supporting SPF and Sender ID
Name: enma
Version: 1.0.0
Release: 1
License: BSD
URL: http://sourceforge.net/projects/enma/
Group: Applications/Internet
Source0: enma-1.0.0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bind-libbind-devel
BuildRequires: sendmail-devel
Requires: bind-libs
Requires(post): chkconfig
Requires(preun): chkconfig
%description
ENMA is a program of domain authentication technologies. It authenticates
message senders with SPF and/or Sender ID and inserts the
Authentication-Results: field with authentication results.
%prep
%setup -q
%build
%configure --with-libbind-incdir=/usr/include/bind
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_initrddir}
install -m 755 enma/bin/rc.enma-centos %{buildroot}%{_initrddir}/enma
install -m 644 enma/etc/enma.conf.sample %{buildroot}%{_sysconfdir}/enma.conf
mkdir -p %{buildroot}%{_localstatedir}/run/enma/
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add enma
%preun
if [ $1 = 0 ] ; then
/sbin/service enma stop > /dev/null 2>&1
/sbin/chkconfig --del enma
fi
%postun
if [ $1 -ge 1 ] ; then
/sbin/service enma condrestart > /dev/null 2>&1
fi
%files
%defattr(-, root, root, -)
%doc ChangeLog LICENSE LICENSE.ja README README.ja INSTALL INSTALL.ja TODO
%{_bindir}/*
%{_mandir}/*
%{_initrddir}/enma
%config %{_sysconfdir}/enma.conf
%attr(0750, daemon, daemon) %dir %{_localstatedir}/run/enma/
%changelog
* Thu Aug 28 2008 SUZUKI Takahiko <[email protected]>
- (1.0.0-1)
- public release
* Tue Aug 26 2008 SUZUKI Takahiko <[email protected]>
- (0.9.2-1)
- new upstream release
* Fri Aug 22 2008 SUZUKI Takahiko <[email protected]>
- (0.9.1-1)
- new upstream release
* Tue Aug 19 2008 Mitsuru Shimamura <[email protected]>
- (0.9.0-1)
- internal beta release