From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-proxy/nutcracker/Manifest | 15 +++++ .../nutcracker-0.2.4-use-system-libyaml.patch | 64 ++++++++++++++++++++++ .../nutcracker-0.3.0-use-system-libyaml.patch | 57 +++++++++++++++++++ net-proxy/nutcracker/files/nutcracker.confd | 9 +++ net-proxy/nutcracker/files/nutcracker.confd.2 | 9 +++ net-proxy/nutcracker/files/nutcracker.initd | 39 +++++++++++++ net-proxy/nutcracker/files/nutcracker.initd.2 | 39 +++++++++++++ net-proxy/nutcracker/metadata.xml | 11 ++++ net-proxy/nutcracker/nutcracker-0.2.4.ebuild | 43 +++++++++++++++ net-proxy/nutcracker/nutcracker-0.3.0.ebuild | 43 +++++++++++++++ net-proxy/nutcracker/nutcracker-0.4.1-r1.ebuild | 45 +++++++++++++++ 11 files changed, 374 insertions(+) create mode 100644 net-proxy/nutcracker/Manifest create mode 100644 net-proxy/nutcracker/files/nutcracker-0.2.4-use-system-libyaml.patch create mode 100644 net-proxy/nutcracker/files/nutcracker-0.3.0-use-system-libyaml.patch create mode 100644 net-proxy/nutcracker/files/nutcracker.confd create mode 100644 net-proxy/nutcracker/files/nutcracker.confd.2 create mode 100644 net-proxy/nutcracker/files/nutcracker.initd create mode 100644 net-proxy/nutcracker/files/nutcracker.initd.2 create mode 100644 net-proxy/nutcracker/metadata.xml create mode 100644 net-proxy/nutcracker/nutcracker-0.2.4.ebuild create mode 100644 net-proxy/nutcracker/nutcracker-0.3.0.ebuild create mode 100644 net-proxy/nutcracker/nutcracker-0.4.1-r1.ebuild (limited to 'net-proxy/nutcracker') diff --git a/net-proxy/nutcracker/Manifest b/net-proxy/nutcracker/Manifest new file mode 100644 index 000000000000..e9ecf2a75804 --- /dev/null +++ b/net-proxy/nutcracker/Manifest @@ -0,0 +1,15 @@ +AUX nutcracker-0.2.4-use-system-libyaml.patch 2570 SHA256 bd04d38c12d336b952a4b33aa969d11e4b0797ee6996d45814e5d33da0bf0c65 SHA512 a529872829318788d54b876800d940fdbb2d710bd092fe4b930bce3cfaf23116579d1a6f7ead8a181113713a654b34686ec7470d8198e7263aeb85e8b0f51d1d WHIRLPOOL 8f628ad6e018aee04d29e9bd48ba04d2e69581273d172ac22b315a73639b192cf3976dee96c557cf63528f716080661b04be2e925034be9eb1614054049989ba +AUX nutcracker-0.3.0-use-system-libyaml.patch 2183 SHA256 f0fc84b8b0417ed3c411280eff9ad7c59caff12143531b95f70744a578ee3c84 SHA512 b37037f9089f0bc3eec53916e204986674e14d806028672fa723a453e274fe64a6290c14aaaebcaabaf1237069a6563fb736af5919421573050fe1b006472937 WHIRLPOOL 10275badffcff493ff174c86c34fc92eb54b53320c9a8e0a471a1ff27d733a38ba6bb8877ab655ec5fe31d7c54762eb451e96da6f2968312e069ebfe20d620a1 +AUX nutcracker.confd 271 SHA256 757c3fc11beaa5027707369c5e773f9cbf04da9ac99063f5e13ce55a6bcfffab SHA512 491b0330fda3994bedc15a77e7b4f601a2a0c234298ff04ee088f0e4a9676864e0eb01e1532f2cb6fdf95cefe0b0b0cf39d84b0993cadff774e7721f22d8c752 WHIRLPOOL 39820003020e0eeb41967d373648be46905b9bbcda04f608c1d3a934fa4c6db25624239992847ba35ff70a839868b8916dd2272828227e946d7f69a9ff545005 +AUX nutcracker.confd.2 272 SHA256 2da64af06bc9618ed8d8dcdcc29c086317e49ae365adfce52832796a3933a8e6 SHA512 d208654b1e1fd20f456f340fabe25836c8ba948c96db8034d41710f9e0362936a24f0faec89e51c04d478c60de5255c9d238ab00d7d7b778a0619061a8cbce4c WHIRLPOOL 990d6881ba064d6871b680ac2b9651f16840fbd41900d50070ff5006100f039c11b38a063bd97c59f7dd58430292de4214e7578b17fb2e629854096956fa7d2d +AUX nutcracker.initd 890 SHA256 3b8dfcc770be3363d99b31ea04b5db98dd3f358c11b3ca956286ddc55a3461c7 SHA512 f40d692daa3cad7d7bce85ac0ecb01ca93f28f79e74b8a5bbea38930f78b24578b47fd7c44e36217ce60fee1ac3faefd8cd6d923046b339ec00c8fcc0f05f4fb WHIRLPOOL f39227325ec88c9011d84f035d0cb9fbbbee11a60028cefaf8b18ca443b4444f8190a69bfdea67e5fde9d8dd0fa9812c87d0c2f4387d8c3e17d1e3a36851f166 +AUX nutcracker.initd.2 891 SHA256 039911f6b363610d396c7635c1de201eb0ef1cb02a1708255a1a9dadc28a147e SHA512 ab06f875dca4ae27b4536d84c9342ec362e6f45f20efd370da0cb6073b306eeb0a1166737f6bdba3e1d5fe836d6b708729b7eadbab62cf66151649d2f56414eb WHIRLPOOL 938e0fad10bb7174f81010894188bedf1037ce9c64d4c4bd4a71cbc12b9d9e4adbd0c8b482dda8f77245b94d9e986279ffa8be6035868b7741a96bb9ae1679ad +DIST nutcracker-0.2.4.tar.gz 1723439 SHA256 132f524541c6cf4dd1d570ec5da29312ed6150e8a369df703116498b65703b4e SHA512 13d7d2a778a5d85a1d73eaa220f2e95eb7765eff0c8af390ab916f099b12d6c1a99cb61ff418b9a909ff7e2b416b271ba034eb9f50cd7df1ee53600d8b681409 WHIRLPOOL a9e09376f70ade19ef6f80f769edef26b86f3af1d529f68fd6fc42575d4521603da230ee236f8b53c275c9695602e21a586d38fc33a68960b8c11359271af902 +DIST nutcracker-0.3.0.tar.gz 1825106 SHA256 e9993d6827b2e93ee2b865e827acbf9efadbbfc81ccd9103a85948ee2580942a SHA512 81ba21c54b9a15fbb1d0a42b426643b65bcd20b7bb4b35cf3427235703a01a44188b762edff412afe20c193a4e75bf618f69d8c77bae9d66cd2c4e619416f565 WHIRLPOOL 073d411619d14ff57ef9ec72975db99791d29b4b606b6a3af99a2e64b19983a0200b797e753626e7b21aeaae02a28a02402646aeb20919d0910441e5981f8da4 +DIST nutcracker-0.4.1.tar.gz 1163442 SHA256 00c2940f91947bea9457a348316aac1aa1d4e757238aafbefc9d51057da8ede0 SHA512 581fae1d12feb983ed25b22cd6f597fd28b7070906ac29d3990669ae5c626a468914021cee152a6a2299a2838c838ad907e4c911b911ef04166ac7bbb2982da1 WHIRLPOOL 149a5873e85e9ad3e177b638cde7b1436bb7c5f46ebb9dcc806fd95c4c2d859a8016b0a6af383b9512024d3d90232aab73f606883a14c26eb929c0feeb961599 +EBUILD nutcracker-0.2.4.ebuild 901 SHA256 95f699d7dc34158598c366819a60724a48ae28270f82cda166c3b59e19288b9e SHA512 e481f1d96bab41538208c62261d9191d4f643c53c99b4ce68e16f698e1b6532324a4bc801b27bb557b7f6842fee7998c4a04b85c4a7cde89be24421099d5f096 WHIRLPOOL e07311c44ca6ac2eeeb97eb3c425eba83af555c1f2000cf57092d1084c04b170832bd594f67dbba0cb2efb56ee29b54a63f0af5528dcd02bbd8b15466d4093c6 +EBUILD nutcracker-0.3.0.ebuild 901 SHA256 6062a02524f9831c7097dcfead3cf32a8abd6cd82f3329ea74f48899b81e64c4 SHA512 12bf64d1e36468e55cef8e60578b17817a808c0fcd354393ee9bfda8f3611aa409ebf4fbdce84c42957209891c09f47405ca72ea5460bd8e769533e78834e030 WHIRLPOOL 42df5cd82910bb64e2ed65f1882e5438f8f78becd2e031d24a90a0437ca6a40da659f5ec179c3652d4e4c6bfedb5b7b25be54f121d76060d5077b7fee733efb7 +EBUILD nutcracker-0.4.1-r1.ebuild 967 SHA256 bf860e65fe161f928a9ca37399bb670a4274b90f74807a8bcb1724ec2aced205 SHA512 b0de762f155724a1f431ec0662001ec1206aa64551bcb107fc9464f6c2f49fcf1d287818be7d56587e6d73d4d39e9b52390a868e62df457e3ea7995635175267 WHIRLPOOL 77aadc281e1375e4fdcd4f5e687108db0a732e877e2690cc553239ca5738061294840689d1443184f04bd6f22a95f344c5f20b93659915a31142930cfea229ab +MISC ChangeLog 3370 SHA256 268b3c15a267f2c5494a608e5034ea92003d603a75b61f69d316a4df8b8b11fd SHA512 7810fec397619edab1da4109f8b5bc46fafeaa5b4d87eb149fab36243cb78d52660053f4174936c23dd0c211582b043dba06edf6f1d23b41133f5e7146c2c9eb WHIRLPOOL ac8ae992b96c2a810b3a330722ce49339fae3826490fe72d678852ee22e57eb34687d6c90069ebe2804dde068bf0369bd324ebffc4c516b9dbc8b102adfde902 +MISC ChangeLog-2015 626 SHA256 2c27a3254b4265be568a3cae3904b59ea8f1ced8ce988dd366956be2f5ff811a SHA512 3f9a86e897cdb5c467bc76fbdee8d12f48eae30028657ea2a726525925cc19de96446596e5cf619d63b58eea231d30536e131965e353c51eae34b2ad7533fbc9 WHIRLPOOL a07d912b8e1ce70f09f7d6f636f8b23b39ce2ffaa289cbcc70daa98affdc6899bc50cd490827661973470a8515ca6893a86b4ad83ebb9f42cdde0d627c86e2fa +MISC metadata.xml 335 SHA256 40d82aef239aa79ae9fcd5d1ac8902882d323d40bac7ee36e6e9ce4731bd5ef5 SHA512 5b3b0aaefb2f4e9ed98835a29767288b85ce89139209e1aeb194d22870907b4ff78d152b71482af61635e5554b5707305d19fe3ba48692de4bfb2f8623f9f754 WHIRLPOOL d2d260904719be69521645ec8900871157c76f31023d4f3c29ce8e26742ccb695d406da4e697e90a3a9fd7b5912f4d78586b0c3df154a2515650bfa06cf5d7b7 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-0.3.0-use-system-libyaml.patch b/net-proxy/nutcracker/files/nutcracker-0.3.0-use-system-libyaml.patch new file mode 100644 index 000000000000..8a30fae46fc1 --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker-0.3.0-use-system-libyaml.patch @@ -0,0 +1,57 @@ +diff -uNr nutcracker-0.3.0.orig/configure.ac nutcracker-0.3.0/configure.ac +--- nutcracker-0.3.0.orig/configure.ac 2014-03-17 17:55:54.500000001 -0400 ++++ nutcracker-0.3.0/configure.ac 2014-03-17 17:58:50.290000001 -0400 +@@ -195,11 +195,8 @@ + [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]) ++# Use systems libyaml. ++PKG_CHECK_MODULES([YAML], [yaml-0.1 >= 0.1]) + + # Define Makefiles + AC_CONFIG_FILES([Makefile +diff -uNr nutcracker-0.3.0.orig/Makefile.am nutcracker-0.3.0/Makefile.am +--- nutcracker-0.3.0.orig/Makefile.am 2014-03-17 17:55:54.500000001 -0400 ++++ nutcracker-0.3.0/Makefile.am 2014-03-17 17:56:38.920000001 -0400 +@@ -2,7 +2,7 @@ + + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = contrib src ++SUBDIRS = src + + dist_man_MANS = man/nutcracker.8 + +diff -uNr nutcracker-0.3.0.orig/src/Makefile.am nutcracker-0.3.0/src/Makefile.am +--- nutcracker-0.3.0.orig/src/Makefile.am 2014-03-17 17:55:54.500000001 -0400 ++++ nutcracker-0.3.0/src/Makefile.am 2014-03-17 18:00:08.480000001 -0400 +@@ -7,7 +7,6 @@ + AM_CPPFLAGS += -I $(top_srcdir)/src/hashkit + AM_CPPFLAGS += -I $(top_srcdir)/src/proto + AM_CPPFLAGS += -I $(top_srcdir)/src/event +-AM_CPPFLAGS += -I $(top_srcdir)/contrib/yaml-0.1.4/include + + AM_CFLAGS = + AM_CFLAGS += -Wall -Wshadow +@@ -17,9 +16,10 @@ + 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 = +-AM_LDFLAGS += -lm -lpthread -rdynamic ++AM_LDFLAGS += -lm -lpthread -rdynamic $(YAML_LIBS) + if OS_SOLARIS + AM_LDFLAGS += -lnsl -lsocket + endif +@@ -52,4 +52,3 @@ + nutcracker_LDADD = $(top_builddir)/src/hashkit/libhashkit.a + nutcracker_LDADD += $(top_builddir)/src/proto/libproto.a + nutcracker_LDADD += $(top_builddir)/src/event/libevent.a +-nutcracker_LDADD += $(top_builddir)/contrib/yaml-0.1.4/src/.libs/libyaml.a diff --git a/net-proxy/nutcracker/files/nutcracker.confd b/net-proxy/nutcracker/files/nutcracker.confd new file mode 100644 index 000000000000..03393f23a64c --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.confd @@ -0,0 +1,9 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +#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.confd.2 b/net-proxy/nutcracker/files/nutcracker.confd.2 new file mode 100644 index 000000000000..4029092e6e7e --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.confd.2 @@ -0,0 +1,9 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +#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..47abe8f3cd45 --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/files/nutcracker.initd.2 b/net-proxy/nutcracker/files/nutcracker.initd.2 new file mode 100644 index 000000000000..7e96808f04bb --- /dev/null +++ b/net-proxy/nutcracker/files/nutcracker.initd.2 @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +USER="${USER:-nobody}" +PIDFILE="${PIDFILE:-/var/run/nutcracker.pid}" +NUTCRACKER_BIN="${NUTCRACKER_BIN:-/usr/sbin/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..a681c7f99620 --- /dev/null +++ b/net-proxy/nutcracker/metadata.xml @@ -0,0 +1,11 @@ + + + + + patrick@gentoo.org + Patrick Lauer + + + twitter/twemproxy + + 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..3a41d6658396 --- /dev/null +++ b/net-proxy/nutcracker/nutcracker-0.2.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="https://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 +} diff --git a/net-proxy/nutcracker/nutcracker-0.3.0.ebuild b/net-proxy/nutcracker/nutcracker-0.3.0.ebuild new file mode 100644 index 000000000000..123d9cb88672 --- /dev/null +++ b/net-proxy/nutcracker/nutcracker-0.3.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="https://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 +} diff --git a/net-proxy/nutcracker/nutcracker-0.4.1-r1.ebuild b/net-proxy/nutcracker/nutcracker-0.4.1-r1.ebuild new file mode 100644 index 000000000000..2b8f82b4c02d --- /dev/null +++ b/net-proxy/nutcracker/nutcracker-0.4.1-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="https://github.com/twitter/twemproxy/archive/v0.4.1.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc" + +DEPEND=">=dev-libs/libyaml-0.1.4" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/twemproxy-${PV}" + +src_prepare() { + # Lets use system libyaml + epatch "${FILESDIR}/${PN}-0.3.0-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.2" nutcracker + newinitd "${FILESDIR}/nutcracker.initd.2" nutcracker + + if use doc; then + dodoc -r notes + fi +} -- cgit v1.2.3