rpms/cherokee/devel cherokee.init, NONE, 1.1 cherokee.logrotate, NONE, 1.1 cherokee.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Pavel Lisý
pali at fedoraproject.org
Sun Oct 19 19:48:07 UTC 2008
- Previous message: rpms/squid/F-8 .cvsignore, 1.32, 1.33 sources, 1.34, 1.35 squid.spec, 1.97, 1.98
- Next message: rpms/gnu-smalltalk/devel gst-3.1-am.patch, NONE, 1.1 gst-3.1-tst.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 gnu-smalltalk.spec, 1.42, 1.43 sources, 1.13, 1.14 gst-2.3.6-multilib.patch, 1.1, NONE gst-2.3.6-pathfix.patch, 1.1, NONE gst-3.0-tst117.patch, 1.2, NONE gst-3.0.1-ffi.patch, 1.1, NONE gst-3.0.4-am.patch, 1.1, NONE gst-3.0.4-tst.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pali
Update of /cvs/pkgs/rpms/cherokee/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28852/devel
Modified Files:
.cvsignore sources
Added Files:
cherokee.init cherokee.logrotate cherokee.spec import.log
Log Message:
--- NEW FILE cherokee.init ---
#!/bin/sh
#
# cherokee Startup script for the Apache HTTP Server
#
# chkconfig: - 95 05
# description: Cherokee is ligth Web Server system
# config: /etc/cherokee/cherokee.conf
# pidfile: /var/run/cherokee.pid
# Default-Start: 345
#
# Source function library
. /etc/rc.d/init.d/functions
NAME=cherokee
BASE=/usr/sbin/$NAME
DAEMON="-d"
CONF="/etc/cherokee/cherokee.conf"
PIDFILE="/var/run/$NAME.pid"
# Check that $BASE exists.
[ -f $BASE ] || exit 0
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
if [ -n "`/sbin/pidof $NAME`" ]; then
echo -n $"$NAME: already running"
echo ""
exit $RETVAL
fi
echo -n "Starting Cherokee service: "
$BASE -C $CONF $DAEMON pidfile $PIDFILE
sleep 1
action "" /sbin/pidof $NAME
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/cherokee
;;
stop)
echo -n "Shutting down Cherokee service: "
killproc $BASE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/cherokee
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
status)
status $BASE
RETVAL=$?
;;
*)
echo "Usage: $NAME {start|stop|restart|reload|status}"
exit 1
esac
exit $RETVAL
--- NEW FILE cherokee.logrotate ---
/var/log/cherokee/*log {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/cherokee.pid 2>/dev/null` 2> /dev/null || true
endscript
}
--- NEW FILE cherokee.spec ---
%define home %{_var}/lib/%{name}
%define shortversion %(echo %{version} | sed -e 's/\([0-9]*\.[0-9]*\)\.[0-9]*/\1/')
Name: cherokee
Version: 0.8.1
Release: 2%{?dist}
Summary: Flexible and Fast Webserver
Group: Applications/Internet
License: GPLv2
URL: http://www.cherokee-project.com/
Source0: http://www.cherokee-project.com/download/%{shortversion}/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: %{name}.init
Source2: %{name}.logrotate
BuildRequires: openssl-devel pam-devel pcre-devel mysql-devel
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%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.
%package devel
Group: Development/Libraries
Summary: Development files of cherokee
Requires: %{name} = %{version}
%description devel
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.
This package holds the development files for cherokee.
%prep
%setup -q
%build
%configure \
--with-wwwroot=%{_var}/www/%{name} \
--enable-tls=openssl --enable-pthreads --enable-trace --disable-static
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d/
%{__install} -D -m 0644 pam.d_cherokee %{buildroot}%{_sysconfdir}/pam.d/%{name}
%{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/%{name}
%{__install} -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -d %{buildroot}%{_var}/{log,lib}/%{name}/
%{__install} -d %{buildroot}%{_sysconfdir}/pki/%{name}
%{__sed} -i -e 's#log/%{name}\.access#log/%{name}/access_log#' \
-e 's#log/%{name}\.error#log/%{name}/error_log#' \
%{buildroot}%{_sysconfdir}/%{name}/cherokee.conf
%{__sed} -i -e 's#log/%{name}\.access#log/%{name}/access_log#' \
-e 's#log/%{name}\.error#log/%{name}/error_log#' \
%{buildroot}%{_sysconfdir}/%{name}/cherokee.conf.perf_sample
find %{buildroot}%{_libdir} -name *.la -exec rm -rf {} \;
# put SSL certs to %{_sysconfdir}/pki/%{name}
rmdir %{buildroot}%{_sysconfdir}/%{name}/ssl
mv ChangeLog ChangeLog.iso8859-1
chmod -x COPYING
iconv -f ISO8859-1 -t UTF8 ChangeLog.iso8859-1 > ChangeLog
%clean
rm -rf %{buildroot}
%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{home} -s /sbin/nologin \
-c "%{name} web server" %{name}
exit 0
%preun
if [ $1 = 0 ] ; then
/sbin/service %{name} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%post
/sbin/ldconfig
/sbin/chkconfig --add %{name}
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/pki/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/cherokee.conf
%config(noreplace) %{_sysconfdir}/%{name}/cherokee.conf.perf_sample
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/cget
%{_bindir}/cherokee-panic
%{_bindir}/cherokee-tweak
%{_bindir}/spawn-fcgi
%{_sbindir}/cherokee
%{_sbindir}/cherokee-admin
%{_sbindir}/cherokee-guardian
%{_libdir}/%{name}
%{_libdir}/lib%{name}-*.so.*
%{_datadir}/%{name}
# logs are written as root. no need to give perms to the cherokee user.
%dir %{_var}/log/%{name}/
%dir %attr(-,%{name},%{name}) %{_var}/lib/%{name}/
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
%doc %{_datadir}/doc/%{name}
%doc %{_mandir}/man1/cget.1*
%doc %{_mandir}/man1/cherokee.1*
%doc %{_mandir}/man1/cherokee-tweak.1*
%doc %{_mandir}/man1/cherokee-admin.1*
%doc %{_mandir}/man1/cherokee-guardian.1*
%doc %{_mandir}/man1/spawn-fcgi.1*
%dir %{_var}/www/%{name}/
%dir %{_var}/www/%{name}/images/
%config(noreplace) %{_var}/www/%{name}/images/cherokee-logo.png
%config(noreplace) %{_var}/www/%{name}/images/default-bg.png
%config(noreplace) %{_var}/www/%{name}/images/powered_by_cherokee.png
%config(noreplace) %{_var}/www/%{name}/index.html
%files devel
%defattr(-,root,root,-)
%{_mandir}/man1/cherokee-config.1*
%{_bindir}/cherokee-config
##%{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4
%{_libdir}/lib%{name}-*.so
%changelog
* Sun Sep 07 2008 Pavel Lisy <pavel.lisy at gmail.com> - 0.8.1-2
- corrections in spec
* Sun Sep 07 2008 Pavel Lisy <pavel.lisy at gmail.com> - 0.8.1-1
- first build
--- NEW FILE import.log ---
cherokee-0_8_1-2_fc9:HEAD:cherokee-0.8.1-2.fc9.src.rpm:1224445523
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/cherokee/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 Sep 2008 00:54:53 -0000 1.1
+++ .cvsignore 19 Oct 2008 19:47:36 -0000 1.2
@@ -0,0 +1 @@
+cherokee-0.8.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/cherokee/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 Sep 2008 00:54:53 -0000 1.1
+++ sources 19 Oct 2008 19:47:36 -0000 1.2
@@ -0,0 +1 @@
+c082d4660f068c4f43f821ae8a0c7157 cherokee-0.8.1.tar.gz
- Previous message: rpms/squid/F-8 .cvsignore, 1.32, 1.33 sources, 1.34, 1.35 squid.spec, 1.97, 1.98
- Next message: rpms/gnu-smalltalk/devel gst-3.1-am.patch, NONE, 1.1 gst-3.1-tst.patch, NONE, 1.1 .cvsignore, 1.11, 1.12 gnu-smalltalk.spec, 1.42, 1.43 sources, 1.13, 1.14 gst-2.3.6-multilib.patch, 1.1, NONE gst-2.3.6-pathfix.patch, 1.1, NONE gst-3.0-tst117.patch, 1.2, NONE gst-3.0.1-ffi.patch, 1.1, NONE gst-3.0.4-am.patch, 1.1, NONE gst-3.0.4-tst.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list