]>
Commit | Line | Data |
---|---|---|
9e1f55ef JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with largefiles # enable largefiles (disables tagged hash) | |
4 | # | |
5ea55358 | 5 | %include /usr/lib/rpm/macros.perl |
62d4f04e | 6 | Summary: INN, the InterNet News System (news server) |
900e3991 ER |
7 | Summary(de.UTF-8): das InterNet News System (News-Server) |
8 | Summary(es.UTF-8): INN, InterNet News System (servidor news) | |
9 | Summary(fr.UTF-8): INN, le système InterNet News (serveur de news) | |
10 | Summary(pl.UTF-8): INN, serwer nowinek | |
11 | Summary(pt_BR.UTF-8): INN, InterNet News System (servidor news) | |
12 | Summary(tr.UTF-8): INN, InterNet Haber Sistemi (haber sunucu) | |
e762d39b | 13 | Name: inn |
0152bd41 | 14 | Version: 2.4.6 |
988e20fb | 15 | Release: 1 |
2f46b8d0 | 16 | License: distributable |
62d4f04e | 17 | Group: Networking/Daemons |
e2024cb9 | 18 | Source0: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz |
0152bd41 | 19 | # Source0-md5: 50741ff1b9c230af9109aafc7e98b1a2 |
bac70e06 | 20 | Source1: %{name}-default-active |
21 | Source2: %{name}-default-distributions | |
22 | Source3: %{name}-default-newsgroups | |
d62f835a AA |
23 | Source4: %{name}.crontab |
24 | Source5: %{name}.init | |
25 | Source6: %{name}-cnfsstat.cron | |
26 | Source7: %{name}.logrotate | |
27 | Source8: getlist.1.pl | |
28 | Source9: %{name}d.8.pl | |
45c9b47c JB |
29 | Patch0: %{name}-PLD.patch |
30 | Patch1: %{name}-install.patch | |
31 | Patch2: %{name}-db.patch | |
32 | Patch3: %{name}-ac25x.patch | |
33 | Patch4: %{name}-ac253.patch | |
1a925eab JK |
34 | Patch5: %{name}-setgid.patch |
35 | Patch6: %{name}-db4.patch | |
00fbffab JB |
36 | Patch7: %{name}-config.patch |
37 | Patch8: %{name}-libdir.patch | |
38 | Patch9: %{name}-asneeded.patch | |
720fc8b0 | 39 | Patch10: %{name}-nnrpd_no_trace.patch |
4b750dd9 | 40 | URL: http://www.isc.org/sw/inn/ |
a5f0bd96 | 41 | BuildRequires: autoconf |
1f19b0ad | 42 | BuildRequires: automake |
5ea55358 | 43 | BuildRequires: bison |
70fbead5 | 44 | BuildRequires: db-devel |
3dc5b213 | 45 | BuildRequires: flex |
988e20fb | 46 | BuildRequires: heimdal-devel |
713a2e4c | 47 | BuildRequires: libcom_err-devel |
a2235043 | 48 | BuildRequires: libtool >= 1:1.4.2-9 |
5c9fcecc | 49 | BuildRequires: openssl-devel >= 0.9.7d |
567aad03 | 50 | BuildRequires: perl-devel >= 1:5.8.0 |
5c8ecc5f | 51 | BuildRequires: rpmbuild(macros) >= 1.268 |
cba9f618 | 52 | Requires(post): /bin/kill |
2217a330 | 53 | Requires(post): /usr/bin/getent |
ed7425b9 | 54 | Requires(post): /usr/sbin/usermod |
cba9f618 | 55 | Requires(post): fileutils |
ed7425b9 | 56 | Requires(post): sed >= 4.0 |
2217a330 | 57 | Requires(post): textutils |
ed7425b9 ER |
58 | Requires(post,preun): /sbin/chkconfig |
59 | Requires: %{name}-libs = %{version}-%{release} | |
1824cb2f | 60 | Requires: /etc/cron.d |
032bb863 | 61 | Requires: awk |
62 | Requires: cleanfeed >= 0.95.7b-4 | |
63 | Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION') | |
e394e0ff | 64 | Requires: procps |
032bb863 | 65 | Requires: psmisc >= 20.1 |
45c23cff | 66 | Requires: rc-scripts >= 0.4.1.23 |
e394e0ff | 67 | Requires: textutils |
032bb863 | 68 | Requires: util-linux |
72d625a1 | 69 | Provides: nntpserver |
8d78fca9 JB |
70 | Obsoletes: leafnode |
71 | Obsoletes: leafnode+ | |
9f0e9d44 | 72 | Conflicts: logrotate < 3.7-4 |
6d6d162e | 73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62d4f04e | 74 | |
8a30a1a2 | 75 | %define _sysconfdir /etc/news |
45c9b47c | 76 | %define _includedir %{_prefix}/include/inn |
8a30a1a2 | 77 | |
491e5253 | 78 | # /usr/bin/pullnews doesn't provide perl(Net::NNTP) - perl-libnet does. |
aaf25e8b | 79 | %define _noautoprov 'perl(Net::NNTP)' |
491e5253 | 80 | # it's necessary only for sample nnrpd_auth.pl hook |
aaf25e8b | 81 | %define _noautoreq 'perl(CDB_File)' |
491e5253 | 82 | |
62d4f04e | 83 | %description |
e762d39b | 84 | INN is a news server, which can be set up to handle USENET news, as |
85 | well as private "newsfeeds". There is a *LOT* of information about | |
5c8ecc5f | 86 | setting up INN in %{_docdir}/%{name}-%{version} -- read it. |
62d4f04e | 87 | |
689f93fc JR |
88 | If you want innreport to generate graphs you need perl-GD package. |
89 | ||
766f00fd | 90 | %description -l es.UTF-8 |
b3dfec9f | 91 | INN es un servidor de news, que puede ser configurado para manipular |
766f00fd JR |
92 | USENET news bien como newsfeeds privadas. Existe un *Montón* de |
93 | información sobre la configuración del INN en %{_docdir}/%{name}-%{version} -- léela. | |
b3dfec9f | 94 | |
766f00fd JR |
95 | %description -l pl.UTF-8 |
96 | INN jest serwerem news, który można skonfigurować do obsługi USENET-u, | |
97 | jak również do obsługi ,,prywatnych'' grup w sieciach intranetowych. | |
98 | Całe mnóstwo pożytecznych informacji o konfigurowaniu INN-a znajdziesz | |
5c8ecc5f | 99 | w katalogu %{_docdir}/%{name}-%{version}. |
62d4f04e | 100 | |
766f00fd | 101 | Jeśli chcesz żeby innreport generował wykresy musisz zainstalować |
689f93fc JR |
102 | pakiet perl-GD. |
103 | ||
766f00fd JR |
104 | %description -l pt_BR.UTF-8 |
105 | INN é um servidor de news, que pode ser configurado para manipular | |
b3dfec9f | 106 | USENET news bem como newsfeeds privadas. Existe um *MONTE* de |
766f00fd | 107 | informações sobre a configuração do INN em %{_docdir}/%{name}-%{version} -- leia. |
b3dfec9f | 108 | |
b8fd1c81 JR |
109 | %package libs |
110 | Summary: INN libraries | |
900e3991 ER |
111 | Summary(de.UTF-8): INN-Library |
112 | Summary(fr.UTF-8): Bibliothèque INN | |
113 | Summary(pl.UTF-8): Biblioteki do INN-a | |
b8fd1c81 | 114 | Group: Development/Libraries |
b8fd1c81 JR |
115 | |
116 | %description libs | |
117 | This library is needed by several programs that interface to INN, such | |
118 | as newsgate or tin. | |
119 | ||
766f00fd JR |
120 | %description libs -l de.UTF-8 |
121 | Diese Library wird von mehreren Programmen benötigt, die mit INN | |
b8fd1c81 JR |
122 | kommunizieren, etwa newsgate oder tin. |
123 | ||
766f00fd JR |
124 | %description libs -l fr.UTF-8 |
125 | Cette bibliothèque est nécessaire à plusieurs programmes qui | |
b8fd1c81 JR |
126 | s'interfacent avec INN, comme newsgate ou tin. |
127 | ||
766f00fd JR |
128 | %description libs -l pl.UTF-8 |
129 | Biblioteka niezbędna do działania kilku programów współpracujących z | |
b8fd1c81 JR |
130 | INN-em, takich jak newsgate czy tin. |
131 | ||
766f00fd JR |
132 | %description libs -l tr.UTF-8 |
133 | INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken | |
134 | bir kitaplıktır. | |
b8fd1c81 | 135 | |
62d4f04e | 136 | %package devel |
8ee5b158 | 137 | Summary: INN header files and development documentations |
900e3991 ER |
138 | Summary(de.UTF-8): INN-Library |
139 | Summary(es.UTF-8): Biblioteca INN | |
140 | Summary(fr.UTF-8): Bibliothèque INN | |
141 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do inn-a | |
142 | Summary(pt_BR.UTF-8): Biblioteca INN | |
143 | Summary(tr.UTF-8): INN kitaplığı | |
1f021260 | 144 | Group: Development/Libraries |
0b6509ff | 145 | Requires: %{name}-libs = %{version}-%{release} |
70fbead5 | 146 | Requires: db-devel |
f7754046 | 147 | |
62d4f04e | 148 | %description devel |
3630905a | 149 | Header files and developer documentations for INN libraries. |
62d4f04e | 150 | |
766f00fd JR |
151 | %description devel -l de.UTF-8 |
152 | Diese Library wird von mehreren Programmen benötigt, die mit INN | |
62d4f04e | 153 | kommunizieren, etwa newsgate oder tin. |
154 | ||
766f00fd | 155 | %description devel -l es.UTF-8 |
b3dfec9f | 156 | Esta biblioteca es requerida por varios programas que tienen interface |
157 | con INN, como el newsgate o tin. | |
158 | ||
766f00fd JR |
159 | %description devel -l fr.UTF-8 |
160 | Cette bibliothèque est nécessaire à plusieurs programmes qui | |
e762d39b | 161 | s'interfacent avec INN, comme newsgate ou tin. |
62d4f04e | 162 | |
766f00fd JR |
163 | %description devel -l pl.UTF-8 |
164 | Pliki nagłówkowe i dokumentacja programisty do bibliotek INN-a. | |
62d4f04e | 165 | |
766f00fd JR |
166 | %description devel -l pt_BR.UTF-8 |
167 | Esta biblioteca é requerida por vários programas que tem interface com | |
b3dfec9f | 168 | o INN, como o newsgate ou tin. |
169 | ||
766f00fd JR |
170 | %description devel -l tr.UTF-8 |
171 | INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken | |
172 | bir kitaplıktır. | |
62d4f04e | 173 | |
8ee5b158 | 174 | %package static |
175 | Summary: Static INN libraries | |
900e3991 ER |
176 | Summary(es.UTF-8): Static libraries for inn development |
177 | Summary(pl.UTF-8): Biblioteki statyczne do INN | |
178 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com inn | |
8ee5b158 | 179 | Group: Development/Libraries |
0b6509ff | 180 | Requires: %{name}-devel = %{version}-%{release} |
8ee5b158 | 181 | |
182 | %description static | |
183 | Static INN libraries. | |
184 | ||
766f00fd | 185 | %description static -l es.UTF-8 |
b3dfec9f | 186 | Static libraries for inn development |
187 | ||
766f00fd | 188 | %description static -l pl.UTF-8 |
8ee5b158 | 189 | Biblioteki statyczne do INN. |
62d4f04e | 190 | |
766f00fd JR |
191 | %description static -l pt_BR.UTF-8 |
192 | INN é um servidor de news, que pode ser configurado para manipular | |
b3dfec9f | 193 | USENET news bem como newsfeeds privadas. Existe um *MONTE* de |
766f00fd | 194 | informações sobre a configuração do INN em /usr/doc -- leia. |
b3dfec9f | 195 | |
766f00fd | 196 | Bibliotecas estáticas para desenvolvimento com inn |
b3dfec9f | 197 | |
62d4f04e | 198 | %package -n inews |
1f021260 | 199 | Summary: Inews program (used for posting by inn and trn) |
900e3991 ER |
200 | Summary(de.UTF-8): Inews-Programm (für die Zustellung mit inn und trn) |
201 | Summary(es.UTF-8): Programa Inews (usado para franqueo por inn y trn) | |
202 | Summary(fr.UTF-8): Programme inews (utilisé par inn et trn pour poster) | |
203 | Summary(pl.UTF-8): Inews - program do wysyłania artykułów (używany przez inn i trn) | |
204 | Summary(pt_BR.UTF-8): Programa Inews (usado para postagem pelo inn e trn) | |
205 | Summary(tr.UTF-8): Haber biçimlendirme programı | |
1f021260 | 206 | Group: Networking/News |
0b6509ff | 207 | Requires: %{name}-libs = %{version}-%{release} |
62d4f04e | 208 | |
209 | %description -n inews | |
e762d39b | 210 | The inews program is used by some news readers to post news. It does |
211 | some consistency checking and header reformatting, and forwards the | |
212 | article on to the news server specified in inn.conf. | |
62d4f04e | 213 | |
766f00fd | 214 | %description -n inews -l de.UTF-8 |
e762d39b | 215 | Das Programm 'inews' wird von manchen Newsreadern zum Senden von |
766f00fd | 216 | Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf |
e762d39b | 217 | ormatierung aus und leitet die Nachricht an den in 'inn.conf' |
218 | angegebenen News-Server weiter. | |
62d4f04e | 219 | |
766f00fd | 220 | %description -n inews -l es.UTF-8 |
b3dfec9f | 221 | El programa inews se usa por algunos lectores de news para postar |
222 | mensajes. Hace alguna consistencia chequeando y reformateando headers, | |
766f00fd | 223 | y enviando el artículo para el servidor de news especificado en el |
b3dfec9f | 224 | inn.conf. |
225 | ||
766f00fd JR |
226 | %description -n inews -l fr.UTF-8 |
227 | Le programme inews est utilisé par certains lecteurs de news pour | |
228 | poster les articles. Il effectue des vérifications et un reformatage | |
229 | des en-têtes et fait suivre l'article au serveur de news spécifié dans | |
e762d39b | 230 | inn.conf. |
62d4f04e | 231 | |
766f00fd JR |
232 | %description -n inews -l pl.UTF-8 |
233 | Inews jest używany przez niektóre czytniki news do wysyłania | |
234 | artykułów. Sprawdza budowę artykułu, przepisuje nagłówek i wysyła do | |
235 | serwera news wyszczególnionego w inn.conf. | |
62d4f04e | 236 | |
766f00fd JR |
237 | %description -n inews -l pt_BR.UTF-8 |
238 | O programa inews é usado por alguns leitores de news para postar | |
239 | mensagens. Ele faz alguma consistência checando e reformatando | |
b3dfec9f | 240 | headers, e enviando o artigo para o servidor de news especificado no |
241 | inn.conf. | |
242 | ||
766f00fd JR |
243 | %description -n inews -l tr.UTF-8 |
244 | inews programı bazı haber okuyucular tarafından haber yollamak | |
245 | amacıyla kullanılır. Program bazı güvenlik denetimleri ve başlık | |
246 | biçimlendirmesi yaparak ve inn.conf dosyasında belirtilen haber | |
e762d39b | 247 | sunucuya makaleyi yollar. |
62d4f04e | 248 | |
249 | %prep | |
1824cb2f | 250 | %setup -q |
22cdc3ec | 251 | %patch0 -p1 |
1824cb2f | 252 | %patch1 -p1 |
43b69da4 | 253 | %patch2 -p1 |
a7951795 | 254 | %patch3 -p1 |
c886271f | 255 | %patch4 -p1 |
1a925eab JK |
256 | %patch5 -p1 |
257 | %patch6 | |
5fe706d7 JK |
258 | %patch7 -p1 |
259 | %patch8 -p1 | |
04fde985 | 260 | %patch9 -p1 |
720fc8b0 | 261 | %patch10 -p1 |
ffaa5404 | 262 | |
62d4f04e | 263 | touch innfeed/*.[ly] |
264 | ||
8fa20058 | 265 | %build |
4a2f14c0 | 266 | %{__libtoolize} |
00fbffab | 267 | cp -f /usr/share/automake/config.* support |
3dc5b213 JB |
268 | %{__aclocal} |
269 | %{__autoconf} | |
713a2e4c | 270 | %{__autoheader} -I include |
8a30a1a2 | 271 | %configure \ |
713a2e4c | 272 | CPPFLAGS="-D_GNU_SOURCE" \ |
aeef40a9 JB |
273 | --with-news-user=news \ |
274 | --with-news-group=news \ | |
275 | --with-news-master=news \ | |
d62f835a | 276 | --with-control-dir=%{_datadir}/news/control \ |
aeef40a9 JB |
277 | --with-db-dir=/var/lib/news \ |
278 | --with-etc-dir=%{_sysconfdir} \ | |
d62f835a | 279 | --with-filter-dir=%{_datadir}/news/filter \ |
aeef40a9 JB |
280 | --with-log-dir=/var/log/news \ |
281 | --with-run-dir=/var/run/news \ | |
282 | --with-spool-dir=/var/spool/news \ | |
283 | --with-lib-dir=%{_datadir}/news \ | |
d62f835a | 284 | --with-tmp-dir=/var/spool/news/incoming/tmp \ |
aeef40a9 | 285 | --with-perl \ |
d62f835a | 286 | --with-sendmail=/usr/lib/sendmail \ |
b1d87e42 JR |
287 | --with-openssl=%{_prefix} \ |
288 | --with-berkeleydb=%{_prefix} \ | |
9e1f55ef JB |
289 | %{?with_largefiles:--enable-largefiles} \ |
290 | %{!?with_largefiles:--enable-tagged-hash} \ | |
8a30a1a2 | 291 | --enable-shared \ |
43b69da4 | 292 | --enable-static \ |
22cdc3ec | 293 | --enable-libtool \ |
40c56abe | 294 | --enable-ipv6 |
4f74b1e3 | 295 | |
8fa20058 JB |
296 | %{__make} all \ |
297 | PATHFILTER=%{_datadir}/news/filter \ | |
b1d87e42 | 298 | PATHCONTROL=%{_datadir}/news/control |
62d4f04e | 299 | |
5da4f037 | 300 | %install |
e762d39b | 301 | rm -rf $RPM_BUILD_ROOT |
7aaadf48 | 302 | install -d $RPM_BUILD_ROOT/etc/{news/pgp,rc.d/init.d,cron.d,logrotate.d} \ |
45c9b47c | 303 | $RPM_BUILD_ROOT{%{_libdir}/news/{rnews,auth/generic},%{_includedir}} \ |
b1d87e42 | 304 | $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/news/{control,filter,auth}} \ |
8428426c | 305 | $RPM_BUILD_ROOT%{_mandir}/{man{1,3,5,8},pl/man{1,8}} \ |
df051d6a | 306 | $RPM_BUILD_ROOT/var/{run/news,lib/news/backoff,log/{news,archive/news}} \ |
aeef40a9 JB |
307 | $RPM_BUILD_ROOT/var/spool/news/{articles,overview,incoming/{tmp,bad},outgoing,archive,uniover,innfeed,cycbuffs} \ |
308 | $RPM_BUILD_ROOT/home/services/news | |
1824cb2f | 309 | |
65158df2 | 310 | %{__make} install \ |
04fde985 | 311 | DESTDIR=$RPM_BUILD_ROOT \ |
8a30a1a2 | 312 | PATHFILTER=%{_datadir}/news/filter \ |
1824cb2f | 313 | PATHCONTROL=%{_datadir}/news/control \ |
b1d87e42 JR |
314 | PATHRNEWS=%{_libdir}/news/rnews \ |
315 | PATHAUTHPASSWD=%{_libdir}/news/auth/passwd \ | |
316 | PATHAUTHRESOLV=%{_libdir}/news/auth/resolv | |
317 | ||
318 | install samples/readers.conf $RPM_BUILD_ROOT%{_sysconfdir}/readers.conf | |
1824cb2f | 319 | |
fb162469 JR |
320 | install %{SOURCE1} $RPM_BUILD_ROOT/var/lib/news/active |
321 | install %{SOURCE2} $RPM_BUILD_ROOT/var/lib/news/distributions | |
322 | install %{SOURCE3} $RPM_BUILD_ROOT/var/lib/news/newsgroups | |
d62f835a AA |
323 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/inn |
324 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn | |
325 | install %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron | |
326 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/inn | |
327 | install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/pl/man1/getlist.1 | |
328 | install %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/pl/man8/innd.8 | |
43b69da4 | 329 | |
fb162469 | 330 | rm -f $RPM_BUILD_ROOT/var/lib/news/history |
4f74b1e3 | 331 | |
332 | umask 002 | |
519ae65b | 333 | :> $RPM_BUILD_ROOT%{_sysconfdir}/subscriptions |
fb162469 JR |
334 | touch $RPM_BUILD_ROOT/var/lib/news/.news.daily |
335 | touch $RPM_BUILD_ROOT/var/lib/news/active.times | |
519ae65b | 336 | touch $RPM_BUILD_ROOT/var/lib/news/history |
4f74b1e3 | 337 | |
45c9b47c | 338 | LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_bindir}/makehistory \ |
fb162469 JR |
339 | -a $RPM_BUILD_ROOT/var/lib/news/active \ |
340 | -i -r -f $RPM_BUILD_ROOT/var/lib/news/history || : | |
bac70e06 | 341 | |
5c8ecc5f | 342 | # Fix perms in sample directory to avoid bogus dependencies |
4f74b1e3 | 343 | find samples -name "*.in" -exec chmod a-x {} \; |
344 | ||
71d10459 | 345 | # remove files in conflict with cleanfeed |
ed7425b9 | 346 | rm -f $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.* |
71d10459 | 347 | |
8341cf3e | 348 | # remove unpackaged files |
8341cf3e AA |
349 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
350 | rm -f $RPM_BUILD_ROOT%{_bindir}/rc.news | |
351 | ||
62d4f04e | 352 | %clean |
353 | rm -rf $RPM_BUILD_ROOT | |
354 | ||
355 | %post | |
5c8ecc5f | 356 | if [ "`getent passwd news | cut -d: -f6`" = "/var/spool/news" ]; then |
aeef40a9 JB |
357 | /usr/sbin/usermod -d /home/services/news news |
358 | fi | |
f6dd3bef | 359 | |
cba9f618 | 360 | umask 022 |
f6dd3bef TP |
361 | cd /var/lib/news |
362 | if [ ! -f /var/lib/news/history ]; then | |
713a2e4c | 363 | # makehistory fails on uninitialized spool(?) - create empty history in such case |
f6dd3bef TP |
364 | %{_bindir}/makehistory || { echo "Creating empty history"; :> history; } |
365 | chown news:news history | |
519ae65b | 366 | chmod 664 history |
62d4f04e | 367 | fi |
871bc43d | 368 | %{_bindir}/makedbz -s `wc -l < history` -f history |
f6dd3bef TP |
369 | for i in dir hash index pag; do |
370 | [ -f history.n.$i ] && mv history.n.$i history.$i | |
371 | done | |
372 | chown news:news history.* | |
373 | chmod 644 history.* | |
5c8ecc5f | 374 | |
5c8ecc5f | 375 | if [ ! -f /var/lib/news/.news.daily ]; then |
f6dd3bef | 376 | :> /var/lib/news/.news.daily |
5c8ecc5f ER |
377 | chown news:news /var/lib/news/.news.daily |
378 | chmod 664 /var/lib/news/.news.daily | |
379 | fi | |
380 | ||
822b13cf | 381 | /sbin/chkconfig --add inn |
5c8ecc5f | 382 | %service inn restart "inn news server" |
62d4f04e | 383 | |
384 | %preun | |
822b13cf | 385 | if [ "$1" = "0" ]; then |
5c8ecc5f | 386 | %service inn stop |
822b13cf | 387 | /sbin/chkconfig --del inn |
388 | fi | |
62d4f04e | 389 | |
45c9b47c JB |
390 | %triggerpostun -- inn < 2.4.0 |
391 | cp -af %{_sysconfdir}/inn.conf{,.rpmorig} | |
392 | sed -e 's/^\(listenonipv6\)/#\1/;s/^bindipv6address/bindaddress6/;s/^sourceipv6address/sourceaddress6/' \ | |
393 | %{_sysconfdir}/inn.conf.rpmorig > %{_sysconfdir}/inn.conf | |
394 | ||
aeef40a9 JB |
395 | %post libs -p /sbin/ldconfig |
396 | %postun libs -p /sbin/ldconfig | |
43b69da4 | 397 | |
62d4f04e | 398 | %files |
a1468b80 | 399 | %defattr(644,root,root,755) |
45c9b47c | 400 | %doc CONTRIBUTORS ChangeLog INSTALL LICENSE NEWS README TODO doc/[Icehs]* |
18b96901 | 401 | %attr(700,news,news) %dir /home/services/news |
a1468b80 | 402 | |
1824cb2f | 403 | # DB |
8a9401bf JK |
404 | %attr(770,root,news) %dir /var/lib/news |
405 | %attr(770,root,news) %dir /var/lib/news/backoff | |
ed7425b9 | 406 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active |
519ae65b | 407 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active.times |
ed7425b9 ER |
408 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/distributions |
409 | %attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/newsgroups | |
fb162469 | 410 | %attr(664,news,news) %ghost /var/lib/news/.news.daily |
b1d87e42 | 411 | %attr(664,news,news) %ghost /var/lib/news/history |
1824cb2f | 412 | |
413 | # LOGS | |
ed7425b9 | 414 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/inn |
0ed888d2 | 415 | %attr(770,news,news) %dir /var/run/news |
1824cb2f | 416 | |
417 | # SPOOL | |
44489064 | 418 | %attr(771,root,news) %dir /var/spool/news |
b1d87e42 JR |
419 | %attr(770,root,news) %dir /var/spool/news/archive |
420 | %attr(770,root,news) %dir /var/spool/news/articles | |
8a9401bf | 421 | %attr(770,root,news) %dir /var/spool/news/cycbuffs |
8a9401bf JK |
422 | %attr(770,root,news) %dir /var/spool/news/incoming |
423 | %attr(770,root,news) %dir /var/spool/news/incoming/bad | |
424 | %attr(770,root,news) %dir /var/spool/news/incoming/tmp | |
b1d87e42 | 425 | %attr(770,root,news) %dir /var/spool/news/innfeed |
8a9401bf | 426 | %attr(770,root,news) %dir /var/spool/news/outgoing |
8a9401bf JK |
427 | %attr(770,root,news) %dir /var/spool/news/overview |
428 | %attr(770,root,news) %dir /var/spool/news/uniover | |
1824cb2f | 429 | |
430 | # CRON PARTS | |
ed7425b9 | 431 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/inn |
1824cb2f | 432 | |
433 | # RC-SCRIPT | |
bac70e06 | 434 | %attr(754,root,root) /etc/rc.d/init.d/inn |
1824cb2f | 435 | |
436 | # CONFIGS (INN is a one big config ;-) | |
8a9401bf | 437 | %attr(755,root,news) %dir %{_sysconfdir} |
ed7425b9 ER |
438 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.cfg |
439 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.ign | |
440 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/buffindexed.conf | |
441 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/control.ctl | |
442 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cycbuff.conf | |
443 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/distrib.pats | |
444 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/expire.ctl | |
445 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/incoming.conf | |
446 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inn.conf | |
447 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innfeed.conf | |
448 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innreport.conf | |
449 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innwatch.ctl | |
450 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/moderators | |
451 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motd.news | |
452 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/news2mail.cf | |
453 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/newsfeeds | |
454 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nnrpd.track | |
455 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nntpsend.ctl | |
456 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ovdb.conf | |
457 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/overview.fmt | |
458 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd.nntp | |
459 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/radius.conf | |
460 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readers.conf | |
461 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl.conf | |
462 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/storage.conf | |
463 | %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subscriptions | |
7aaadf48 | 464 | %attr(755,root,news) %dir %{_sysconfdir}/pgp |
1526c35e | 465 | |
0a8e57f3 | 466 | %attr(755,root,news) %dir %{_datadir}/news |
8a30a1a2 | 467 | %attr(755,root,root) %dir %{_datadir}/news/control |
468 | %attr(755,root,root) %dir %{_datadir}/news/filter | |
8a30a1a2 | 469 | |
ed7425b9 ER |
470 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innreport_inn.pm |
471 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars | |
472 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.pl | |
473 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.tcl | |
474 | ||
475 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/INN.py | |
476 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/filter_nnrpd.pl | |
477 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/filter.tcl | |
478 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.pl | |
479 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.py | |
480 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/startup_innd.pl | |
481 | %config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/startup.tcl | |
8a30a1a2 | 482 | |
bac70e06 | 483 | %attr(755,root,root) %{_datadir}/news/control/checkgroups.pl |
bac70e06 | 484 | %attr(755,root,root) %{_datadir}/news/control/ihave.pl |
bac70e06 | 485 | %attr(755,root,root) %{_datadir}/news/control/newgroup.pl |
bac70e06 | 486 | %attr(755,root,root) %{_datadir}/news/control/rmgroup.pl |
bac70e06 | 487 | %attr(755,root,root) %{_datadir}/news/control/sendme.pl |
bac70e06 | 488 | %attr(755,root,root) %{_datadir}/news/control/sendsys.pl |
bac70e06 | 489 | %attr(755,root,root) %{_datadir}/news/control/senduuname.pl |
bac70e06 | 490 | %attr(755,root,root) %{_datadir}/news/control/version.pl |
1824cb2f | 491 | |
b1d87e42 JR |
492 | %attr(755,root,news) %dir %{_libdir}/news |
493 | %attr(755,root,root) %dir %{_libdir}/news/auth | |
494 | %attr(755,root,root) %dir %{_libdir}/news/auth/generic | |
495 | %attr(755,root,root) %dir %{_libdir}/news/auth/passwd | |
496 | %attr(755,root,root) %dir %{_libdir}/news/auth/resolv | |
497 | %attr(755,root,root) %dir %{_libdir}/news/rnews | |
498 | ||
499 | %attr(755,root,root) %{_libdir}/news/auth/passwd/* | |
500 | %attr(755,root,root) %{_libdir}/news/auth/resolv/* | |
501 | %attr(755,root,root) %{_libdir}/news/rnews/* | |
502 | ||
1824cb2f | 503 | # SUID |
9bbe2777 | 504 | %attr(4754,root,news) %{_bindir}/inndstart |
bac70e06 | 505 | %attr(4754,root,news) %{_bindir}/startinnfeed |
36e95576 | 506 | %attr(4754,root,news) %{_bindir}/rnews |
1824cb2f | 507 | |
1824cb2f | 508 | # BINARIES |
7e183975 | 509 | %attr(755,root,root) %{_bindir}/actmerge |
510 | %attr(755,root,root) %{_bindir}/actsync | |
511 | %attr(755,root,root) %{_bindir}/actsyncd | |
512 | %attr(755,root,root) %{_bindir}/archive | |
513 | %attr(755,root,root) %{_bindir}/batcher | |
514 | %attr(755,root,root) %{_bindir}/buffchan | |
b1d87e42 | 515 | %attr(755,root,root) %{_bindir}/cnfsheadconf |
7e183975 | 516 | %attr(755,root,root) %{_bindir}/cnfsstat |
4445c2d2 | 517 | %attr(755,root,root) %{_bindir}/cnfsstat.cron |
7e183975 | 518 | %attr(755,root,root) %{_bindir}/controlbatch |
519 | %attr(755,root,root) %{_bindir}/controlchan | |
520 | %attr(755,root,root) %{_bindir}/convdate | |
7e183975 | 521 | %attr(755,root,root) %{_bindir}/ctlinnd |
522 | %attr(755,root,root) %{_bindir}/cvtbatch | |
45c9b47c | 523 | %attr(755,root,root) %{_bindir}/docheckgroups |
7e183975 | 524 | %attr(755,root,root) %{_bindir}/expire |
7e183975 | 525 | %attr(755,root,root) %{_bindir}/expireover |
526 | %attr(755,root,root) %{_bindir}/expirerm | |
527 | %attr(755,root,root) %{_bindir}/fastrm | |
528 | %attr(755,root,root) %{_bindir}/filechan | |
7e183975 | 529 | %attr(755,root,root) %{_bindir}/getlist |
3dc5b213 | 530 | %attr(755,root,root) %{_bindir}/gpgverify |
7e183975 | 531 | %attr(755,root,root) %{_bindir}/grephistory |
45c9b47c | 532 | %attr(755,root,root) %{_bindir}/imapfeed |
7e183975 | 533 | %attr(755,root,root) %{_bindir}/inncheck |
534 | %attr(755,root,root) %{_bindir}/innconfval | |
535 | %attr(755,root,root) %{_bindir}/innd | |
536 | %attr(755,root,root) %{_bindir}/inndf | |
1824cb2f | 537 | %attr(755,root,root) %{_bindir}/innfeed |
7e183975 | 538 | %attr(755,root,root) %{_bindir}/innmail |
1824cb2f | 539 | %attr(755,root,root) %{_bindir}/innreport |
7e183975 | 540 | %attr(755,root,root) %{_bindir}/innstat |
45c9b47c | 541 | %attr(755,root,root) %{_bindir}/innupgrade |
7e183975 | 542 | %attr(755,root,root) %{_bindir}/innwatch |
543 | %attr(755,root,root) %{_bindir}/innxbatch | |
544 | %attr(755,root,root) %{_bindir}/innxmit | |
545 | %attr(755,root,root) %{_bindir}/mailpost | |
b1d87e42 | 546 | %attr(755,root,root) %{_bindir}/makedbz |
7e183975 | 547 | %attr(755,root,root) %{_bindir}/makehistory |
548 | %attr(755,root,root) %{_bindir}/mod-active | |
1824cb2f | 549 | %attr(755,root,root) %{_bindir}/news.daily |
b1d87e42 | 550 | %attr(755,root,root) %{_bindir}/news2mail |
45c9b47c | 551 | %attr(755,root,root) %{_bindir}/ninpaths |
1824cb2f | 552 | %attr(755,root,root) %{_bindir}/nnrpd |
7e183975 | 553 | %attr(755,root,root) %{_bindir}/nntpget |
554 | %attr(755,root,root) %{_bindir}/nntpsend | |
b1d87e42 | 555 | %attr(755,root,root) %{_bindir}/ovdb_* |
7e183975 | 556 | %attr(755,root,root) %{_bindir}/overchan |
45c9b47c | 557 | %attr(755,root,root) %{_bindir}/perl-nocem |
1824cb2f | 558 | %attr(755,root,root) %{_bindir}/pgpverify |
7e183975 | 559 | %attr(755,root,root) %{_bindir}/procbatch |
560 | %attr(755,root,root) %{_bindir}/prunehistory | |
561 | %attr(755,root,root) %{_bindir}/pullnews | |
7e183975 | 562 | %attr(755,root,root) %{_bindir}/scanlogs |
563 | %attr(755,root,root) %{_bindir}/scanspool | |
1824cb2f | 564 | %attr(755,root,root) %{_bindir}/send-ihave |
565 | %attr(755,root,root) %{_bindir}/send-nntp | |
566 | %attr(755,root,root) %{_bindir}/send-uucp | |
45c9b47c | 567 | %attr(755,root,root) %{_bindir}/sendinpaths |
7e183975 | 568 | %attr(755,root,root) %{_bindir}/sendxbatches |
569 | %attr(755,root,root) %{_bindir}/shlock | |
570 | %attr(755,root,root) %{_bindir}/shrinkfile | |
b1d87e42 | 571 | %attr(755,root,root) %{_bindir}/signcontrol |
7e183975 | 572 | %attr(755,root,root) %{_bindir}/simpleftp |
573 | %attr(755,root,root) %{_bindir}/sm | |
7e183975 | 574 | %attr(755,root,root) %{_bindir}/tally.control |
45c9b47c | 575 | %attr(755,root,root) %{_bindir}/tdx-util |
7e183975 | 576 | %attr(755,root,root) %{_bindir}/writelog |
62d4f04e | 577 | |
1824cb2f | 578 | # MAN |
8ee5b158 | 579 | %{_mandir}/man1/convdate.1* |
3dc5b213 | 580 | %{_mandir}/man1/fastrm.1* |
8ee5b158 | 581 | %{_mandir}/man1/getlist.1* |
582 | %{_mandir}/man1/grephistory.1* | |
583 | %{_mandir}/man1/innconfval.1* | |
584 | %{_mandir}/man1/innfeed.1* | |
3dc5b213 | 585 | %{_mandir}/man1/innmail.1* |
8ee5b158 | 586 | %{_mandir}/man1/nntpget.1* |
45c9b47c | 587 | %{_mandir}/man1/pgpverify.1* |
04fde985 | 588 | %{_mandir}/man1/pullnews.1* |
8ee5b158 | 589 | %{_mandir}/man1/rnews.1* |
590 | %{_mandir}/man1/shlock.1* | |
591 | %{_mandir}/man1/shrinkfile.1* | |
b1d87e42 | 592 | %{_mandir}/man1/simpleftp.1* |
45c9b47c | 593 | %{_mandir}/man1/sm.1* |
8ee5b158 | 594 | %{_mandir}/man1/startinnfeed.1* |
8428426c | 595 | %{_mandir}/man[58]/* |
596 | %lang(pl) %{_mandir}/pl/man1/getlist.1* | |
597 | %lang(pl) %{_mandir}/pl/man8/innd.8* | |
bac70e06 | 598 | |
b8fd1c81 | 599 | %files libs |
5b590a3d | 600 | %defattr(644,root,root,755) |
713a2e4c JB |
601 | %attr(755,root,root) %{_libdir}/libinn.so.*.*.* |
602 | %attr(755,root,root) %ghost %{_libdir}/libinn.so.2 | |
603 | %attr(755,root,root) %{_libdir}/libinnhist.so.*.*.* | |
604 | %attr(755,root,root) %ghost %{_libdir}/libinnhist.so.2 | |
605 | %attr(755,root,root) %{_libdir}/libstorage.so.*.*.* | |
606 | %attr(755,root,root) %ghost %{_libdir}/libstorage.so.2 | |
b8fd1c81 | 607 | |
62d4f04e | 608 | %files devel |
a1468b80 | 609 | %defattr(644,root,root,755) |
713a2e4c JB |
610 | %attr(755,root,root) %{_libdir}/libinn.so |
611 | %attr(755,root,root) %{_libdir}/libinnhist.so | |
612 | %attr(755,root,root) %{_libdir}/libstorage.so | |
613 | %{_libdir}/libinn.la | |
614 | %{_libdir}/libinnhist.la | |
615 | %{_libdir}/libstorage.la | |
45c9b47c | 616 | %{_includedir} |
8a30a1a2 | 617 | %{_mandir}/man3/* |
62d4f04e | 618 | |
8ee5b158 | 619 | %files static |
e762d39b | 620 | %defattr(644,root,root,755) |
713a2e4c JB |
621 | %{_libdir}/libinn.a |
622 | %{_libdir}/libinnhist.a | |
623 | %{_libdir}/libstorage.a | |
8ee5b158 | 624 | |
62d4f04e | 625 | %files -n inews |
f7754046 | 626 | %defattr(644,root,root,755) |
366a13e8 | 627 | %attr(755,root,news) %{_bindir}/inews |
8ee5b158 | 628 | %{_mandir}/man1/inews.1* |