@@ -12,7 +12,7 @@ URL: https://github.com/trusteddomainproject/OpenARC
12
12
13
13
Source0: https://github.com/trusteddomainproject/OpenARC/archive/v%{version}%{?pre_rel:.%pre_rel}/%{name}-%{version}%{?pre_rel:.%pre_rel}.tar.gz
14
14
15
- BuildRequires: libtool
15
+ BuildRequires: libtool gcc
16
16
BuildRequires: pkgconfig(openssl)
17
17
BuildRequires: pkgconfig(libbsd)
18
18
@@ -67,34 +67,45 @@ required for developing applications against libopenarc.
67
67
%build
68
68
autoreconf --install
69
69
%configure --disable-static
70
- make %{?_smp_mflags}
70
+ %make_build
71
71
72
72
%install
73
- make install DESTDIR=%{buildroot}
74
- mkdir -p %{buildroot}%{_sysconfdir}
73
+ %make_install
74
+ mkdir -p -m 0700 %{buildroot}%{_sysconfdir}/%{name }
75
75
mkdir -p -m 0700 %{buildroot}%{_localstatedir}/run/%{name}
76
76
rm -r %{buildroot}%{_prefix}/share/doc/openarc
77
77
rm %{buildroot}/%{_libdir}/*.la
78
78
79
79
80
80
cat > %{buildroot}%{_sysconfdir}/openarc.conf <<EOF
81
81
## See openarc.conf(5) or %{_docdir}/%{name}%{?rhel:-%{version}}/openarc.conf.sample for more
82
- PidFile %{_localstatedir}/run/openarc/openarc .pid
82
+ PidFile %{_localstatedir}/run/%{name}/%{name} .pid
83
83
Syslog yes
84
84
#Umask 002
85
85
UserID openarc:openarc
86
- Socket inet:8894@localhost
86
+ Socket local:%{_localstatedir}/run/%{name}/%{name}.sock
87
+ SignHeaders to,subject,message-id,date,from,mime-version,dkim-signature
88
+ PeerList %{_sysconfdir}/%{name}/PeerList
89
+ MilterDebug 6
90
+ EnableCoredumps yes
87
91
88
92
## After setting Mode to "sv", running
89
93
## opendkim-genkey -D %{_sysconfdir}/openarc -s key -d `hostname --domain`
90
94
## and putting %{_sysconfdir}/openarc
95
+ #Mode sv
91
96
#Canonicalization relaxed/simple
92
97
#Domain example.com # change to domain
93
98
#Selector key
94
99
#KeyFile %{_sysconfdir}/openarc/key.private
95
100
#SignatureAlgorithm rsa-sha256
96
101
EOF
97
102
103
+ # Don't sign or validate connections from localhost
104
+ cat > %{buildroot}%{_sysconfdir}/%{name}/PeerList <<EOF
105
+ 127.0.0.1/32
106
+ [::1]/128
107
+ EOF
108
+ chmod 0640 %{buildroot}%{_sysconfdir}/%{name}/PeerList
98
109
99
110
%if %systemd
100
111
install -d -m 0755 %{buildroot}%{_unitdir}
@@ -168,6 +179,8 @@ exit 0
168
179
%license LICENSE LICENSE.Sendmail
169
180
%doc README RELEASE_NOTES openarc/openarc.conf.sample
170
181
%config(noreplace) %{_sysconfdir}/openarc.conf
182
+ %dir %attr(-,%{name},%{name}) %{_sysconfdir}/%{name}
183
+ %config(noreplace) %{_sysconfdir}/%{name}/PeerList
171
184
172
185
%if %{tmpfiles}
173
186
%{_tmpfilesdir}/%{name}.conf
@@ -186,10 +199,10 @@ exit 0
186
199
187
200
%files -n libopenarc
188
201
%license LICENSE LICENSE.Sendmail
189
- %{_libdir}/*.so.*
202
+ %{_libdir}/*.so.0
203
+ %{_libdir}/*.so.0.0.0
190
204
191
205
%files -n libopenarc-devel
192
- %license LICENSE LICENSE.Sendmail
193
206
%{_includedir}/*
194
207
%{_libdir}/*.so
195
208
%{_libdir}/pkgconfig/*.pc
0 commit comments