]> git.pld-linux.org Git - packages/NewsCache.git/commitdiff
-adapterized, fixed tabs,
authorhunter <hunter@pld-linux.org>
Sun, 4 Apr 2004 15:37:27 +0000 (15:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
-inetd & standalone subpackeges

Changed files:
    NewsCache.spec -> 1.6

NewsCache.spec

index f71d32bad97061c131689c68272828b7a0908dbb..20d46c9ecc3d3b549e22c264560309c270617a70 100644 (file)
@@ -1,14 +1,18 @@
-Summary:       News Cache 
-Summary(pl):   nisza dla newsów 
+Summary:       News Cache
+Summary(pl):   nisza dla newsów
 Name:          NewsCache
 Version:       1.1.92
 Release:       1
 Epoch:         0
 License:       GPL
 Group:         Applications/News
-Source0:       http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz 
+Source0:       http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz
+Source1:       %{name}-init
 # Source0-md5: 8cd84c15429fbf70b9f24ab877387ab3
 Patch0:                %{name}-ac_no_debug_flag_hack.patch
+# http://cmeerw.org/debian/
+# Patch1:              newscache_1.1.92-0cmeerw.diff.gz
+# http://download.cmeerw.net/debian/newscache/source/newscache_1.1.92-0cmeerw.diff.gz
 URL:           http://members.aon.at/hstraub/linux/newscache
 BuildRequires: socket++-devel
 BuildRequires: libwrap-devel
@@ -24,13 +28,43 @@ NewsCache targets problems of the current News System like network
 bandwidth consumption or the IO load caused by news clients.
 
 %description -l pl
-NewsCache to wolnodostêpny serwer keszuj±cy dla sieci USENET. NewsCache
-jest widziany jako serwer nntp, ale przechowuje tylko te artyku³y o które choæ jeden klient poprosi³.
-NewsCache rozwi±zuje problemy takie jak zajmowanie pasma czy obci±¿enie IO... (NYF!!!)
+NewsCache to wolnodostêpny serwer keszuj±cy dla sieci USENET.
+NewsCache jest widziany jako serwer nntp, ale przechowuje tylko te
+artyku³y o które czya³ choæ jeden klient. NewsCache rozwi±zuje
+problemy takie jak zajmowanie pasma czy obci±¿enie systemu We/Wy
+spowodowane obs³ug± klientów news.
+
+%package standalone
+Summary:       NewsCache standalone mode
+Summary(pl):   NewsCache w trybie samodzielnym
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Conflicts:     %{name}-inetd
+
+%description standalone
+Run NewsCache in the Standalone mode
+
+%description standalone -l pl
+Uruchamia NewsCache w trybie Standalone
+
+%package inetd
+Summary:       NewsCache inetd mode
+Summary(pl):   NewsCache w trybie inetd
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      rc-inetd
+Conflicts:     %{name}-inetd
+
+%description inetd
+Run NewsCache from the inetd.
+
+%description inetd -l pl
+Uruchamia NewsCache pod konrol± inetd
 
 %prep
-%setup -q 
+%setup -q
 %patch0 -p0
+#%patch1 -p1
 
 %build
 %define specflags '-O0'
@@ -38,14 +72,17 @@ NewsCache rozwi
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure     \
+--enable-notcached
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+DESTDIR=$RPM_BUILD_ROOT
+install -d     $RPM_BUILD_ROOT{/var/cache/newscache/,{%_sysconfdir},/etc/rc.d/init.d/}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/newscache
 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf
 mv -f  $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth
 
@@ -55,9 +92,19 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS TODO
+%doc %{_datadir}/info/NewsCache.info.gz
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man?/*
+%dir %{_sysconfdir}
+%attr(755,news,news) %dir      /var/cache/newscache
+%attr(644,news,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
+
+%files inetd
+%defattr(644,root,root,755)
+
+%files standalone
+%defattr(644,root,root,755)
+/etc/rc.d/init.d/newscache
 %{_infodir}/*
-%{_sysconfdir}
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
This page took 0.144685 seconds and 4 git commands to generate.