new package: dynomite

This commit is contained in:
Tee KOBAYASHI 2022-01-28 21:23:14 +09:00 committed by xtkoba
parent fb2eb51397
commit 4b287f4e20
4 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,33 @@
TERMUX_PKG_HOMEPAGE=https://github.com/Netflix/dynomite
TERMUX_PKG_DESCRIPTION="A thin, distributed dynamo layer for different storage engines and protocols"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.6.22
TERMUX_PKG_SRCURL=https://github.com/Netflix/dynomite/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9c3c60d95b39939f3ce596776febe8aa00ae8614ba85aa767e74d41e302e704a
TERMUX_PKG_DEPENDS="libyaml, openssl"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
ac_cv_epoll_works=yes
ac_cv_evports_works=no
ac_cv_header_execinfo_h=no
ac_cv_kqueue_works=no
"
termux_step_pre_configure() {
autoreconf -fi
LDFLAGS+=" -Wl,-z,muldefs"
_NEED_DUMMY_LIBPTHREAD_A=
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
if [ ! -e $_LIBPTHREAD_A ]; then
_NEED_DUMMY_LIBPTHREAD_A=true
echo '!<arch>' > $_LIBPTHREAD_A
fi
}
termux_step_post_make_install() {
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
rm -f $_LIBPTHREAD_A
fi
}

View File

@ -0,0 +1,15 @@
--- a/configure.ac
+++ b/configure.ac
@@ -194,12 +194,6 @@
[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])
-
# Define Makefiles
AC_CONFIG_FILES([Makefile
contrib/Makefile

View File

@ -0,0 +1,6 @@
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -1,3 +0,0 @@
-SUBDIRS = yaml-0.1.4
-
-EXTRA_DIST = yaml-0.1.4.tar.gz

View File

@ -0,0 +1,32 @@
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -10,7 +10,6 @@
AM_CPPFLAGS += -I $(top_srcdir)/src/event
AM_CPPFLAGS += -I $(top_srcdir)/src/entropy
AM_CPPFLAGS += -I $(top_srcdir)/src/seedsprovider
-AM_CPPFLAGS += -I $(top_srcdir)/contrib/yaml-0.1.4/include
AM_CFLAGS = -Wall -Wshadow
AM_CFLAGS += -Wpointer-arith
@@ -77,8 +76,8 @@
dynomite_LDADD += $(top_builddir)/src/proto/libproto.a
dynomite_LDADD += $(top_builddir)/src/event/libevent.a
dynomite_LDADD += $(top_builddir)/src/entropy/libentropy.a
-dynomite_LDADD += $(top_builddir)/src/seedsprovider/libseedsprovider.a -lresolv
-dynomite_LDADD += $(top_builddir)/contrib/yaml-0.1.4/src/.libs/libyaml.a
+dynomite_LDADD += $(top_builddir)/src/seedsprovider/libseedsprovider.a
+dynomite_LDADD += -lyaml
@@ -128,8 +127,8 @@
dynomite_test_LDADD += $(top_builddir)/src/proto/libproto.a
dynomite_test_LDADD += $(top_builddir)/src/event/libevent.a
dynomite_test_LDADD += $(top_builddir)/src/entropy/libentropy.a
-dynomite_test_LDADD += $(top_builddir)/src/seedsprovider/libseedsprovider.a -lresolv
-dynomite_test_LDADD += $(top_builddir)/contrib/yaml-0.1.4/src/.libs/libyaml.a
+dynomite_test_LDADD += $(top_builddir)/src/seedsprovider/libseedsprovider.a
+dynomite_test_LDADD += -lyaml
if OS_BSD
dynomite_SOURCES += \