comparison dnsbl.spec.in @ 469:0370916c7626

allow building on el8
author Carl Byington <carl@five-ten-sg.com>
date Wed, 16 Dec 2020 11:23:27 -0800
parents f5b394bec28c
children 5209e92b4885
comparison
equal deleted inserted replaced
468:d87a0b83e3f0 469:0370916c7626
21 Requires: sendmail-cf 21 Requires: sendmail-cf
22 Requires: spamassassin, dcc 22 Requires: spamassassin, dcc
23 BuildRequires: sendmail-devel >= 8.12.1 23 BuildRequires: sendmail-devel >= 8.12.1
24 BuildRequires: spamassassin 24 BuildRequires: spamassassin
25 BuildRequires: glibc-devel, glibc-static 25 BuildRequires: glibc-devel, glibc-static
26 %if "%{?dist}" == ".el7" 26 %if "%{?dist}" > ".el6"
27 Requires(pre): systemd-sysv, shadow-utils 27 Requires(pre): systemd-sysv, shadow-utils
28 Requires(post): systemd-units 28 Requires(post): systemd-units
29 Requires(preun): systemd-units 29 Requires(preun): systemd-units
30 Requires(postun): systemd-units 30 Requires(postun): systemd-units
31 Requires: coreutils 31 Requires: coreutils
67 make DESTDIR=%{buildroot} install 67 make DESTDIR=%{buildroot} install
68 mkdir -p %{buildroot}%{_sysconfdir}/%{name}/autowhite 68 mkdir -p %{buildroot}%{_sysconfdir}/%{name}/autowhite
69 mkdir -p %{buildroot}%{_sysconfdir}/%{name}/.spamassassin 69 mkdir -p %{buildroot}%{_sysconfdir}/%{name}/.spamassassin
70 install -m 644 -D %{buildroot}%{_sysconfdir}/%{name}/dnsblnogrey \ 70 install -m 644 -D %{buildroot}%{_sysconfdir}/%{name}/dnsblnogrey \
71 %{buildroot}/var/dcc/userdirs/dnsblnogrey/whiteclnt 71 %{buildroot}/var/dcc/userdirs/dnsblnogrey/whiteclnt
72 %if "%{?dist}" == ".el7" 72 %if "%{?dist}" > ".el6"
73 install -m 644 -D %{buildroot}%{_sysconfdir}/%{name}/%{name}.service \ 73 install -m 644 -D %{buildroot}%{_sysconfdir}/%{name}/%{name}.service \
74 %{buildroot}%{_unitdir}/%{name}.service 74 %{buildroot}%{_unitdir}/%{name}.service
75 install -m 755 -d %{buildroot}%{_prefix}/lib/tmpfiles.d 75 install -m 755 -d %{buildroot}%{_prefix}/lib/tmpfiles.d
76 install -m 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}-tmpfs.conf \ 76 install -m 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}-tmpfs.conf \
77 %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf 77 %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
91 91
92 92
93 %post 93 %post
94 if [ $1 = 1 ]; then 94 if [ $1 = 1 ]; then
95 # initial install 95 # initial install
96 %if "%{?dist}" == ".el7" 96 %if "%{?dist}" > ".el6"
97 /bin/systemctl daemon-reload &>/dev/null || : 97 /bin/systemctl daemon-reload &>/dev/null || :
98 %else 98 %else
99 /sbin/chkconfig --add %{name} 99 /sbin/chkconfig --add %{name}
100 %endif 100 %endif
101 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc: 101 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc:
104 fi 104 fi
105 105
106 %preun 106 %preun
107 if [ $1 = 0 ]; then 107 if [ $1 = 0 ]; then
108 # package removal, not upgrade 108 # package removal, not upgrade
109 %if "%{?dist}" == ".el7" 109 %if "%{?dist}" > ".el6"
110 /bin/systemctl --no-reload disable %{name}.service &>/dev/null || : 110 /bin/systemctl --no-reload disable %{name}.service &>/dev/null || :
111 /bin/systemctl stop %{name}.service &>/dev/null || : 111 /bin/systemctl stop %{name}.service &>/dev/null || :
112 %else 112 %else
113 /sbin/service %{name} stop || : 113 /sbin/service %{name} stop || :
114 /sbin/chkconfig --del %{name} 114 /sbin/chkconfig --del %{name}
117 117
118 118
119 %postun 119 %postun
120 if [ $1 -ge 1 ]; then 120 if [ $1 -ge 1 ]; then
121 # package upgrade, not uninstall 121 # package upgrade, not uninstall
122 %if "%{?dist}" == ".el7" 122 %if "%{?dist}" > ".el6"
123 /bin/systemctl try-restart %{name}.service &>/dev/null || : 123 /bin/systemctl try-restart %{name}.service &>/dev/null || :
124 %else 124 %else
125 /sbin/service %{name} restart || : 125 /sbin/service %{name} restart || :
126 %endif 126 %endif
127 fi 127 fi
139 %docdir %{_datadir}/doc/%{name}-%{version} 139 %docdir %{_datadir}/doc/%{name}-%{version}
140 %{_datadir}/doc/%{name}-%{version} 140 %{_datadir}/doc/%{name}-%{version}
141 %config(noreplace) %attr(0750,%{name},root) %{_sysconfdir}/%{name} 141 %config(noreplace) %attr(0750,%{name},root) %{_sysconfdir}/%{name}
142 %dir %attr(0750,dcc,dcc) /var/dcc/userdirs/dnsblnogrey 142 %dir %attr(0750,dcc,dcc) /var/dcc/userdirs/dnsblnogrey
143 %config(noreplace) %attr(0644,dcc,dcc) /var/dcc/userdirs/dnsblnogrey/whiteclnt 143 %config(noreplace) %attr(0644,dcc,dcc) /var/dcc/userdirs/dnsblnogrey/whiteclnt
144 %if "%{?dist}" == ".el7" 144 %if "%{?dist}" > ".el6"
145 %{_prefix}/lib/tmpfiles.d/%{name}.conf 145 %{_prefix}/lib/tmpfiles.d/%{name}.conf
146 %{_unitdir}/%{name}.service 146 %{_unitdir}/%{name}.service
147 %else 147 %else
148 %{_initrddir}/%{name} 148 %{_initrddir}/%{name}
149 %endif 149 %endif
156 - improve extraction of fake TLDs from our RPZ zone so 156 - improve extraction of fake TLDs from our RPZ zone so
157 that names under those TLDs may be added to uribl lists 157 that names under those TLDs may be added to uribl lists
158 via RPZ. 158 via RPZ.
159 - snprintf changes for GCC stricter checking on Fedora. 159 - snprintf changes for GCC stricter checking on Fedora.
160 - case insensitive comparisons for SPF tokens in TXT records. 160 - case insensitive comparisons for SPF tokens in TXT records.
161 - allow building on el8
161 162
162 * Thu Apr 25 2019 Carl Byington <carl@five-ten-sg.com> - 6.76-1 163 * Thu Apr 25 2019 Carl Byington <carl@five-ten-sg.com> - 6.76-1
163 - SA needs original rfc5321 envelope from to do proper spf 164 - SA needs original rfc5321 envelope from to do proper spf
164 checking. 165 checking.
165 - remove some debug code 166 - remove some debug code