> El Lunes, 31 de Julio de 2006 12:54, Alvaro Lopez Ortega escribió:
> >
> > Yeah, I wrote a basic spec file for SuSE some time ago, but it has
> > not received much attention since then:
> >
> > http://www.0x50.org/bugs/browser/cherokee/trunk/cherokee.spec.in
>
Hi all.
After some hours working on the new cherokee.spec file i've decide not to
rewrite it, not to reinvent the wheel.
If you wonder why, it's easy to understand
IMHO cherokee should be the same on every distribution, I mean, for example,
by default RH-based system uses /var/www as DocumenRoot for Apache, but
cherokee proyect don't wanna be Apache, do it?
So, in my opinion is better for all cherokee users to have the same paths and
the same files everywhere, in order to make cherokee independent from any
system,i think that's the best way to make systems administrators feel good
with cherokee in every system, Suse, Debian, Red Hat, OpenSolaris...they only
will be worry about cherokee issues, not guessing where cherokee.conf is or
where libplugin_nn.so is, cause it's will be the same in every linux/unix.
Here is alo's spec file
----------------------------------
# Cherokee
# Copyright (C) 2001-2006 Alvaro Lopez Ortega
Name: cherokee
Version: 0.5.4
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_datadir}/doc
Autoreqprov: on
Source: %{name}-%{version}.tar.gz
Summary: Flexible and Fast web server
Group: Productivity/Networking/Web/Servers
URL: http://www.0x50.org
%description
Cherokee is a very fast, flexible and easy to configure Web Server.
It supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication,
on the fly encoding, Apache compatible log files, and much more.
%prep
%setup -q
gzip -dc %SOURCE | tar xvf -
%build
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--sbindir=%{_sbindir} \
--with-wwwroot=/var/www/ \
--enable-pthreads
make CFLAGS="-O0 -g3"
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT/etc/cherokee/sites-enabled/default
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
ln -s %{_sysconfdir}/cherokee/sites-available/default \
%{_sysconfdir}/cherokee/sites-enabled/default
mkdir -p /home/httpd
%postun
/sbin/ldconfig
%files
%{_mandir}/*
%{_bindir}/*
%{_libdir}/*
%{_datadir}/*
%{_sbindir}/*
%{_includedir}/*
%{_sysconfdir}/*
/home/httpd/*
------------------------
From now on i'll be working with this spec file.
Any suggestions will be apreciated.
Of course, Álvaro, feel free to make the changes you deem appropriate.
I have rpm and src.rpm ready to be upload. Please stay tuned
Best regards.
Manu.
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee