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