diff options
author | Jesus Rivero <neurogeek@gentoo.org> | 2013-10-31 20:04:59 +0000 |
---|---|---|
committer | Jesus Rivero <neurogeek@gentoo.org> | 2013-10-31 20:04:59 +0000 |
commit | ab9feddddb7dd24b1e02280ab1d9e39e853df4b2 (patch) | |
tree | ebadbe03419505896c140326c2d18a3bd37128b0 /net-proxy/nutcracker | |
parent | Revbump to fix helpers and drivers installation. Fix PATH in init scripts and... (diff) | |
download | historical-ab9feddddb7dd24b1e02280ab1d9e39e853df4b2.tar.gz historical-ab9feddddb7dd24b1e02280ab1d9e39e853df4b2.tar.bz2 historical-ab9feddddb7dd24b1e02280ab1d9e39e853df4b2.zip |
Initial commit
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Diffstat (limited to 'net-proxy/nutcracker')
-rw-r--r-- | net-proxy/nutcracker/ChangeLog | 11 | ||||
-rw-r--r-- | net-proxy/nutcracker/Manifest | 7 | ||||
-rw-r--r-- | net-proxy/nutcracker/files/nutcracker-0.2.4-use-system-libyaml.patch | 64 | ||||
-rw-r--r-- | net-proxy/nutcracker/files/nutcracker.confd | 10 | ||||
-rw-r--r-- | net-proxy/nutcracker/files/nutcracker.initd | 40 | ||||
-rw-r--r-- | net-proxy/nutcracker/metadata.xml | 9 | ||||
-rw-r--r-- | net-proxy/nutcracker/nutcracker-0.2.4.ebuild | 44 |
7 files changed, 185 insertions, 0 deletions
diff --git a/net-proxy/nutcracker/ChangeLog b/net-proxy/nutcracker/ChangeLog new file mode 100644 index 000000000000..d7c3e9e9f596 --- /dev/null +++ b/net-proxy/nutcracker/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-proxy/nutcracker +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/nutcracker/ChangeLog,v 1.1 2013/10/31 20:04:54 neurogeek Exp $ + +*nutcracker-0.2.4 (31 Oct 2013) + + 31 Oct 2013; Jesus Rivero <neurogeek@gentoo.org> +nutcracker-0.2.4.ebuild, + +files/nutcracker-0.2.4-use-system-libyaml.patch, +files/nutcracker.confd, + +files/nutcracker.initd: + Initial commit + diff --git a/net-proxy/nutcracker/Manifest b/net-proxy/nutcracker/Manifest new file mode 100644 index 000000000000..8cf0fd7d37cf --- /dev/null +++ b/net-proxy/nutcracker/Manifest @@ -0,0 +1,7 @@ +AUX nutcracker-0.2.4-use-system-libyaml.patch 2570 SHA256 bd04d38c12d336b952a4b33aa969d11e4b0797ee6996d45814e5d33da0bf0c65 SHA512 a529872829318788d54b876800d940fdbb2d710bd092fe4b930bce3cfaf23116579d1a6f7ead8a181113713a654b34686ec7470d8198e7263aeb85e8b0f51d1d WHIRLPOOL 8f628ad6e018aee04d29e9bd48ba04d2e69581273d172ac22b315a73639b192cf3976dee96c557cf63528f716080661b04be2e925034be9eb1614054049989ba +AUX nutcracker.confd 392 SHA256 818299c6a15d4fba0ff7f1e30a4eeb72f73ba718e51a26dbb208780a9bfc86f9 SHA512 3cb599ad80612a9640506c232eb300f75eae113689bd13c2bbd429c213408cdf7f964a09f57c064a690a69e2dae0484a3db79f46c7e47c9f0e601eb0042f1be6 WHIRLPOOL ec072bbb0eced56100ec49fa5511f532765ec555242ebe1a41004c33288ba33f144dce0643cdd2987f2600f3cbc868577c90d591c3a586622860b99b11a483c3 +AUX nutcracker.initd 1010 SHA256 990569897d8d1ed31055f8f82eed0d2573c55ca843371188d94c39dbb7b06758 SHA512 ba7a6bc4c18c2602452935558ed433e3211bf0166c11250bb7df2c74f8640195bc21648b8bb8769f18c4f3d8706762b218effb2e583129b4da62eed10cbfde26 WHIRLPOOL b888823bb18fdad9669353d931c125d798b37b9c3f02cbcd736c928f418e423af3fe102798de5a5ae223bfe8a0d4af309b505ec6a4c7242c9d3d4beb89a40b07 +DIST nutcracker-0.2.4.tar.gz 1723439 SHA256 132f524541c6cf4dd1d570ec5da29312ed6150e8a369df703116498b65703b4e SHA512 13d7d2a778a5d85a1d73eaa220f2e95eb7765eff0c8af390ab916f099b12d6c1a99cb61ff418b9a909ff7e2b416b271ba034eb9f50cd7df1ee53600d8b681409 WHIRLPOOL a9e09376f70ade19ef6f80f769edef26b86f3af1d529f68fd6fc42575d4521603da230ee236f8b53c275c9695602e21a586d38fc33a68960b8c11359271af902 +EBUILD nutcracker-0.2.4.ebuild 1022 SHA256 682a326fca82d3c782d374b98694711f86daba8d26b136c81a7624e3d64ab157 SHA512 1d0aaee55978d377381594e18fde75910a49743a342c3cc0a2eb64d37e8539c5d8afb963a5fdcfa778ccdb076b86fbf7a63f3cf1d151d2133ac3c8f204bd5fd8 WHIRLPOOL 02f3b5b8be7f5b61be9bbba576004ebfd160247cb09acf2f8756ae53f9314ed865d48ab4281d8bc01343847365f4a7a1d562dd16ebec67e702280fb2346e5792 +MISC ChangeLog 448 SHA256 1df63972a63698cea480b3cedb3ad2b37884df022a1d07dee3e3379aa9b26a9b SHA512 631e4e32c6e8279dea4abef03ade0767d1235a7b39759f464a680c2afd3dd7e8a492a9210d0c2915032c014c0ac499af2607eeefcd7637cc3773be793202ed75 WHIRLPOOL 5680a38923cbc9ec0d7ffdbcaed0cc117e9e2ea78acaeb4a407539ed6c3db865e53e9118e482cd0053755dd74c1d0e07f0fe376cbe34cad5ca010f44d5afa2e1 +MISC metadata.xml 278 SHA256 639e9c8fcbe80deada7c22051a9090bc6e56ba9edbd891a4485fe4b4687f36ee SHA512 75711c25dc1a5743bf356d24d3760fb6373714640302b7a16b4d38f21977e7cb9cbd62383e32a20718696ab241b9d77601bed04d507590f2e802a2481ed30a91 WHIRLPOOL f0af486b285336c8a208ed2928e55548aebf949ca25b7880b1ee2a0bee41cfa4fd3960a4e887f5cde3e941ae7818eb315f8c81479b6b114b060bbb45537338bf diff --git a/net-proxy/nutcracker/files/nutcracker-0.2.4-use-system-libyaml.patch b/net-proxy/nutcracker/files/nutcracker-0.2.4-use-system-libyaml.patch new file mode 100644 index 000000000000..5cf7b3660bdf --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker-0.2.4-use-system-libyaml.patch @@ -0,0 +1,64 @@ +diff -uNr nutcracker-0.2.4.orig/Makefile.am nutcracker-0.2.4/Makefile.am +--- nutcracker-0.2.4.orig/Makefile.am 2013-09-11 10:11:19.869975912 -0400 ++++ nutcracker-0.2.4/Makefile.am 2013-09-11 10:11:36.709975757 -0400 +@@ -2,6 +2,6 @@ + + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = contrib src ++SUBDIRS = src + + EXTRA_DIST = README.md NOTICE LICENSE ChangeLog conf scripts notes +diff -uNr nutcracker-0.2.4.orig/src/Makefile.am nutcracker-0.2.4/src/Makefile.am +--- nutcracker-0.2.4.orig/src/Makefile.am 2013-09-11 10:16:16.449973187 -0400 ++++ nutcracker-0.2.4/src/Makefile.am 2013-09-11 10:16:44.019972934 -0400 +@@ -3,7 +3,6 @@ + AM_CPPFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE + AM_CPPFLAGS += -I $(top_srcdir)/src/hashkit + AM_CPPFLAGS += -I $(top_srcdir)/src/proto +-AM_CPPFLAGS += -I $(top_srcdir)/contrib/yaml-0.1.4/include + + AM_CFLAGS = -Wall -Wshadow + AM_CFLAGS += -Wpointer-arith +@@ -43,4 +42,3 @@ + + nutcracker_LDADD = $(top_builddir)/src/hashkit/libhashkit.a + nutcracker_LDADD += $(top_builddir)/src/proto/libproto.a +-nutcracker_LDADD += $(top_builddir)/contrib/yaml-0.1.4/src/.libs/libyaml.a +diff -uNr nutcracker-0.2.4.orig/configure.ac nutcracker-0.2.4/configure.ac +--- nutcracker-0.2.4.orig/configure.ac 2013-09-11 10:23:27.879969223 -0400 ++++ nutcracker-0.2.4/configure.ac 2013-09-11 10:24:28.729968664 -0400 +@@ -138,11 +138,7 @@ + [AC_DEFINE([HAVE_STATS], [1], [Define to 1 if stats is not disabled])]) + AC_MSG_RESULT($disable_stats) + +-# Untar the yaml-0.1.4 in contrib/ before config.status is rerun +-AC_CONFIG_COMMANDS_PRE([tar xvfz contrib/yaml-0.1.4.tar.gz -C contrib]) +- +-# Call yaml-0.1.4 ./configure recursively +-AC_CONFIG_SUBDIRS([contrib/yaml-0.1.4]) ++PKG_CHECK_MODULES([YAML], [yaml-0.1 >= 0.1]) + + # Define Makefiles + AC_CONFIG_FILES([Makefile +diff -uNr nutcracker-0.2.4.orig/src/Makefile.am nutcracker-0.2.4/src/Makefile.am +--- nutcracker-0.2.4.orig/src/Makefile.am 2013-09-11 10:23:27.879969223 -0400 ++++ nutcracker-0.2.4/src/Makefile.am 2013-09-11 10:26:16.549967674 -0400 +@@ -11,8 +11,9 @@ + AM_CFLAGS += -Wno-unused-parameter -Wno-unused-value + AM_CFLAGS += -Wconversion -Wsign-compare + AM_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations ++AM_CFLAGS += $(YAML_CFLAGS) + +-AM_LDFLAGS = -lm -lpthread -rdynamic ++AM_LDFLAGS = -lm -lpthread -rdynamic $(YAML_LIBS) + + SUBDIRS = hashkit proto + +@@ -40,5 +41,5 @@ + nc_queue.h \ + nc.c + +-nutcracker_LDADD = $(top_builddir)/src/hashkit/libhashkit.a ++nutcracker_LDADD = $(top_builddir)/src/hashkit/libhashkit.a + nutcracker_LDADD += $(top_builddir)/src/proto/libproto.a diff --git a/net-proxy/nutcracker/files/nutcracker.confd b/net-proxy/nutcracker/files/nutcracker.confd new file mode 100644 index 000000000000..8ba50a762753 --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.confd @@ -0,0 +1,10 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/nutcracker/files/nutcracker.confd,v 1.1 2013/10/31 20:04:54 neurogeek Exp $ + +#USER="nobody" +#PIDFILE="/var/run/nutcracker.pid" +#CONF_FILE="/etc/nutcracker/nutcracker.yaml" + +NUTCRACKER_BIN="/usr/bin/nutcracker" +NUTCRACKER_OPTS="--daemonize" diff --git a/net-proxy/nutcracker/files/nutcracker.initd b/net-proxy/nutcracker/files/nutcracker.initd new file mode 100644 index 000000000000..7748a3698459 --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.initd @@ -0,0 +1,40 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/nutcracker/files/nutcracker.initd,v 1.1 2013/10/31 20:04:54 neurogeek Exp $ + +USER="${USER:-nobody}" +PIDFILE="${PIDFILE:-/var/run/nutcracker.pid}" +NUTCRACKER_BIN="${NUTCRACKER_BIN:-/usr/bin/nutcracker}" +CONF_FILE="${CONF_FILE:-/etc/nutcracker/nutcracker.yml}" + +depend() { + need net +} + +checkconf() { + ebegin "Testing configuration" + ${NUTCRACKER_BIN} --test-conf \ + --conf-file=${CONF_FILE} \ + >/dev/null 2>&1 + eend $? +} + +start() { + checkconf || exit 1 + ebegin "Starting Nutcracker" + start-stop-daemon --start -u ${USER} \ + --name ${SVCNAME} \ + --exec ${NUTCRACKER_BIN} -- \ + --conf-file="${CONF_FILE}" \ + --pid-file=${PIDFILE} \ + ${NUTCRACKER_OPTS} + eend $? +} + +stop() { + ebegin "Stopping Nutcracker" + start-stop-daemon --stop --pidfile "${PIDFILE}" + eend $? +} + diff --git a/net-proxy/nutcracker/metadata.xml b/net-proxy/nutcracker/metadata.xml new file mode 100644 index 000000000000..bb1c23652b9f --- /dev/null +++ b/net-proxy/nutcracker/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>neurogeek@gentoo.org</email> + <name>Jesus Rivero</name> + <description>Primary maintainer</description> +</maintainer> +</pkgmetadata> diff --git a/net-proxy/nutcracker/nutcracker-0.2.4.ebuild b/net-proxy/nutcracker/nutcracker-0.2.4.ebuild new file mode 100644 index 000000000000..80138b99e8a1 --- /dev/null +++ b/net-proxy/nutcracker/nutcracker-0.2.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-proxy/nutcracker/nutcracker-0.2.4.ebuild,v 1.1 2013/10/31 20:04:54 neurogeek Exp $ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="A fast, light-weight proxy for Memcached and Redis. +(Twitter's Twemproxy)" +HOMEPAGE="https://github.com/twitter/twemproxy" +SRC_URI="http://twemproxy.googlecode.com/files/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc" + +DEPEND=">=dev-libs/libyaml-0.1.4" +RDEPEND="${DEPEND}" + +src_prepare() { + # Lets use system libyaml + epatch "${FILESDIR}/${P}-use-system-libyaml.patch" + eautoreconf +} + +src_configure() { + econf $(use debug) || die "Econf failed" +} + +src_install() { + default_src_install + + insinto /etc/nutcracker + newins conf/nutcracker.yml nutcracker.yml.example + + newconfd "${FILESDIR}/nutcracker.confd" nutcracker + newinitd "${FILESDIR}/nutcracker.initd" nutcracker + + if use doc; then + dodoc -r notes + fi +} |