rpms/ebnetd/F-9 ebhttpd-README.dist, NONE, 1.1 ebhttpd.xinetd, NONE, 1.1 ebnetd-1.0-info.patch, NONE, 1.1 ebnetd.spec, NONE, 1.1 ebnetd.xinetd, NONE, 1.1 import.log, NONE, 1.1 ndtpd.xinetd, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Akira TAGOH tagoh at fedoraproject.org
Wed Oct 15 05:40:14 UTC 2008


Author: tagoh

Update of /cvs/pkgs/rpms/ebnetd/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6945/F-9

Modified Files:
	.cvsignore sources 
Added Files:
	ebhttpd-README.dist ebhttpd.xinetd ebnetd-1.0-info.patch 
	ebnetd.spec ebnetd.xinetd import.log ndtpd.xinetd 
Log Message:
initial import for F-9 branch



--- NEW FILE ebhttpd-README.dist ---
How to set up ebhttpd to listen on non-"port 80"
===================================================
ebhttpd defaults to listen on Port 80 as it's designed to work as web server.
However ebhttpd doesn't meant to replace other web server with it. so we
would recommend to change the port before using it.

For xinetd users:
Just changing the port number in /etc/xinetd.d/ebhttpd would works.

For users who wants to run as standalone:
You need to change the http-port number in /etc/ebnetd.conf.


--- NEW FILE ebhttpd.xinetd ---
# default: off
# description: The ebnetd provides a service to access "CD-ROM books" \
#              through EBNET protocol, which the EB library supports.
service ebnet
{
	disable		= yes
	flags		= IPv6
	port		= 80
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	passenv		= PATH
	server		= /usr/sbin/ebhttpd
	env		= HOME=/var/run/ebnetd
	server_args	= --inetd
	log_on_failure	+= USERID
}

ebnetd-1.0-info.patch:

--- NEW FILE ebnetd-1.0-info.patch ---
diff -ruN ebnetd-1.0.orig/doc/ebnetd.info ebnetd-1.0/doc/ebnetd.info
--- ebnetd-1.0.orig/doc/ebnetd.info	2003-12-28 17:54:46.000000000 +0900
+++ ebnetd-1.0/doc/ebnetd.info	2007-12-20 10:56:39.000000000 +0900
@@ -4,8 +4,8 @@
 INFO-DIR-SECTION CD-ROM Book Utilities
 START-INFO-DIR-ENTRY
 * EBNETD: (ebnetd).             Network EB Library server.
-* NDTPD: (ndtpd).               Server for accessing CD-ROM books with NDTP.
-* ebHTTPD: (ebhttpd).           Server for accessing CD-ROM books with HTTP.
+* NDTPD: (ebnetd).              Server for accessing CD-ROM books with NDTP.
+* ebHTTPD: (ebnetd).            Server for accessing CD-ROM books with HTTP.
 END-INFO-DIR-ENTRY
 
    EBNETD/NDTPD/ebHTTPD: CD-ROM Book Servers, by Motoyuki Kasahara.
diff -ruN ebnetd-1.0.orig/doc-ja/ebnetd-ja.info ebnetd-1.0/doc-ja/ebnetd-ja.info
--- ebnetd-1.0.orig/doc-ja/ebnetd-ja.info	2003-12-28 17:54:46.000000000 +0900
+++ ebnetd-1.0/doc-ja/ebnetd-ja.info	2007-12-20 10:57:33.000000000 +0900
@@ -3,9 +3,9 @@
 
 INFO-DIR-SECTION CD-ROM Book Utilities
 START-INFO-DIR-ENTRY
-* EBNETD: (ebnetd).             Network EB Library server.
-* NDTPD: (ndtpd).               Server for accessing CD-ROM books with NDTP.
-* ebHTTPD: (ebhttpd).           Server for accessing CD-ROM books with HTTP.
+* EBNETD-ja: (ebnetd-ja).             Network EB Library server.
+* NDTPD-ja: (ebnetd-ja).              Server for accessing CD-ROM books with NDTP.
+* ebHTTPD-ja: (ebnetd-ja).            Server for accessing CD-ROM books with HTTP.
 END-INFO-DIR-ENTRY
 
    EBNETD: CD-ROM ½ñÀÒ¥µ¡¼¥Ð·²¡¢³Þ¸¶´ðÇ·


--- NEW FILE ebnetd.spec ---
%global username	ebnetd
%global gecos		EBNET User
%global base_homedir	%{_var}/lib/
%global homedir		%{base_homedir}%{username}

Name:		ebnetd
Version:	1.0
Release:	4%{?dist}
License:	GPLv2+
URL:		http://www.sra.co.jp/people/m-kasahr/ebnetd/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	eb-devel

Source0:	ftp://ftp.sra.co.jp/pub/misc/eb/%{name}-%{version}.tar.gz
Source1:	ebnetd.xinetd
Source2:	ndtpd.xinetd
Source3:	ebhttpd.xinetd
Source4:	ebhttpd-README.dist
Patch0:		ebnetd-1.0-info.patch


Summary:	EBNET protocol server
Group:		System Environment/Daemons
Requires:	%{name}-common = %{version}-%{release}

%description
EBNET is a protocol to communicate to the EB library that is a C library
for accessing "CD-ROM books".

This package contains a EBNET protocol server.


%package common
Summary:		Common package for ebnetd families
Group:			System Environment/Daemons
Requires(post):		/sbin/install-info
Requires(preun):	/sbin/install-info
Requires(pre):		shadow-utils
Requires:		xinetd

%description common
EBNET is a protocol to communicate to the EB library that is a C library
for accessing "CD-ROM books".

This package contains a bunch of the common programs/files to be shared
by ebnetd families.


%package -n ndtpd
Summary:	Network Dictionary Transfer Protocol server
Group:		System Environment/Daemons
Requires:	%{name}-common = %{version}-%{release}

%description -n ndtpd
This package contains a daemon program to speak Network Dictionary Transfer
Protocol.


%package -n ebhttpd
Summary:	HTTP server for accessing "CD-ROM books"
Group:		System Environment/Daemons
Requires:	%{name}-common = %{version}-%{release}

%description -n ebhttpd
This package contains a specialized HTTP server that supports HTTP/1.0 and
HTTP/1.1. which provide a way to access "CD-ROM books" through the EB library.

Note that ebhttpd can't be used for generic WWW purposes.


%prep
%setup -q
%patch0 -p1 -b .0-info
cp -p %{SOURCE4} .

%build
%configure --disable-static --enable-ipv6 --with-eb-conf=%{_libdir}/eb.conf --with-logdir=%{_localstatedir}/log/ebnetd --localstatedir=%{base_homedir}

make

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p"

install -d $RPM_BUILD_ROOT%{_var}/run/ebnetd
install -d $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d
install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/ebnet
install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/ndtp
install -p -m0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/http

# correct timestamp
## for patch0
touch -r doc/ebnetd.info.0-info doc/ebnetd.info
touch -r doc-ja/ebnetd-ja.info.0-info doc/ebnetd-ja.info

for i in `echo $RPM_BUILD_ROOT%{_infodir}/ebnetd-ja*`; do
	iconv -f euc-jp -t utf-8 $i > $i-utf8 && mv $i-utf8 $i && touch -r doc-ja/`basename $i` $i
done

sed -i	-e 's/^\(user[ 	]*\)[a-z].*$/\1ebnetd/' \
	-e 's/^\(group[ 	]*\)[a-z].*$/\1ebnetd/' \
	-e 's,^\# \(work-path[ 	]*\)[a-z/].*$,\1/var/run/ebnetd,' \
	-e 's/^\(syslog-facility[ 	]*\)[a-z0-9].*$/\1daemon/' \
	-e '/^begin .*$/,/^end$/{D}' $RPM_BUILD_ROOT%{_sysconfdir}/ebnetd.conf.sample && \
mv $RPM_BUILD_ROOT%{_sysconfdir}/ebnetd.conf{.sample,} && \
touch -r ebnetd.conf.sample $RPM_BUILD_ROOT%{_sysconfdir}/ebnetd.conf

# remove unnecessary files
rm -f $RPM_BUILD_ROOT%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT


%pre common
getent group %{username} > /dev/null || groupadd -r %{username}
getent passwd %{username} > /dev/null || useradd -r -g %{username} -d %{homedir} -s /sbin/nologin -c '%{gecos}' %{username}
exit 0

%post common
/sbin/install-info %{_infodir}/ebnetd.info %{_infodir}/dir || :
/sbin/install-info %{_infodir}/ebnetd-ja.info %{_infodir}/dir || :

%preun common
if [ "$1" = 0 ]; then
	/sbin/install-info --delete %{_infodir}/ebnetd.info %{_infodir}/dir || :
	/sbin/install-info --delete %{_infodir}/ebnetd-ja.info %{_infodir}/dir || :
fi


%files
%defattr (-, root, root, -)
%{_sbindir}/ebnetd
%{_sbindir}/ebncontrol
%{_sbindir}/ebncheck
%{_libexecdir}/ebnstat
%config(noreplace) %{_sysconfdir}/xinetd.d/ebnet

%files common
%defattr (-, root, root, -)
%doc AUTHORS COPYING ChangeLog NEWS README UPGRADE
%lang(ja) %doc README-ja UPGRADE-ja
%{_sbindir}/ebndaily
%{_sbindir}/ebnupgrade
%{_infodir}/ebnetd.info*
%lang(ja) %doc %{_infodir}/ebnetd-ja.info*
%config(noreplace) %{_sysconfdir}/ebnetd.conf
%attr (-, ebnetd, ebnetd) %{homedir}
%attr (-, ebnetd, ebnetd) %{_var}/run/ebnetd

%files -n ndtpd
%defattr (-, root, root, -)
%{_sbindir}/ndtp*
%{_libexecdir}/ndtpstat
%config(noreplace) %{_sysconfdir}/xinetd.d/ndtp

%files -n ebhttpd
%defattr (-, root, root, -)
%doc ebhttpd-README.dist
%{_sbindir}/ebht*
%{_libexecdir}/ebhtstat
%config(noreplace) %{_sysconfdir}/xinetd.d/http


%changelog
* Sun Oct 12 2008 Akira TAGOH <tagoh at redhat.com> - 1.0-4
- Rename ebhttpd-README.fedora to ebhttpd-README.dist.

* Sat Oct 11 2008 Akira TAGOH <tagoh at redhat.com> - 1.0-3
- Add ebhttpd-README.fedora file.
- Get rid of Conflicts from ebhttpd.

* Mon Jul  7 2008 Akira TAGOH <tagoh at redhat.com> - 1.0-2
- Remove %%{_infodir}/dir.
- Remove doc files in all subpackages except -common.

* Fri May 16 2008 Akira TAGOH <tagoh at redhat.com> - 1.0-1
- Initial packaging.



--- NEW FILE ebnetd.xinetd ---
# default: off
# description: The ebnetd provides a service to access "CD-ROM books" \
#              through EBNET protocol, which the EB library supports.
service ebnet
{
	disable		= yes
	flags		= IPv6
	port		= 22010
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	passenv		= PATH
	server		= /usr/sbin/ebnetd
	env		= HOME=/var/run/ebnetd
	server_args	= --inetd
	log_on_failure	+= USERID
}


--- NEW FILE import.log ---
ebnetd-1_0-4_fc9:F-9:ebnetd-1.0-4.fc9.src.rpm:1224049129


--- NEW FILE ndtpd.xinetd ---
# default: off
# description: The ebnetd provides a service to access "CD-ROM books" \
#              through EBNET protocol, which the EB library supports.
service ndtp
{
	disable		= yes
	flags		= IPv6
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	passenv		= PATH
	server		= /usr/sbin/ndtpd
	env		= HOME=/var/run/ebnetd
	server_args	= --inetd
	log_on_failure	+= USERID
}


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ebnetd/F-9/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Oct 2008 05:26:00 -0000	1.1
+++ .cvsignore	15 Oct 2008 05:39:43 -0000	1.2
@@ -0,0 +1 @@
+ebnetd-1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ebnetd/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Oct 2008 05:26:00 -0000	1.1
+++ sources	15 Oct 2008 05:39:43 -0000	1.2
@@ -0,0 +1 @@
+854237acd834060bbbd021af353ef253  ebnetd-1.0.tar.gz




More information about the fedora-extras-commits mailing list