Author: twittner Date: Wed Jan 10 19:15:12 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - new, not tested yet
---- Files affected: SPECS: sharedance.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/sharedance.spec diff -u /dev/null SPECS/sharedance.spec:1.1 --- /dev/null Wed Jan 10 20:15:12 2007 +++ SPECS/sharedance.spec Wed Jan 10 20:15:07 2007 @@ -0,0 +1,87 @@ +# $Revision$, $Date$ +# +# TODO: maybe run as no root user +# +Summary: Server that centralize ephemeral key/data pairs on remote hosts +#Summary(pl): - +Name: sharedance +Version: 0.6 +Release: 0.5 +License: distributable +Group: Daemons +Source0: http://download.pureftpd.org/pub/sharedance/%{name}-%{version}.tar.bz2 +Source1: %{name}.init +Source2: %{name}.sysconfig +URL: http://sharedance.pureftpd.org/project/sharedance/ +BuildRequires: rpmbuild(macros) >= 1.228 +Requires(post,preun): /sbin/chkconfig +BuildRequires: autoconf >= 2.58 +BuildRequires: automake +#Provides: group(foo) +#Provides: user(foo) +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Sharedance is a high-performance server that centralize ephemeral key/data +pairs on remote hosts, without the overhead and the complexity of an SQL +database. + +It was mainly designed to share caches and sessions between a pool of web +servers. Access to a sharedance server is trivial through a simple PHP API and +it is compatible with the expectations of PHP 4 and PHP 5 session handlers. + +#%%description -l pl + +%prep +%setup -q + +%build +%{__autoconf} +%{__autoheader} +%{__automake} +%configure \ + --with-largefile + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} +install -d $RPM_BUILD_ROOT/var/cache/%{name}d + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}d +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}d + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add %{name}d +%service %{name}d restart + +%preun +if [ "$1" = "0" ]; then + %service -q %{name}d stop + /sbin/chkconfig --del %{name}d +fi + +%files +%defattr(644,root,root,755) +%doc AUTHORS COPYING ChangeLog NEWS README php/*.php +%attr(755,root,root) %{_sbindir}/* +%attr(754,root,root) /etc/rc.d/init.d/%{name}d +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}d +%attr(750,root,root) %dir /var/cache/%{name}d + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007/01/10 19:15:07 twittner +- new, not tested yet + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
