On Monday 29 of March 2004 20:54, Tomasz Grobelny wrote:
> 1. Brakuje katalogu /var/log/news i leafnode nie ma gdzie pisać logów
> 2. leafnode szuka konfiga w /etc/config a nie w /etc/leafnode/config
> 3.
> http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/leafnode.rc-inetd?rev=1.2
> pierwsza linijka powinna wyglądać tak:
> SERVICE_NAME=nntp
>
No nic, może chociaż komuś będzie się chciało wykonać commita...
> Uwagi odnoszą się do tego co jest w Ra (choć zapewne nie tylko).
Jak nie będzie uwag to pewnie poprawię też na HEAD.
Tomek
--- leafnode.orig/configutil.c Wed Jul 2 15:00:03 2003
+++ leafnode/configutil.c Sat Apr 3 01:59:53 2004
@@ -145,7 +145,7 @@
param = critmalloc(TOKENSIZE, "allocating space for parsing");
value = critmalloc(TOKENSIZE, "allocating space for parsing");
- xsnprintf(s, SIZE_s, "%s/config", sysconfdir);
+ xsnprintf(s, SIZE_s, "%s/leafnode/config", sysconfdir);
if ((f = fopen(s, "r")) == NULL) {
syslog(LOG_ERR, "cannot open %s", s);
free(param);
Index: SOURCES/leafnode.rc-inetd
===================================================================
RCS file: /cvsroot/SOURCES/leafnode.rc-inetd,v
retrieving revision 1.2
diff -u -3 -p -r1.2 leafnode.rc-inetd
--- SOURCES/leafnode.rc-inetd 24 Jan 2001 13:50:14 -0000 1.2
+++ SOURCES/leafnode.rc-inetd 3 Apr 2004 00:54:42 -0000
@@ -1,4 +1,4 @@
-SERVICE_NAME=leafnode
+SERVICE_NAME=nntp
SOCK_TYPE=stream
PROTOCOL=tcp
PORT=119
Index: SPECS/leafnode.spec
===================================================================
RCS file: /cvsroot/SPECS/leafnode.spec,v
retrieving revision 1.36.2.1
diff -u -3 -p -r1.36.2.1 leafnode.spec
--- SPECS/leafnode.spec 9 Sep 2003 11:11:50 -0000 1.36.2.1
+++ SPECS/leafnode.spec 3 Apr 2004 00:54:42 -0000
@@ -4,7 +4,7 @@ Summary(pl): Serwer NNTP dla małych host
Summary(pt_BR): Cliente / Servidor USENET para pequenos sites
Name: leafnode
Version: 1.9.43
-Release: 2
+Release: 3
License: distributable
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.rel.tar.bz2
@@ -13,6 +13,7 @@ Source1: %{name}.texpire
Source2: %{name}.config
Source3: %{name}.filters
Source4: %{name}.rc-inetd
+Patch0: %{name}-config.patch
URL: http://www.leafnode.org/
BuildRequires: autoconf >= 2.54
BuildRequires: pcre-devel
@@ -52,6 +53,7 @@ leitores e um pequeno link para a net.
%prep
%setup -q -n %{name}-%{version}.rel
+%patch0 -p1
%build
%{__autoconf}
@@ -63,7 +65,7 @@ leitores e um pequeno link para a net.
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}/{cron.daily,%{name},sysconfig/rc-inetd} \
- $RPM_BUILD_ROOT%{_var}/lock/news
+ $RPM_BUILD_ROOT%{_var}/lock/news $RPM_BUILD_ROOT%{_var}/log/news
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -103,6 +105,7 @@ fi
%attr(2775,news,news) %dir %{_var}/spool/news
%attr(775,news,news) %dir %{_var}/spool/news/*
%attr(775,news,news) %dir %{_var}/spool/news/message.id/*
+%attr(775,news,news) %dir %{_var}/log/news
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
_______________________________________________________
z�ota zasada - kto si� nie zna, niech si� nie wypowiada