Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modifies SPEC file to use init and conf file from tarball

  • Loading branch information...
commit 2894c976044414bf504c640fed858ac6ae91d43d 1 parent 188dce2
Thomas Parrott authored
View
11 contrib/nutcracker.yml
@@ -1,11 +0,0 @@
-alpha:
- listen: 127.0.0.1:22121
- hash: fnv1a_64
- distribution: ketama
- auto_eject_hosts: true
- redis: true
- server_retry_timeout: 2000
- server_failure_limit: 1
- servers:
- - 127.0.0.1:6379:1
-
View
0  contrib/nutcracker.init → scripts/nutcracker.init
File renamed without changes
View
9 contrib/nutcracker.spec → scripts/nutcracker.spec
@@ -8,8 +8,6 @@ License: Apache License 2.0
Group: System Environment/Libraries
Packager: Tom Parrott <tomp@tomp.co.uk>
BuildRoot: %{_tmppath}/%{name}-root
-Source1: %{name}.init
-Source2: %{name}.yml
%description
twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol.
@@ -29,10 +27,10 @@ It was primarily built to reduce the connection count on the backend caching ser
%makeinstall PREFIX=%{buildroot}
#Install init script
-%{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
+%{__install} -p -D -m 0755 scripts/%{name}.init %{buildroot}%{_initrddir}/%{name}
#Install example confog file
-%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/%{name}.yml
+%{__install} -p -D -m 0644 conf/%{name} %{buildroot}%{_sysconfdir}/%{name}/%{name}.yml
%post
/sbin/chkconfig --add %{name}
@@ -50,5 +48,4 @@ fi
%defattr(-,root,root,-)
/usr/bin/nutcracker
%{_initrddir}/%{name}
-%config(noreplace)%{_sysconfdir}/%{name}/%{name}.yml
-
+%config(noreplace)%{_sysconfdir}/%{name}/%{name}.yml
Please sign in to comment.
Something went wrong with that request. Please try again.