parent
92653ede6e
commit
bf9c343f07
@ -1,2 +1 @@
|
||||
DIST banner-1.3.2.tar.gz 93558 SHA256 3fb4804d614358b3a24cf2831b64aa848a09625afc58555b40fbe93db1c93ef6 SHA512 cfef528e111d3cdc5128ef880d61e2402b4559313fc51a96da0d4a7f45a20a6b0137754577e571857b3a6fb5c67ed35b4636626610c81dbda732cb5c394d47f3 WHIRLPOOL c32bf0b961dc68b1f4f9c840bab8a73287d4ce081b3639c52456a3bb262ae56724d664b0c45983d2d3cb48eaacc8c5c7e5e34d5b9cc9e34bb177b5c4a131267e
|
||||
DIST banner-1.3.3.tar.gz 114237 SHA256 bbc0c166da751d2055f76fde7a268a1ea008e4b6f949b767ab79ff07d47a4bda SHA512 38f16f2a25bd7fb270056ebe43691c989a808891ecc75e4f794456d1752a07002efb7ba7b90a2000a40704e6b6f11760b47a3fe59deeb05ff3578f0d982f7d96 WHIRLPOOL bea44375446950d737e4f7472d8f9305eb640f339e1c846f43e407bd0a26da95194e97029e52fa126d50ce6f757279ee939763aafa7ee5cef19229a308bafbf3
|
||||
|
@ -1,19 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/banner/banner-1.3.2.ebuild,v 1.11 2010/10/19 05:58:01 leio Exp $
|
||||
|
||||
DESCRIPTION="The well known banner program for Linux"
|
||||
HOMEPAGE="http://cedar-solutions.com"
|
||||
SRC_URI="http://cedar-solutions.com/ftp/software/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="!games-misc/bsd-games"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed."
|
||||
dodoc AUTHORS ChangeLog README
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST teapot-2.2.0.tar.gz 113903 SHA256 883c6298002e0f4f27abeeb08f1c0282ae69de8f5b70619437b46ad92bb70916 SHA512 acb55359e9bc5bd6c78686101d641b3edf88418e807fab29f9d38c9301b8651dedd7226c18086d1ac938fa169bea93a631eb9d4b74819defef1530d0322b55de WHIRLPOOL 912f274f68ce98ec64f78a0a7edf42accf79b75db164eccf1f2ed863cd85127794f643f8a777c1ab41e83a608aead3549b8408412dc235d7f23dcedc6f785b03
|
||||
DIST teapot-2.3.0.tar.gz 113647 SHA256 580e0cb416ae3fb3df87bc6e92e43bf72929d47b65ea2b50bc09acea3bff0b65 SHA512 cb85aa59e0e4e25f5067bbf2099caa7414bc6f923808d140f12844d6f19ca32f6ed649fae99dc8c93d51e789a8c6d1d92f38fe5d57f41e968f6c3b8b59cec9ca WHIRLPOOL 68236c8cfbf8f60cebd3055f54c67ce07f82409838e2406ddf3d5d6c7a2d43f2dadaa8923e039c63242afb8f3c5c5eaeaf40fed62f8f004a6ebbd18e3845b57b
|
||||
|
@ -1,27 +0,0 @@
|
||||
Fix to put docs in correct location based on ${PF}
|
||||
This requires -DPF=${PF} passed to cmake
|
||||
|
||||
Also prevent the installation of COPYING
|
||||
|
||||
Patch by Kevin McCarthy <signals42@gmail.com>
|
||||
|
||||
|
||||
--- CMakeLists.txt
|
||||
+++ CMakeLists.txt
|
||||
@@ -83,12 +83,12 @@
|
||||
add_custom_target(pdf DEPENDS teapot.pdf)
|
||||
add_custom_target(html DEPENDS html/index.html)
|
||||
add_custom_target(doc ALL DEPENDS teapot.pdf html/index.html)
|
||||
- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/teapot FILES_MATCHING PATTERN *.html PATTERN *.png)
|
||||
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/teapot.pdf DESTINATION share/doc/teapot)
|
||||
- set(HELPFILE "${CMAKE_INSTALL_PREFIX}/share/doc/teapot/html/index.html")
|
||||
+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc/${PF} FILES_MATCHING PATTERN *.html PATTERN *.png)
|
||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/teapot.pdf DESTINATION share/doc/${PF})
|
||||
+ set(HELPFILE "/usr/share/doc/${PF}/html/index.html")
|
||||
endif ()
|
||||
|
||||
-install(FILES COPYING README DESTINATION share/doc/teapot)
|
||||
+install(FILES README DESTINATION share/doc/${PF})
|
||||
|
||||
add_custom_target(dist
|
||||
COMMAND ${CMAKE_COMMAND} -E remove_directory teapot-${Teapot_VERSION_MAJOR}.${Teapot_VERSION_MINOR}.${Teapot_VERSION_PATCH}
|
@ -1,31 +0,0 @@
|
||||
This fixes a bug where HELPFILE was being overridden by a hard coded path
|
||||
|
||||
This also fixes an issue with fl_filename_absolute returning a relative path
|
||||
preventing fteapot from finding its helpfile when started from any directory
|
||||
except /
|
||||
|
||||
Patch by Kevin McCarthy <signals42@gmail.com>
|
||||
|
||||
--- fteapot.fl
|
||||
+++ fteapot.fl
|
||||
@@ -8,6 +8,9 @@
|
||||
decl {\#include "misc.h"} {private global
|
||||
}
|
||||
|
||||
+decl {\#include "config.h"} {private global
|
||||
+}
|
||||
+
|
||||
decl {\#include <stdint.h>} {private global
|
||||
}
|
||||
|
||||
@@ -781,8 +784,8 @@
|
||||
|
||||
Function {find_helpfile(char *buf, int size, const char *argv0)} {open C return_type void
|
||||
} {
|
||||
- code {fl_filename_absolute(buf, size, argv0);
|
||||
+ code {strncpy(buf, argv0, size);
|
||||
char *p = (char *)fl_filename_name(buf);
|
||||
-strncpy(p, "../share/doc/teapot/html/index.html", buf+size-p);
|
||||
+strncpy(p, HELPFILE, buf+size-p);
|
||||
buf[size-1] = 0;} {}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/teapot/teapot-2.2.0.ebuild,v 1.3 2011/12/10 14:18:53 ssuominen Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit cmake-utils flag-o-matic
|
||||
|
||||
DESCRIPTION="A powerful spreadhseet program"
|
||||
HOMEPAGE="http://www.syntax-k.de/projekte/teapot/"
|
||||
SRC_URI="http://www.syntax-k.de/projekte/teapot/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc fltk"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
fltk? ( >=x11-libs/fltk-1.3.0:1 )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-office/lyx
|
||||
dev-tex/latex2html
|
||||
dev-tex/pgf
|
||||
dev-texlive/texlive-fontsrecommended
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-doc-dir.patch
|
||||
"${FILESDIR}"/${P}-helpfile.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
$(cmake-utils_use_enable doc HELP)
|
||||
-DPF=${PF}
|
||||
)
|
||||
|
||||
if use fltk; then
|
||||
mycmakeargs+=(
|
||||
-DFLTK_USE_FILE=/usr/share/cmake/Modules/FLTKConfig.cmake
|
||||
-DFLTK_DIR=/usr/share/cmake/Modules
|
||||
-DFLTK_FLUID_EXECUTABLE=/usr/bin/fluid
|
||||
)
|
||||
append-cxxflags -I/usr/include/fltk-1
|
||||
append-ldflags -L/usr/$(get_libdir)/fltk-1
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST poppler-0.24.5.tar.xz 1512476 SHA256 a2654910100c923c44e366242495e226db2798254f2fa2781138867348759f84 SHA512 dfb40f7d864614f4ad7e8729334931c4b40c48c0dc3d7a8c33b14134cf13c61f8a562cc790a08bee4a43c2c29e587a9d26330437858d465e18ceafd69521250c WHIRLPOOL 066924beb46e58c2906a3b278e617438bd966e2b7bd884e110949f0d149d2cca0bf6326f2fa8c99e3a2c0f2d3cb3f145c8eeee4f060d17e3dded501ef8ec7f33
|
||||
DIST poppler-0.26.2.tar.xz 1592696 SHA256 1dd9963a82eba00b7a8c9f57a7d1d787be22f5e6cb0aead5dfe602775d0d9526 SHA512 1c8aa7a71b7f818a40fa3f886b54c627a600183a3d8b5b6e98439e1d3c7f5a1c7f0f6f8f5d685e9e19c539a2e11c5781de93f9032c88609e5b6eb32ee596ed9a WHIRLPOOL 85429392b904bd8ff7eb002f8858dfddd98fa53019934971e38117a46a1fbd9e7960e389f3e348ea484d1a9407abacc23be284f10481fc5882dda900fa50554e
|
||||
DIST poppler-0.26.3.tar.xz 1593760 SHA256 88cb1af3574f861bc08853a681be97ae79bf5302782fbac803f877b879a642b1 SHA512 1684c139ae8fd424cde17f59e03fd350f813bed908eea3f9ad5f85b09ed12868101416721e15244af309ba262b42e63c89f8b316f38033aa87875e3bed7a2bec WHIRLPOOL d68ed5481d3cafd7b1b970c7772274d54b5d57537a4ef38838520be46c51195d2b6571f5e67e2e36885c713c5de63ea0616a2c8a1784110b422b6f6f7fdb11d8
|
||||
|
@ -0,0 +1,103 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.26.3.ebuild,v 1.1 2014/08/21 02:51:31 mrueg Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils toolchain-funcs
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}"
|
||||
KEYWORDS=""
|
||||
SLOT="0/9999"
|
||||
else
|
||||
SRC_URI="http://poppler.freedesktop.org/${P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0/46"
|
||||
fi
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="http://poppler.freedesktop.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 qt5 tiff +utils"
|
||||
|
||||
# No test data provided
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.6.0
|
||||
>=media-libs/freetype-2.3.9
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
dev-libs/glib:2
|
||||
>=x11-libs/cairo-1.10.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
png? ( media-libs/libpng:0= )
|
||||
qt4? (
|
||||
dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtxml:5
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
cjk? ( >=app-text/poppler-data-0.4.4 )
|
||||
"
|
||||
|
||||
DOCS=(AUTHORS NEWS README README-XPDF TODO)
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch" )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT4_TESTS=OFF
|
||||
-DBUILD_QT5_TESTS=OFF
|
||||
-DBUILD_CPP_TESTS=OFF
|
||||
-DENABLE_SPLASH=ON
|
||||
-DENABLE_ZLIB=ON
|
||||
-DENABLE_XPDF_HEADERS=ON
|
||||
$(cmake-utils_use_enable curl LIBCURL)
|
||||
$(cmake-utils_use_enable cxx CPP)
|
||||
$(cmake-utils_use_enable jpeg2k LIBOPENJPEG)
|
||||
$(cmake-utils_use_enable utils)
|
||||
$(cmake-utils_use_with cairo)
|
||||
$(cmake-utils_use_with introspection GObjectIntrospection)
|
||||
$(cmake-utils_use_with jpeg)
|
||||
$(cmake-utils_use_with png)
|
||||
$(cmake-utils_use_with qt4)
|
||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||
$(cmake-utils_use_with tiff)
|
||||
)
|
||||
if use lcms; then
|
||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_CMS=)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use cairo && use doc; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/*
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST barman-1.3.0.tar.gz 86708 SHA256 732433c7f82627525208b9171f4b306ff6b62a2ae31382ef9430429dc6444f26 SHA512 7a215fdae67b11a821f9c047d095778f8bff83cb7342687ecf3f21c85a7fbc1c4d78f4807a656a2733a01c1ce53160b5c63f615de8091a0ac0c1c9e16a8480c7 WHIRLPOOL f8e9f9a8adb23d0933e17bb596eb611d1d397de333953dda66f41332a1b8df01cf58c81540b7ceb26992164e6b14ef8f3c8334e9f66bd166b84023437aa35dd8
|
||||
DIST barman-1.3.1.tar.gz 94922 SHA256 701903fcff76a8c86015daa3773e162d63c6e667d8b02866490d49c4407cc4d3 SHA512 b6338fbd83143d6ac5c16cd48a648858d92488352c08e452714d05fef1f2a45fa9b0e41c4a6ce702c2fd39c1df413fffcfe69645722f383af025718e5c0b3957 WHIRLPOOL ec72d9909086107334cafe471b034ae5f49b52ba86ecdf0d73395927b26a986868f96b55904301595e4b06408647a2b811864c5e2426c75b71488f310d7635eb
|
||||
DIST barman-1.3.2.tar.gz 95203 SHA256 945b8853550b424e5122a19ea9107646af2bfc634d227476520f1accf954977b SHA512 1f648f29dfeb793ac7893f892d6b720695de47e9c5f796585dc47a4e112db4ad501d39433cdb3669b72aab446f73389aeddd1afb6d408cc894b03cb816443b5c WHIRLPOOL eaf200e273b77c48899dd794127ba771b79b290e086431ae676affc9abe9ddfd5666d805a1c6b11aa72be62db82c5e161330c9b9202106dc9ed2b418025be189
|
||||
DIST barman-1.3.3.tar.gz 111462 SHA256 3e3af2fec16ac2836965a4c135d9ef4959ed690fb40ef06571d03ff526448468 SHA512 496ca24ee17b674fffe16a97b21b07f8c47837275ec8fbd781a9a1f94e52c5c8f04c2514aa5cc2e71a7b887bddd76dda815e2b4159b13c7c6ebda47c23bcebef WHIRLPOOL a10971486ea7462e131dce607106c3c6debe8097a2e335ca857bc94fa8b1048c16badb7c0646564fdbb9f4c63d23b4173f10a25293fe75924cc462ef268ba7a8
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/barman/barman-1.3.3.ebuild,v 1.1 2014/08/21 05:45:24 patrick Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers"
|
||||
|
||||
HOMEPAGE="http://www.pgbarman.org"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/argh[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
net-misc/rsync
|
||||
dev-db/postgresql-server"
|
||||
DEPEND=""
|
@ -0,0 +1,23 @@
|
||||
diff -uarN mysql-connector-odbc-5.3.4-src.orig/cmake/FindMySQL.cmake mysql-connector-odbc-5.3.4-src/cmake/FindMySQL.cmake
|
||||
--- mysql-connector-odbc-5.3.4-src.orig/cmake/FindMySQL.cmake 2014-06-18 18:50:16.000000000 -0400
|
||||
+++ mysql-connector-odbc-5.3.4-src/cmake/FindMySQL.cmake 2014-08-20 10:05:00.191485304 -0400
|
||||
@@ -105,16 +105,16 @@
|
||||
# Finally remove the dot
|
||||
STRING(REGEX REPLACE "[.]" "" MYSQL_NUM_VERSION "${MYSQL_NUM_VERSION}")
|
||||
|
||||
- IF(MYSQL_CXX_LINKAGE OR MYSQL_NUM_VERSION GREATER 50603)
|
||||
+ IF(MYSQL_CXX_LINKAGE)
|
||||
EXECUTE_PROCESS(COMMAND ${MYSQL_CONFIG_EXECUTABLE} "--cxxflags"
|
||||
OUTPUT_VARIABLE _mysql_config_output
|
||||
)
|
||||
SET(MYSQL_CXX_LINKAGE 1)
|
||||
- ELSE (MYSQL_CXX_LINKAGE OR MYSQL_NUM_VERSION GREATER 50603)
|
||||
+ ELSE (MYSQL_CXX_LINKAGE)
|
||||
EXECUTE_PROCESS(COMMAND ${MYSQL_CONFIG_EXECUTABLE} "--cflags"
|
||||
OUTPUT_VARIABLE _mysql_config_output
|
||||
)
|
||||
- ENDIF(MYSQL_CXX_LINKAGE OR MYSQL_NUM_VERSION GREATER 50603)
|
||||
+ ENDIF(MYSQL_CXX_LINKAGE)
|
||||
|
||||
# Remove the stl4port dependency
|
||||
STRING(REGEX REPLACE "-library=stlport4" "" _mysql_config_output "${_mysql_config_output}")
|
@ -0,0 +1,79 @@
|
||||
diff -aurN a/driver/catalog_no_i_s.c b/driver/catalog_no_i_s.c
|
||||
--- a/driver/catalog_no_i_s.c 2014-06-18 18:50:16.000000000 -0400
|
||||
+++ b/driver/catalog_no_i_s.c 2014-08-20 14:08:33.997339096 -0400
|
||||
@@ -1093,7 +1093,11 @@
|
||||
unsigned long *lengths;
|
||||
SQLRETURN rc= SQL_SUCCESS;
|
||||
|
||||
+#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 100001
|
||||
+ my_init_dynamic_array(&records, sizeof(MY_FOREIGN_KEY_FIELD), 0, 0, MYF(0));
|
||||
+#else
|
||||
my_init_dynamic_array(&records, sizeof(MY_FOREIGN_KEY_FIELD), 0, 0);
|
||||
+#endif
|
||||
|
||||
/* Get the list of tables that match szCatalog and szTable */
|
||||
pthread_mutex_lock(&stmt->dbc->lock);
|
||||
diff -aurN a/driver/desc.c b/driver/desc.c
|
||||
--- a/driver/desc.c 2014-06-18 18:50:16.000000000 -0400
|
||||
+++ b/driver/desc.c 2014-08-20 14:07:37.409169269 -0400
|
||||
@@ -63,8 +63,12 @@
|
||||
but in desc_get_rec we manually get a pointer to it. This avoids
|
||||
having to call set_dynamic after modifying the DESCREC.
|
||||
*/
|
||||
+#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 100001
|
||||
+ if (my_init_dynamic_array(&desc->records, sizeof(DESCREC), 0, 0, MYF(0)))
|
||||
+#else
|
||||
if (my_init_dynamic_array(&desc->records, sizeof(DESCREC), 0, 0))
|
||||
+#endif
|
||||
{
|
||||
x_free((char *)desc);
|
||||
return NULL;
|
||||
}
|
||||
@@ -995,9 +1003,15 @@
|
||||
|
||||
/* copy the records */
|
||||
delete_dynamic(&dest->records);
|
||||
+#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 100001
|
||||
+ if (my_init_dynamic_array(&dest->records, sizeof(DESCREC),
|
||||
+ src->records.max_element,
|
||||
+ src->records.alloc_increment, MYF(0)))
|
||||
+#else
|
||||
if (my_init_dynamic_array(&dest->records, sizeof(DESCREC),
|
||||
src->records.max_element,
|
||||
src->records.alloc_increment))
|
||||
+#endif
|
||||
{
|
||||
return set_desc_error(dest, "HY001",
|
||||
"Memory allocation error",
|
||||
diff -aurN a/driver/handle.c b/driver/handle.c
|
||||
--- a/driver/handle.c 2014-06-18 18:50:16.000000000 -0400
|
||||
+++ b/driver/handle.c 2014-08-20 14:05:00.364248403 -0400
|
||||
@@ -403,7 +403,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 100001
|
||||
+ my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10, MYF(0));
|
||||
+#else
|
||||
my_init_dynamic_array(*param_bind, sizeof(MYSQL_BIND), elements, 10);
|
||||
+#endif
|
||||
memset((*param_bind)->buffer, 0, sizeof(MYSQL_BIND) *
|
||||
(*param_bind)->max_element);
|
||||
|
||||
diff -aurN a/driver/parse.c b/driver/parse.c
|
||||
--- a/driver/parse.c 2014-06-18 18:50:16.000000000 -0400
|
||||
+++ b/driver/parse.c 2014-08-20 14:03:54.336383876 -0400
|
||||
@@ -129,8 +129,13 @@
|
||||
|
||||
/* TODO: Store offsets rather than ptrs. In this case we will be fine
|
||||
if work with copy of the originally parsed string */
|
||||
+#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 100001
|
||||
+ my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10, MYF(0));
|
||||
+ my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10, MYF(0));
|
||||
+#else
|
||||
my_init_dynamic_array(&pq->token, sizeof(uint), 20, 10);
|
||||
my_init_dynamic_array(&pq->param_pos, sizeof(uint), 10, 10);
|
||||
+#endif
|
||||
}
|
||||
|
||||
return pq;
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/conf.d-2.0,v 1.1 2014/08/21 03:08:13 grknight Exp $
|
||||
|
||||
# If you want a non-stock location for the config file, uncomment or update
|
||||
# either of these as needed. If you do use it, you must make sure that none of
|
||||
# your socket, pidfile, datadir, logfiles, binary logs, relay logs or InnoDB
|
||||
# files collide with each other.
|
||||
MY_CNF="/etc/mysql/my.cnf"
|
||||
#MY_CNF="${MY_CNF:-/etc/${SVCNAME}/my.cnf}"
|
||||
#MY_CNF="${MY_CNF:-/etc/mysql/my-${SVCNAME/mysql.}.cnf}"
|
||||
|
||||
# Place any additional arguments here that you might need
|
||||
# Common/useful options:
|
||||
# --skip-slave-start=1 - For bringing up replication initially
|
||||
# --server-id=NNN - Server ID for replication
|
||||
# --skip-networking - lock it down to UNIX sockets only
|
||||
MY_ARGS=""
|
||||
|
||||
# This setting (in seconds) should be high enough to allow InnoDB to do a full
|
||||
# checkpoint recovery. 900 is the default used in the upstream RPM startup
|
||||
# scripts. 30 seconds should be sufficent if you just have a tiny <1GiB
|
||||
# database. After the core startup is done, we wait this long for the UNIX
|
||||
# socket to appear.
|
||||
STARTUP_TIMEOUT="900"
|
||||
|
||||
# This is how long, in milliseconds, we wait for pidfile to be created, early
|
||||
# in the startup.
|
||||
STARTUP_EARLY_TIMEOUT="1000"
|
||||
|
||||
# How long (in seconds) should we wait for shutdown?
|
||||
STOP_TIMEOUT=120
|
||||
|
||||
# integer [-20 .. 19 ] default 0
|
||||
# change the priority of the server -20 (high) to 19 (low)
|
||||
# see nice(1) for description
|
||||
#NICE=0
|
||||
|
||||
# See start-stop-daemon(8) for possible settings
|
||||
#IONICE=2
|
||||
|
||||
# If defined, --verbose gets passed to S-S-D
|
||||
#DEBUG=1
|
||||
|
||||
# Depending on your usage of MySQL, you may also wish to start it after some
|
||||
# other services are up. Uncomment the lines below as needed. If these aren't
|
||||
# enough for you, we encourage you to file a bug, and help us understand how
|
||||
# you are using MySQL.
|
||||
|
||||
# Do your MySQL ACLs refer to hostnames not in your /etc/hosts?
|
||||
# If so, you need DNS before you can accept connections.
|
||||
# Avoid dependency circular loops if you use MySQL to power a local DNS server.
|
||||
#rc_use="dns"
|
||||
#rc_after="dns"
|
||||
|
||||
# Does your MySQL bind to an IP on an interface other than net.lo?
|
||||
# Alternatively you might wish to specify the exact interface here.
|
||||
#rc_use="net"
|
||||
#rc_after="net"
|
||||
|
||||
# Do you store your MySQL files on a SAN or other network filesystem, that is
|
||||
# provided by the netmount init script?
|
||||
#rc_need="netmount"
|
||||
|
||||
# Or from NFS? P.S. This is not a good idea in most cases, but does have some
|
||||
# valid usage cases, so we provide the option.
|
||||
#rc_need="nfsmount"
|
||||
|
||||
# Should any one of the instances satisfy the requirement for MySQL coming up?
|
||||
# By default, we say no.
|
||||
[ "${SVCNAME}" != mysql ] && rc_provide="!mysql"
|
||||
# But uncomment this next instead if you think it should.
|
||||
#rc_provide="mysql"
|
||||
|
||||
# The conditional above has a false-positive "failure" return value as a
|
||||
# side-effect, and since it's the last statement, without the next line, this
|
||||
# script returns failure.
|
||||
return 0
|
||||
# vim: ft=gentoo-conf-d et ts=4 sw=4:
|
@ -1,80 +0,0 @@
|
||||
# Here is where we define which server(s) to start.
|
||||
# Additional parameters to be passed to mysqld at startup may be added here,
|
||||
# which will override the ones in "my.cnf".
|
||||
#
|
||||
# Below are described some suggested parameters to use.
|
||||
# The parameters not recognized will be passed through to the mysqld daemon
|
||||
# directly!
|
||||
# To avoid starting a server just comment it's definition.
|
||||
#
|
||||
# Last but not least, SPACES are NOT allowed inside the parameters!
|
||||
#
|
||||
# Parameter : description
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# nice : integer [-20 .. 19 ] default 0
|
||||
# : change the priority of the server -20 (high) to 19 (low)
|
||||
# : see "man nice 1" for description
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# mycnf : string [full path to my.cnf]
|
||||
# : specify the path to my.cnf file to be used
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# startup_timeout : integer [seconds] default 15
|
||||
# : time to wait for mysqld up and running, after this it's
|
||||
# : marked as failed
|
||||
# ----------------+-----------------------------------------------------------
|
||||
#
|
||||
# Additional parameters
|
||||
# Parameter : description
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# server-id : integer [1 .. 255]
|
||||
# : Uniquely identifies the server instance in the community
|
||||
# : of replication partners.
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# port : integer [1025 .. 65535] default 3306
|
||||
# : Port number to use for connection.
|
||||
# : Looses any meaning if skip-networking is set.
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# skip-networking : NULL
|
||||
# : Don't allow connection through TCP/IP.
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# log-bin : string [name of the binlog files]
|
||||
# : Log update queries in binary format. Optional (but
|
||||
# : strongly recommended to avoid replication problems if
|
||||
# : server's hostname changes) argument should be the chosen
|
||||
# : location for the binary log files.
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# Additionally the following variables are recognized:
|
||||
#
|
||||
# Be more verbose, accepts values from 1 to 4
|
||||
#DEBUG=4
|
||||
#
|
||||
# The default location for the "master" pid file
|
||||
#MYSQL_GLOB_PID_FILE="/var/run/svc-started-mysqld"
|
||||
#
|
||||
# The timeout for a failed attempt to stop a server
|
||||
#STOPTIMEOUT=120
|
||||
#
|
||||
|
||||
# The parameters are passed in a bash array variable,
|
||||
# the variable name is mysql_slot_0_[server-num]
|
||||
# "server-num" is an optional number used to start multiple servers
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# start a default server with default options:
|
||||
#mysql_slot_0=()
|
||||
#
|
||||
# start MySQL reniced, overriding some start parameters
|
||||
#mysql_slot_0=(
|
||||
# "nice=-5"
|
||||
# "server-id=123"
|
||||
# "log-bin="myhost"
|
||||
# "port=3307"
|
||||
#)
|
||||
#
|
||||
# start another server, different my.cnf
|
||||
#mysql_slot_0_1=(
|
||||
# "mycnf=/home/test/my.cnf"
|
||||
# "server-id=124"
|
||||
#)
|
||||
#
|
@ -1,358 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/mysql.rc6,v 1.2 2007/03/04 15:47:03 vivo Exp $
|
||||
|
||||
# external binaries used: which, sed, tac
|
||||
|
||||
# int in_list(char * elem, char * list)
|
||||
function in_list() {
|
||||
local elem=${1:-"none"}
|
||||
local list=${2:-","}
|
||||
|
||||
[[ "${list}" == "${list/,${elem},/}" ]] \
|
||||
&& return 1 \
|
||||
|| return 0
|
||||
}
|
||||
|
||||
function wdebug() {
|
||||
if [[ "${DEBUG}" -ge "${1}" ]] ; then
|
||||
shift
|
||||
echo "dbg: ${@}"
|
||||
fi
|
||||
}
|
||||
|
||||
depend() {
|
||||
use dns net localmount netmount nfsmount
|
||||
}
|
||||
|
||||
do_escape() {
|
||||
# Ihatethisreallyverymuch
|
||||
#echo "$1" | sed -e "s|'| |" -e "s|=|='|" -e "s|$|'|"
|
||||
echo "$1"
|
||||
}
|
||||
|
||||
# int get_slot_config(srv_slot=0, srv_num)
|
||||
get_slot_config() {
|
||||
wdebug 4 ">>> get_slot_config()"
|
||||
|
||||
local srv srv_slot srv_num
|
||||
srv_slot="${1:-"0"}"
|
||||
srv_num="${2}"
|
||||
MY_SUFFIX="-${srv_slot}"
|
||||
# srv=array(0 => [srv_slot], 1 => [srv_num] )
|
||||
srv=( ${srv_slot} ${srv_num} )
|
||||
|
||||
local tmp_eval="mysql_slot_${srv_slot}${srv_num:+"_"}${srv_num}[@]"
|
||||
local conf_d_parameters="${!tmp_eval}"
|
||||
if [[ "${srv_slot}" == "0" ]] ; then
|
||||
MY_SUFFIX=''
|
||||
# try some other default for the default server
|
||||
[[ -z "${conf_d_parameters[@]}" ]] && conf_d_parameters=${mysql_slot[@]}
|
||||
fi
|
||||
[[ -z "${conf_d_parameters[@]}" ]] && conf_d_parameters=( )
|
||||
basedir="" datadir="" pidfile="" socket=""
|
||||
CHROOT="" NICE="" STARTUPTIMEOUT=5 STOPTIMEOUT=120
|
||||
|
||||
wdebug 3 "srv ${srv[@]}"
|
||||
wdebug 3 "srv_slot ${srv_slot}"
|
||||
wdebug 3 "srv_num ${srv_num}"
|
||||
wdebug 3 "tmp_eval ${tmp_eval}"
|
||||
wdebug 3 "conf_d_parameters ${conf_d_parameters[@]}"
|
||||
wdebug 3 "MY_SUFFIX ${MY_SUFFIX}"
|
||||
|
||||
local tmp_eval="mysql_slot_${srv_slot}${srv_num:+"_"}${srv_num}[@]"
|
||||
local conf_d_parameters="${!tmp_eval}"
|
||||
# collations need to be defined *after* the character sets,
|
||||
# so we will duplicate them
|
||||
local collations=""
|
||||
[[ ${conf_d_parameters[*]} == '()' ]] && conf_d_parameters=''
|
||||
|
||||
MY_CNF="/etc/mysql${MY_SUFFIX}/my.cnf"
|
||||
# summa of unmanaged parameters
|
||||
# some parameters may be present multiple times
|
||||
unmanagedparams=""
|
||||
|
||||
# grab the parameters from conf.d/mysql definition
|
||||
for my_default in ${conf_d_parameters[*]} ; do
|
||||
case "${my_default}" in
|
||||
nice=*)
|
||||
NICE="${my_default#nice=}"
|
||||
nice -n $NICE ls /tmp &>/dev/null || NICE=""
|
||||
;;
|
||||
mycnf=*) MY_CNF="${my_default#mycnf=}" ;;
|
||||
startup_timeout=*)
|
||||
STARTUPTIMEOUT="${my_default#startup_timeout=}" ;;
|
||||
basedir=*) basedir="${my_default#basedir=}" ;;
|
||||
datadir=*) datadir="${my_default#datadir=}" ;;
|
||||
pid-file=*) pidfile="${my_default#pid-file=}" ;;
|
||||
socket=*) socket="${my_default#socket=}" ;;
|
||||
*collation*=)
|
||||
collations="${collations} --$( do_escape "${my_default}" )"
|
||||
;;
|
||||
*=*)
|
||||
# list of parameters we already have
|
||||
# prepend "--" because my_print_defaults do it
|
||||
unmanagedparams="${unmanagedparams} --$( do_escape "${my_default}" )"
|
||||
;;
|
||||
*)
|
||||
unmanagedparams="${unmanagedparams} --${my_default}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ ! -r "${MY_CNF}" ]] ; then
|
||||
ewarn "Cannot access ${MY_CNF} !"
|
||||
MY_CNF=""
|
||||
my_defaults=""
|
||||
else
|
||||
local my_print_defaults="$(which my_print_defaults${MY_SUFFIX} 2>/dev/null)"
|
||||
if [[ ! -x "${my_print_defaults}" ]] ; then
|
||||
eerror "my_print_defaults NOT found or not executable"
|
||||
my_defaults=""
|
||||
else
|
||||
my_defaults=$( ${my_print_defaults} \
|
||||
--loose-verbose \
|
||||
--config-file="${MY_CNF}" \
|
||||
mysqld server )
|
||||
fi
|
||||
fi
|
||||
|
||||
# grab needed parameters from my.cnf, don't override the ones from
|
||||
# conf.d/mysql
|
||||
for my_default in ${my_defaults} ; do
|
||||
case "${my_default}" in
|
||||
--basedir=*)
|
||||
[[ -z "${basedir}" ]] && basedir="${my_default#--basedir=}" ;;
|
||||
--datadir=*)
|
||||
[[ -z "${datadir}" ]] && datadir="${my_default#--datadir=}" ;;
|
||||
--pid-file=*)
|
||||
[[ -z "${pidfile}" ]] && pidfile="${my_default#--pid-file=}" ;;
|
||||
--socket=*)
|
||||
[[ -z "${socket}" ]] && socket="${my_default#--socket=}" ;;
|
||||
--*collation*=)
|
||||
# the order is inversed because we want the conf.d ones overriden
|
||||
collations="$( do_escape "${my_default}" ) ${collations}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# some parameters
|
||||
basedir="${basedir:-"/usr"}"
|
||||
datadir="${datadir:-"/var/lib/mysql${MY_SUFFIX}"}"
|
||||
pidfile="${pidfile:-"/var/run/mysqld/mysqld${MY_SUFFIX}.pid"}"
|
||||
socket="${socket:-"/var/run/mysqld/mysqld${MY_SUFFIX}.sock"}"
|
||||
unmanagedparams="${unmanagedparams} ${collations}"
|
||||
|
||||
wdebug 3 "chroot dir => ${CHROOT}"
|
||||
wdebug 3 "niceness => ${NICE}"
|
||||
wdebug 3 "basedir => ${basedir}"
|
||||
wdebug 3 "datadir => ${datadir}"
|
||||
wdebug 3 "pidfile => ${pidfile}"
|
||||
wdebug 3 "socket => ${socket}"
|
||||
wdebug 3 "Unamanged => ${unmanagedparams}"
|
||||
|
||||
# extension for sleep tenth of seconds, not very portable so check it before
|
||||
if sleep 0.01 ; then
|
||||
STARTUPTIMEOUT=$(( STARTUPTIMEOUT * 10 ))
|
||||
STOPTIMEOUT=$(( STOPTIMEOUT * 10 ))
|
||||
TIMEUNIT=0.1
|
||||
else
|
||||
TIMEUNIT=1
|
||||
fi
|
||||
|
||||
# push these out to the script
|
||||
export MY_SUFFIX NICE MY_CNF pidfile datadir basedir socket CHROOT
|
||||
export unmanagedparams STARTUPTIMEOUT STOPTIMEOUT TIMEUNIT
|
||||
wdebug 4 "<<< get_slot_config() ok"
|
||||
return 0
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
wdebug 4 ">>> checkconfig(\"${1}\")"
|
||||
local datadir="${1}" pidfile="${2}" socket="${3}"
|
||||
|
||||
if [[ -n "${NOCHECK}" ]] ; then
|
||||
rm -f "${pidfile}" "${socket}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ ! -d "${datadir}" ]] ; then
|
||||
eerror "MySQL datadir is empty or invalid"
|
||||
eerror "Please check your my.cnf : ${MY_CNF}"
|
||||
wdebug 4 "<<< checkconfig() KO"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ ! -d "${datadir}/mysql" ]] ; then
|
||||
eerror "You don't appear to have the mysql database installed yet."
|
||||
eerror "Please run /usr/bin/mysql_install_db to have this done..."
|
||||
wdebug 4 "<<< checkconfig() KO"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -f "${pidfile}" ]] ; then
|
||||
kill -15 $(< ${pidfile}) 2>/dev/null
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
# the process exist, we have a problem
|
||||
eerror "\"${pidfile}\" is still present and the process is running."
|
||||
eerror "Please stop it \"kill $(< ${pidfile})\" maybe ?"
|
||||
wdebug 4 "<<< checkconfig() KO"
|
||||
return 1
|
||||
else
|
||||
rm -f "${pidfile}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -S "${socket}" ]] ; then
|
||||
ewarn "Strange, the socket file already exist in \"${socket}\""
|
||||
ewarn "it will be removed now and re-created by the MySQL server"
|
||||
ewarn "BUT please make your checks."
|
||||
rm -f "${socket}"
|
||||
fi
|
||||
|
||||
wdebug 4 "<<< checkconfig() ok"
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
wdebug 4 ">>> start()"
|
||||
|
||||
MYSQL_GLOB_PID_FILE=${MYSQL_GLOB_PID_FILE:-"/var/run/svc-started-${SVCNAME/mysql/mysqld}"}
|
||||
# servers are defined in /etc/conf.d/mysql
|
||||
local serverlist=${!mysql_slot_*}
|
||||
# provide default for empty conf.d/mysql
|
||||
if [[ -z "${serverlist}" ]] ; then
|
||||
serverlist=0
|
||||
export mysql_slot_0=( )
|
||||
fi
|
||||
local retstatus timeout
|
||||
local globretstatus=1
|
||||
local srv_slot srv_num
|
||||
# server MUST NOT share same location for these
|
||||
local pidfilelist=',' datadirlist=',' socketlist=','
|
||||
local ssd_thing=1
|
||||
local mysqld_thing tmpnice
|
||||
|
||||
ebegin "Starting ${myservice}"
|
||||
# try to start each server
|
||||
for srv in ${serverlist[*]} ; do
|
||||
|
||||
srv_slot="${srv#mysql_slot_}"
|
||||
if [[ "${srv_slot}" == "${srv_slot#*_}" ]] ; then
|
||||
srv_num=''
|
||||
else
|
||||
srv_num="${srv_slot#*_}"
|
||||
fi
|
||||
srv_slot="${srv_slot%%_*}"
|
||||
|
||||
retstatus=0
|
||||
get_slot_config "${srv_slot}" "${srv_num}" || retstatus=1
|
||||
|
||||
# checks
|
||||
if ! checkconfig "${datadir}" "${pidfile}" "${socket}" ; then
|
||||
retstatus=2 ; continue
|
||||
fi
|
||||
if in_list "${pidfile}" "${pidfilelist}" ; then
|
||||
eerror "Sorry, won't start with same pid-file: ${pidfile}"
|
||||
retstatus=3 ; continue
|
||||
fi
|
||||
if in_list "${datadir}" "${datadirlist}" ; then
|
||||
eerror "Sorry, won't start with same datadir: ${datadir}"
|
||||
retstatus=4 ; continue
|
||||
fi
|
||||
if in_list "${socket}" "${socketlist}" ; then
|
||||
eerror "Sorry, won't start with same socket: ${socket}"
|
||||
retstatus=5 ; continue
|
||||
fi
|
||||
|
||||
einfo "Starting ${myservice} (${MY_CNF})"
|
||||
|
||||
mysqld_thing="${MY_CNF:+"--defaults-file="}${MY_CNF}"
|
||||
mysqld_thing="${mysqld_thing} ${unmanagedparams}"
|
||||
mysqld_thing="${mysqld_thing} --basedir=${basedir}"
|
||||
mysqld_thing="${mysqld_thing} --datadir=${datadir}"
|
||||
mysqld_thing="${mysqld_thing} --pid-file=${pidfile}"
|
||||
mysqld_thing="${mysqld_thing} --socket=${socket}"
|
||||
|
||||
wdebug 2 "starting mysqld with: ${mysqld_thing}"
|
||||
|
||||
if [[ ${ssd_thing} -eq 1 ]] ; then
|
||||
tmpnice="${NICE:+"--nicelevel "}${NICE}"
|
||||
start-stop-daemon --quiet ${DEBUG/*/"--verbose"} --start \
|
||||
--background ${tmpnice} --pidfile ${pidfile} \
|
||||
--exec ${basedir}/sbin/mysqld${MY_SUFFIX} -- ${mysqld_thing} \
|
||||
&& sleep ${TIMEUNIT}
|
||||
retstatus=$?
|
||||
else
|
||||
tmpnice="${NICE:+"nice -n "}${NICE}"
|
||||
${tmpnice} ${basedir}/sbin/mysqld${MY_SUFFIX} ${mysqld_thing} &
|
||||
retstatus=0
|
||||
fi
|
||||
|
||||
# only the first run is done by start-stop-daemon
|
||||
ssd_thing=""
|
||||
|
||||
# wait for socket creation
|
||||
wdebug 1
|
||||
while ! [[ -S "${socket}" || "${STARTUPTIMEOUT}" -lt 1 || "${retstatus}" -ne 0 ]] ; do
|
||||
STARTUPTIMEOUT=$(( STARTUPTIMEOUT - 1 ))
|
||||
[[ ${DEBUG} -ge 1 ]] && echo -n "${STARTUPTIMEOUT},"
|
||||
sleep ${TIMEUNIT}
|
||||
done
|
||||
wdebug 1 ""
|
||||
if [[ ! -S "${socket}" ]] ; then
|
||||
eerror "MySQL${MY_SUFFIX} NOT started (${retstatus})"
|
||||
retstatus=1
|
||||
else
|
||||
globretstatus=0
|
||||
pidfilelist="${pidfilelist}${pidfile},"
|
||||
datadirlist="${datadirlist}${datadir},"
|
||||
socketlist="${socketlist}${socket},"
|
||||
echo "${srv_slot}${srv_num:+"_"}${srv_num}=${pidfile}" >> "${MYSQL_GLOB_PID_FILE}"
|
||||
fi
|
||||
done
|
||||
# successfull if at least one mysqld started
|
||||
wdebug 4 "<<< start()"
|
||||
eend $globretstatus
|
||||
}
|
||||
|
||||
stop() {
|
||||
get_slot_config &> /dev/null
|
||||
MYSQL_GLOB_PID_FILE=${MYSQL_GLOB_PID_FILE:-"/var/run/svc-started-${SVCNAME/mysql/mysqld}"}
|
||||
local runwhat pidfile shutdown_elem
|
||||
local PID cnt timeout=${STOPTIMEOUT:-"120"}
|
||||
local retstatus=0
|
||||
local shutdown_list="$(< "${MYSQL_GLOB_PID_FILE}" )"
|
||||
|
||||
ebegin "Stopping ${myservice}"
|
||||
wdebug 5 "MYSQL_GLOB_PID_FILE: ${MYSQL_GLOB_PID_FILE}"
|
||||
wdebug 5 "shutdown_list: ${shutdown_list}"
|
||||
for shutdown_elem in ${shutdown_list} ; do
|
||||
runwhat=${shutdown_elem%%=*}
|
||||
pidfile=${shutdown_elem#*=}
|
||||
timeout=${STOPTIMEOUT:-"120"}
|
||||
PID=$(< "${pidfile}" )
|
||||
wdebug 3 "runwhat ${runwhat}"
|
||||
wdebug 3 "pidfile ${pidfile}"
|
||||
wdebug 3 "timeout ${timeout}"
|
||||
wdebug 3 "PID ${PID}"
|
||||
|
||||
einfo "Stopping mysqld (${runwhat})"
|
||||
|
||||
start-stop-daemon --quiet ${DEBUG/*/"--verbose"} --stop --pidfile "${pidfile}" &
|
||||
wdebug 1 ""
|
||||
while [[ -n "$PID" ]] \
|
||||
&& $( ps -Ao pid | grep -q "^ *$PID$" ) \
|
||||
&& [[ "${timeout}" -ge 1 ]]
|
||||
do
|
||||
timeout=$(($timeout - 1))
|
||||
[[ ${DEBUG} -ge 1 ]] && echo -n "$(( $STOPTIMEOUT - $timeout )),"
|
||||
sleep ${TIMEUNIT}
|
||||
done
|
||||
[[ "${timeout}" -lt 1 ]] && retstatus=1
|
||||
done
|
||||
sleep ${TIMEUNIT}
|
||||
[[ "$retstatus" -eq 0 ]] && rm -f "$MYSQL_GLOB_PID_FILE"
|
||||
eend ${retstatus}
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
# Here is where we define which server(s) to start.
|
||||
# Additional parameters to be passed to mysqlmanager at startup may be added here,
|
||||
# which will override the ones in "my.cnf".
|
||||
#
|
||||
# To avoid starting a server just comment it's definition
|
||||
# here or it will rant (no default start).
|
||||
# Last but not least, spaces are NOT allowed inside the parameters!
|
||||
#
|
||||
# Below are described some suggested parameters to use.
|
||||
# The parameters not recognized will be passed through to the mysqlmanager directly.
|
||||
#
|
||||
# Parameter : description
|
||||
|
||||
# ----------------+-----------------------------------------------------------
|
||||
# mycnf : string [full path to my.cnf]
|
||||
# : specify the path to my.cnf file to be used
|
||||
# : may contain a [manager] section
|
||||
# ----------------+-----------------------------------------------------------
|
||||
#
|
||||
# Basic default
|
||||
#
|
||||
#mysqlmanager_slot_0=()
|
||||
#
|
||||
# Start MySQL 5.0.X overriding the my.cnf path
|
||||
#mysqlmanager_slot_500=(
|
||||
# "mycnf=/home/test/my.cnf"
|
||||
#)
|
||||
#
|
@ -1,230 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/files/mysqlmanager.rc6,v 1.1 2007/01/12 16:54:20 chtekk Exp $
|
||||
|
||||
# external binaries used: which, sed, tac
|
||||
|
||||
depend() {
|
||||
use dns net localmount netmount nfsmount
|
||||
#provide mysql
|
||||
}
|
||||
|
||||
# int in_list(char * elem, char * list)
|
||||
function in_list() {
|
||||
local elem=${1:-"none"}
|
||||
local list=${2:-","}
|
||||
|
||||
[[ "${list}" == "${list/,${elem},/}" ]] \
|
||||
&& return 1 \
|
||||
|| return 0
|
||||
}
|
||||
|
||||
do_escape() {
|
||||
# Ihatethisreallyverymuch
|
||||
#echo "$1" | sed -e "s|'| |" -e "s|=|='|" -e "s|$|'|"
|
||||
echo "$1"
|
||||
}
|
||||
|
||||
# int get_slot_config(srv_slot=0, srv_num)
|
||||
get_slot_config() {
|
||||
[[ ${DEBUG} -ge 4 ]] && einfo ">>> get_slot_config(\"${1}\", \"${2}\")"
|
||||
|
||||
srv_slot="${1:-"0"}"
|
||||
srv_num="${2}"
|
||||
MY_SUFFIX="-${srv_slot}"
|
||||
[[ "${MY_SUFFIX}" == '-0' ]] && MY_SUFFIX=''
|
||||
|
||||
basedir="" pidfile="" socket=""
|
||||
|
||||
local tmp_eval="mysqlmanager_slot_${srv_slot}${srv_num:+"_"}${srv_num}[@]"
|
||||
local conf_d_parameters="${!tmp_eval}"
|
||||
[[ ${conf_d_parameters[*]} == '()' ]] && conf_d_parameters=''
|
||||
|
||||
MY_CNF="/etc/mysql${MY_SUFFIX}/my.cnf"
|
||||
# summa of unmanaged parameters
|
||||
# some parameters may be present multiple times
|
||||
unmanagedparams=""
|
||||
|
||||
# grab the parameters from conf.d/mysql definition
|
||||
for my_default in ${conf_d_parameters[*]} ; do
|
||||
case "${my_default}" in
|
||||
mycnf=*) MY_CNF="${my_default#mycnf=}" ;;
|
||||
basedir=*) basedir="${my_default#basedir=}" ;;
|
||||
pid-file=*) pidfile="${my_default#pid-file=}" ;;
|
||||
socket=*) socket="${my_default#socket=}" ;;
|
||||
*=*)
|
||||
# list of parameters we already have
|
||||
# prepend "--" because my_print_defaults do it
|
||||
unmanagedparams="${unmanagedparams} --$( do_escape "${my_default}" )"
|
||||
;;
|
||||
*)
|
||||
unmanagedparams="${unmanagedparams} --${my_default}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ ! -r "${MY_CNF}" ]] ; then
|
||||
ewarn "Cannot access ${MY_CNF} !"
|
||||
MY_CNF=""
|
||||
my_defaults=""
|
||||
else
|
||||
local my_print_defaults="$(which my_print_defaults${MY_SUFFIX} 2>/dev/null)"
|
||||
if [[ ! -x "${my_print_defaults}" ]] ; then
|
||||
eerror "my_print_defaults NOT found or not executable"
|
||||
my_defaults=""
|
||||
else
|
||||
my_defaults=$( ${my_print_defaults} \
|
||||
--loose-verbose \
|
||||
--config-file="${MY_CNF}" \
|
||||
manager )
|
||||
fi
|
||||
fi
|
||||
|
||||
# grab needed parameters from my.cnf, don't override the ones from
|
||||
# conf.d/mysql
|
||||
for my_default in ${my_defaults} ; do
|
||||
case "${my_default}" in
|
||||
--pid-file=*)
|
||||
[[ -z "${pidfile}" ]] && pidfile="${my_default#--pid-file=}" ;;
|
||||
--socket=*)
|
||||
[[ -z "${socket}" ]] && socket="${my_default#--socket=}" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# still empty, I'm in doubt if assign a default or break, will see
|
||||
basedir="${basedir:-"/usr"}"
|
||||
pidfile="${pidfile:-"/var/run/mysqld/mysqlmanager${MY_SUFFIX}.pid"}"
|
||||
socket="${socket:-"/var/run/mysqld/mysqlmanager${MY_SUFFIX}.sock"}"
|
||||
|
||||
if [[ ${DEBUG} -ge 3 ]] ; then
|
||||
einfo "basedir => ${basedir}"
|
||||
einfo "pidfile => ${pidfile}"
|
||||
einfo "socket => ${socket}"
|
||||
einfo "Unamanged => ${unmanagedparams}"
|
||||
fi
|
||||
|
||||
# push these out to the script
|
||||
export MY_SUFFIX MY_CNF pidfile basedir socket
|
||||
export unmanagedparams
|
||||
[[ ${DEBUG} -ge 4 ]] && einfo "<<< get_slot_config() ok"
|
||||
return 0
|
||||
}
|
||||
|
||||
start() {
|
||||
[[ ${DEBUG} -ge 4 ]] && einfo ">>> start()"
|
||||
MYSQL_GLOB_PID_FILE=${MYSQL_GLOB_PID_FILE:-"/var/run/svc-started-${SVCNAME}"}
|
||||
# servers are defined in /etc/conf.d/mysql
|
||||
local serverlist=${!mysqlmanager_slot_*}
|
||||
# provide default for empty conf.d/mysql
|
||||
if [[ -z "${serverlist}" ]] ; then
|
||||
serverlist=0
|
||||
export mysqlmanager_slot_0=()
|
||||
fi
|
||||
local retstatus timeout
|
||||
local globretstatus=1
|
||||
local srv_slot srv_num
|
||||
# server MUST NOT share same location for these
|
||||
local pidfilelist=',' socketlist=','
|
||||
|
||||
# additional security
|
||||
rm -f "${MYSQL_GLOB_PID_FILE}" ; touch "${MYSQL_GLOB_PID_FILE}"
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
eerror "cannot create MYSQL_GLOB_PID_FILE: ${MYSQL_GLOB_PID_FILE}"
|
||||
[[ ${DEBUG} -ge 4 ]] && einfo "<<< start() KO"
|
||||
return 1
|
||||
fi
|
||||
|
||||
ebegin
|
||||
# try to start each server
|
||||
for srv in ${serverlist[*]} ; do
|
||||
einfo "working on ${srv}"
|
||||
|
||||
srv_slot="${srv#mysqlmanager_slot_}"
|
||||
if [[ "${srv_slot}" == "${srv_slot#*_}" ]] ; then
|
||||
srv_num=''
|
||||
else
|
||||
srv_num="${srv_slot#*_}"
|
||||
fi
|
||||
srv_slot="${srv_slot%%_*}"
|
||||
|
||||
retstatus=0
|
||||
get_slot_config "${srv_slot}" "${srv_num}" || retstatus=1
|
||||
|
||||
# timeout (seconds) before declaring the startup failed
|
||||
|
||||
# pre_run checks
|
||||
if [[ "$retstatus" -eq 0 ]] ; then
|
||||
if in_list "${pidfile}" "${pidfilelist}" ; then
|
||||
retstatus=3
|
||||
eerror "Sorry, won't start with same pid-file: ${pidfile}"
|
||||
fi
|
||||
if in_list "${socket}" "${socketlist}" ; then
|
||||
retstatus=5
|
||||
eerror "Sorry, won't start with same socket: ${socket}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $retstatus -eq 0 ]] ; then
|
||||
# additional security
|
||||
rm -f ${pidfile} ${socket}
|
||||
einfo "Starting mysqlmanager${MY_SUFFIX:+"_"}${srv_slot}${srv_num:+"_"}${srv_num} (${MY_CNF})"
|
||||
|
||||
[[ ${DEBUG} -ge 2 ]] && echo "starting mysqlmanager with: "${basedir}/sbin/mysqlmanager${MY_SUFFIX} ${unmanagedparams} --pid-file=${pidfile} --socket=${socket}
|
||||
|
||||
start-stop-daemon --quiet --start --background \
|
||||
--pidfile "${pidfile}" \
|
||||
--exec ${basedir}/sbin/mysqlmanager${MY_SUFFIX} \
|
||||
-- \
|
||||
${MY_CNF:+"--defaults-file="}${MY_CNF} \
|
||||
${unmanagedparams} \
|
||||
--pid-file=${pidfile} \
|
||||
--socket=${socket}
|
||||
|
||||
retstatus=$?
|
||||
|
||||
if [[ "${retstatus}" -eq 0 ]] ; then
|
||||
pidfilelist="${pidfilelist}${pidfile},"
|
||||
socketlist="${socketlist}${socket},"
|
||||
globretstatus=0
|
||||
echo "${srv_slot}${srv_num:+"_"}${srv_num}=${pidfile}" >> "${MYSQL_GLOB_PID_FILE}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# successfull if at least one mysqlmanager started
|
||||
[[ ${DEBUG} -ge 4 ]] && einfo "<<< start()"
|
||||
eend $globretstatus
|
||||
}
|
||||
|
||||
stop () {
|
||||
MYSQL_GLOB_PID_FILE=${MYSQL_GLOB_PID_FILE:-"/var/run/svc-started-${SVCNAME}"}
|
||||
local runwhat pidfile shutdown_elem
|
||||
local PID cnt timeout
|
||||
local retstatus=0
|
||||
local shutdown_list="$(< "${MYSQL_GLOB_PID_FILE}" )"
|
||||
|
||||
# shutdown in reverse order
|
||||
ebegin
|
||||
for shutdown_elem in $shutdown_list; do
|
||||
runwhat=${shutdown_elem%%=*}
|
||||
pidfile=${shutdown_elem#*=}
|
||||
timeout=${STOPTIMEOUT:-"10"}
|
||||
|
||||
einfo "Stopping mysqlmanager (${runwhat})"
|
||||
|
||||
PID=$(cat "${pidfile}" 2>/dev/null)
|
||||
start-stop-daemon --stop --quiet --pidfile="${pidfile}"
|
||||
[[ ${DEBUG} -ge 1 ]] && echo ""
|
||||
while [[ -n "$PID" && $( kill -0 $PID 2>/dev/null ) && "${timeout}" -ge 1 ]] ; do
|
||||
timeout=$(($timeout - 1))
|
||||
[[ ${DEBUG} -ge 1 ]] && echo -n $(( $STOPTIMEOUT - $timeout ))
|
||||
sleep 1
|
||||
done
|
||||
if [[ "${timeout}" -lt 1 ]] ; then
|
||||
retstatus=$(( $retstatus + 1 ))
|
||||
fi
|
||||
done
|
||||
|
||||
[[ "$retstatus" -eq 0 ]] && rm -f "$MYSQL_GLOB_PID_FILE"
|
||||
eend $retstatus
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-1.2.ebuild,v 1.5 2014/08/10 20:01:21 slyfox Exp $
|
||||
|
||||
DESCRIPTION="Gentoo MySQL init scripts"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_install() {
|
||||
newconfd "${FILESDIR}/mysql.conf.d" "mysql"
|
||||
newconfd "${FILESDIR}/mysqlmanager.conf.d" "mysqlmanager"
|
||||
|
||||
newinitd "${FILESDIR}/mysql.rc6" "mysql"
|
||||
newinitd "${FILESDIR}/mysqlmanager.rc6" "mysqlmanager"
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/logrotate.mysql" "mysql"
|
||||
}
|
@ -0,0 +1,242 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r8.ebuild,v 1.1 2014/08/20 15:33:50 eras Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils flag-o-matic multilib multilib-minimal autotools pam java-pkg-opt-2 db-use systemd
|
||||
|
||||
SASLAUTHD_CONF_VER="2.1.26"
|
||||
|
||||
DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)"
|
||||
HOMEPAGE="http://cyrusimap.web.cmu.edu/"
|
||||
SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-with-attribution"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres sample sqlite
|
||||
srp ssl static-libs urandom"
|
||||
|
||||
DEPEND="net-mail/mailbase
|
||||
authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) )
|
||||
berkdb? ( >=sys-libs/db-4.8.30-r1[${MULTILIB_USEDEP}] )
|
||||
gdbm? ( >=sys-libs/gdbm-1.10-r1[${MULTILIB_USEDEP}] )
|
||||
kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
|
||||
openldap? ( >=net-nds/openldap-2.4.38-r1[${MULTILIB_USEDEP}] )
|
||||
mysql? ( virtual/mysql )
|
||||
pam? ( >=virtual/pam-0-r1[${MULTILIB_USEDEP}] )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
sqlite? ( >=dev-db/sqlite-3.8.2:3[${MULTILIB_USEDEP}] )
|
||||
ssl? ( >=dev-libs/openssl-1.0.1h-r2[${MULTILIB_USEDEP}] )
|
||||
java? ( >=virtual/jdk-1.4 )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=(
|
||||
/usr/include/sasl/md5global.h
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-sasldb_al.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-saslauthd_libtool.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-avoid_pic_overwrite.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-autotools_fixes.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-as_needed.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-missing_header.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-fix_heimdal.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-auxprop.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.23-gss_c_nt_hostbased_service.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.25-service_keytabs.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.26-missing-size_t.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.26-CVE-2013-4122.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.26-send-imap-logout.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.26-canonuser-ldapdb-garbage-in-out-buffer.patch
|
||||
epatch "${FILESDIR}"/${PN}-2.1.26-fix_dovecot_authentication.patch
|
||||
|
||||
# Get rid of the -R switch (runpath_switch for Sun)
|
||||
# >=gcc-4.6 errors out with unknown option
|
||||
sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \
|
||||
configure.in || die
|
||||
|
||||
# Use plugindir for sasldir
|
||||
sed -i '/^sasldir =/s:=.*:= $(plugindir):' \
|
||||
"${S}"/plugins/Makefile.{am,in} || die "sed failed"
|
||||
|
||||
# #486740 #468556
|
||||
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \
|
||||
-e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' \
|
||||
configure.in || die
|
||||
sed -i -e 's:AC_CONFIG_MACRO_DIR:AC_CONFIG_MACRO_DIRS:g' \
|
||||
saslauthd/configure.in || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Java support.
|
||||
multilib_is_native_abi && use java && export JAVAC="${JAVAC} ${JAVACFLAGS}"
|
||||
|
||||
local myconf=()
|
||||
|
||||
# Add authdaemond support (bug #56523).
|
||||
if use authdaemond ; then
|
||||
myconf+=( --with-authdaemond=/var/lib/courier/authdaemon/socket )
|
||||
fi
|
||||
|
||||
# Fix for bug #59634.
|
||||
if ! use ssl ; then
|
||||
myconf+=( --without-des )
|
||||
fi
|
||||
|
||||
if use sqlite || { multilib_is_native_abi && { use mysql || use postgres; }; } ; then
|
||||
myconf+=( --enable-sql )
|
||||
else
|
||||
myconf+=( --disable-sql )
|
||||
fi
|
||||
|
||||
# Default to GDBM if both 'gdbm' and 'berkdb' are present.
|
||||
if use gdbm ; then
|
||||
einfo "Building with GNU DB as database backend for your SASLdb"
|
||||
myconf+=( --with-dblib=gdbm )
|
||||
elif use berkdb ; then
|
||||
einfo "Building with BerkeleyDB as database backend for your SASLdb"
|
||||
myconf+=(
|
||||
--with-dblib=berkeley
|
||||
--with-bdb-incdir="$(db_includedir)"
|
||||
)
|
||||
else
|
||||
einfo "Building without SASLdb support"
|
||||
myconf+=( --with-dblib=none )
|
||||
fi
|
||||
|
||||
# Use /dev/urandom instead of /dev/random (bug #46038).
|
||||
if use urandom ; then
|
||||
myconf+=( --with-devrandom=/dev/urandom )
|
||||
fi
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--enable-login \
|
||||
--enable-ntlm \
|
||||
--enable-auth-sasldb \
|
||||
--disable-cmulocal \
|
||||
--disable-krb4 \
|
||||
--enable-otp \
|
||||
--without-sqlite \
|
||||
--with-saslauthd=/run/saslauthd \
|
||||
--with-pwcheck=/run/saslauthd \
|
||||
--with-configdir=/etc/sasl2 \
|
||||
--with-plugindir=/usr/$(get_libdir)/sasl2 \
|
||||
--with-dbpath=/etc/sasl2/sasldb2 \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with pam) \
|
||||
$(use_with openldap ldap) \
|
||||
$(use_enable ldapdb) \
|
||||
$(multilib_native_use_enable sample) \
|
||||
$(use_enable kerberos gssapi) \
|
||||
$(multilib_native_use_enable java) \
|
||||
$(multilib_native_use_with java javahome ${JAVA_HOME}) \
|
||||
$(multilib_native_use_with mysql mysql /usr) \
|
||||
$(multilib_native_use_with postgres pgsql) \
|
||||
$(use_with sqlite sqlite3 /usr/$(get_libdir)) \
|
||||
$(use_enable srp) \
|
||||
$(use_enable static-libs static) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
# Default location for java classes breaks OpenOffice (bug #60769).
|
||||
# Thanks to axxo@gentoo.org for the solution.
|
||||
if multilib_is_native_abi && use java ; then
|
||||
jar -cvf ${PN}.jar -C java $(find java -name "*.class")
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
if use sample ; then
|
||||
docinto sample
|
||||
dodoc "${S}"/sample/*.c
|
||||
exeinto /usr/share/doc/${P}/sample
|
||||
doexe sample/client sample/server
|
||||
fi
|
||||
|
||||
# Default location for java classes breaks OpenOffice (bug #60769).
|
||||
if use java ; then
|
||||
java-pkg_dojar ${PN}.jar
|
||||
java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so"
|
||||
# hackish, don't wanna dig through makefile
|
||||
rm -Rf "${D}/usr/$(get_libdir)/java"
|
||||
docinto "java"
|
||||
dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/*
|
||||
dodir "/usr/share/doc/${PF}/java/Test"
|
||||
insinto "/usr/share/doc/${PF}/java/Test"
|
||||
doins "${S}"/java/Test/*.java
|
||||
fi
|
||||
|
||||
dosbin saslauthd/testsaslauthd
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
keepdir /etc/sasl2
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt
|
||||
newdoc pwcheck/README README.pwcheck
|
||||
dohtml doc/*.html
|
||||
|
||||
docinto "saslauthd"
|
||||
dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README}
|
||||
|
||||
newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd
|
||||
|
||||
newinitd "${FILESDIR}/pwcheck.rc6" pwcheck
|
||||
systemd_dounit "${FILESDIR}/pwcheck.service"
|
||||
|
||||
newinitd "${FILESDIR}/saslauthd2.rc7" saslauthd
|
||||
newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd
|
||||
systemd_dounit "${FILESDIR}/saslauthd.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/${PN}.conf"
|
||||
|
||||
prune_libtool_files --modules
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
# Generate an empty sasldb2 with correct permissions.
|
||||
if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then
|
||||
einfo "Generating an empty sasldb2 with correct permissions ..."
|
||||
echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \
|
||||
|| die "Failed to generate sasldb2"
|
||||
"${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \
|
||||
|| die "Failed to delete temp user"
|
||||
chown root:mail "${ROOT}/etc/sasl2/sasldb2" \
|
||||
|| die "Failed to chown ${ROOT}/etc/sasl2/sasldb2"
|
||||
chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \
|
||||
|| die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2"
|
||||
fi
|
||||
|
||||
if use authdaemond ; then
|
||||
elog "You need to add a user running a service using Courier's"
|
||||
elog "authdaemon to the 'mail' group. For example, do:"
|
||||
elog " gpasswd -a postfix mail"
|
||||
elog "to add the 'postfix' user to the 'mail' group."
|
||||
fi
|
||||
|
||||
elog "pwcheck and saslauthd home directories have moved to:"
|
||||
elog " /run/saslauthd, using tmpfiles.d"
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Class-Accessor/Class-Accessor-0.340.0.ebuild,v 1.9 2012/09/01 11:15:57 grobian Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Class-Accessor/Class-Accessor-0.340.0-r1.ebuild,v 1.1 2014/08/20 18:05:01 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=KASEI
|
||||
MODULE_VERSION=0.34
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-Pg/DBD-Pg-2.19.3.ebuild,v 1.10 2012/12/27 08:42:22 armin76 Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-Pg/DBD-Pg-2.19.3-r1.ebuild,v 1.1 2014/08/20 21:30:38 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=TURNSTEP
|
||||
MODULE_VERSION=2.19.3
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.350.0.ebuild,v 1.11 2014/01/20 23:09:50 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.350.0-r1.ebuild,v 1.1 2014/08/20 21:34:11 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=1.35
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.370.0.ebuild,v 1.4 2014/01/20 23:09:50 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.370.0-r1.ebuild,v 1.1 2014/08/20 21:34:11 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=1.37
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.400.0.ebuild,v 1.4 2014/03/13 19:58:26 ottxor Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-SQLite/DBD-SQLite-1.400.0-r1.ebuild,v 1.1 2014/08/20 21:34:11 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ISHIGAKI
|
||||
MODULE_VERSION=1.40
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.20.0.ebuild,v 1.11 2013/09/05 05:49:04 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/DBD-mysql/DBD-mysql-4.20.0-r1.ebuild,v 1.1 2014/08/20 20:27:28 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=CAPTTOFU
|
||||
MODULE_VERSION=4.020
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Digest-SHA1/Digest-SHA1-2.130.0.ebuild,v 1.10 2014/07/22 19:39:08 dilfridge Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Digest-SHA1/Digest-SHA1-2.130.0-r1.ebuild,v 1.1 2014/08/20 17:30:47 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=GAAS
|
||||
MODULE_VERSION=2.13
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Finance-Quote/Finance-Quote-1.350.0.ebuild,v 1.1 2014/08/20 17:30:14 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ECOCODE
|
||||
MODULE_VERSION=1.35
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Get stock and mutual fund quotes from various exchanges"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
# virtual/perl-Data-Dumper currently commented out in the code
|
||||
# dev-perl/Perl-Critic-Dynamic is missing for USE="test" wrt #520340
|
||||
RDEPEND="dev-perl/Crypt-SSLeay
|
||||
dev-perl/Date-Calc
|
||||
dev-perl/HTTP-Cookies
|
||||
dev-perl/HTTP-Message
|
||||
dev-perl/HTML-Tree
|
||||
dev-perl/HTML-TableExtract
|
||||
dev-perl/JSON
|
||||
dev-perl/Mozilla-CA
|
||||
dev-perl/libwww-perl"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-perl/Test-Pod )"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,2 +1,3 @@
|
||||
DIST Finance-Quote-1.18.tar.gz 147575 SHA256 4240faabe0646defd4ec76ca9e111977b9e8060eaec41adeb284eb422a428393 SHA512 7b5c910d7f424e9ab2b102dd1f7db20077e646512345f703b1ead235359d49d07a2a001aec9339cec35f7ab67c76bc8bfa572f2a5386878074c52ac952d39290 WHIRLPOOL 344407a5fa66068f6769147dfad2428d201c364588be6b5603ca3c61a78f8d3799899f39bb7edfdb8b7c506293eabd41985d3b7170f4f7afbce5d66eed00283f
|
||||
DIST Finance-Quote-1.29.tar.gz 252210 SHA256 0e7098ac5ca38bb2d0a801e8e08d94cbbd86d91eddb9d16a1498c3d523e4a867 SHA512 7d39cf3eee3f44a52c39181fe7353fb98818a8ba5c19a49dc5728aaac53b6285d2829119cfcc80cbc33324e166d38c0b6b3d00639993d2bf8a92ae84d2f62f8c WHIRLPOOL 746d46e58b1e25c9d017388b7835e828078cab876e916c0e6375be22bc86b747a3d00621e49ad931ffa548be7b368c561186017e4a22bc73fc9d6cb61ee6030e
|
||||
DIST Finance-Quote-1.35.tar.gz 254658 SHA256 3c0d22f18a65da2536b03d5dcbac178faaea8de71908ee0e2772b2664384ae57 SHA512 bf04da96dcf66a4789eb6ca76fa7b2c7ff5ec618e9ac69885c6c9eca6c1ef524c45adb4833c12b9fd7fa29c4ebc44f5a94d7733c3b49ff97cb14930c55ee563a WHIRLPOOL 1f6d67f0c7f789fadfe39330363e9487baa0cdfc4dca79e652373a347ae4df309546364bfe06ddb3cb515a9da780a76a6d2640afde17dc366b39a9683450ffce
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Parser/HTML-Parser-3.710.0.ebuild,v 1.11 2014/02/22 15:54:00 zlogene Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Parser/HTML-Parser-3.710.0-r1.ebuild,v 1.1 2014/08/20 18:13:27 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=GAAS
|
||||
MODULE_VERSION=3.71
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Tagset/HTML-Tagset-3.200.0.ebuild,v 1.5 2014/01/20 23:25:36 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/HTML-Tagset/HTML-Tagset-3.200.0-r1.ebuild,v 1.1 2014/08/20 18:13:26 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=PETDANCE
|
||||
MODULE_VERSION=3.20
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/MP3-Info/MP3-Info-1.240.0.ebuild,v 1.3 2014/05/07 08:02:02 zlogene Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/MP3-Info/MP3-Info-1.240.0-r1.ebuild,v 1.1 2014/08/20 17:27:48 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=DANIEL
|
||||
MODULE_VERSION=1.24
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sub-Name/Sub-Name-0.50.0.ebuild,v 1.14 2014/02/23 14:53:17 naota Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sub-Name/Sub-Name-0.50.0-r1.ebuild,v 1.1 2014/08/20 18:04:27 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=FLORA
|
||||
MODULE_VERSION=0.05
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sub-Uplevel/Sub-Uplevel-0.240.0.ebuild,v 1.10 2014/02/01 23:34:58 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Sub-Uplevel/Sub-Uplevel-0.240.0-r1.ebuild,v 1.1 2014/08/20 17:56:19 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=DAGOLDEN
|
||||
MODULE_VERSION=0.24
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Deep/Test-Deep-0.110.0.ebuild,v 1.9 2014/02/01 23:46:21 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Deep/Test-Deep-0.110.0-r1.ebuild,v 1.1 2014/08/20 21:36:26 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=RJBS
|
||||
MODULE_VERSION=0.110
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Exception/Test-Exception-0.320.0.ebuild,v 1.11 2014/03/13 11:34:45 zlogene Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Exception/Test-Exception-0.320.0-r1.ebuild,v 1.1 2014/08/20 17:55:22 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ADIE
|
||||
MODULE_VERSION=0.32
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Fatal/Test-Fatal-0.10.0.ebuild,v 1.12 2014/02/01 23:53:09 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Fatal/Test-Fatal-0.10.0-r1.ebuild,v 1.1 2014/08/20 18:00:47 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=RJBS
|
||||
MODULE_VERSION=0.010
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-NoWarnings/Test-NoWarnings-1.40.0.ebuild,v 1.12 2014/02/01 23:45:11 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-NoWarnings/Test-NoWarnings-1.40.0-r1.ebuild,v 1.1 2014/08/20 20:11:10 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=ADAMK
|
||||
MODULE_VERSION=1.04
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Requires/Test-Requires-0.60.0.ebuild,v 1.17 2014/02/01 23:52:57 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Requires/Test-Requires-0.60.0-r1.ebuild,v 1.1 2014/08/20 18:08:04 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=TOKUHIROM
|
||||
MODULE_VERSION=0.06
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Tester/Test-Tester-0.108.0.ebuild,v 1.10 2014/02/01 23:40:55 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Tester/Test-Tester-0.108.0-r1.ebuild,v 1.1 2014/08/20 20:08:35 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=FDALY
|
||||
MODULE_VERSION=0.108
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Tester/Test-Tester-0.109.0.ebuild,v 1.2 2014/02/01 23:40:55 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Tester/Test-Tester-0.109.0-r1.ebuild,v 1.1 2014/08/20 20:08:35 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=FDALY
|
||||
MODULE_VERSION=0.109
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Warn/Test-Warn-0.240.0.ebuild,v 1.13 2014/06/09 23:42:52 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Test-Warn/Test-Warn-0.240.0-r1.ebuild,v 1.1 2014/08/20 18:17:00 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=CHORNY
|
||||
MODULE_VERSION=0.24
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Unicode-String/Unicode-String-2.90.0.ebuild,v 1.3 2012/12/05 11:35:28 grobian Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Unicode-String/Unicode-String-2.90.0-r1.ebuild,v 1.1 2014/08/20 17:28:52 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=GAAS
|
||||
MODULE_VERSION=2.09
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-LibXML/XML-LibXML-2.1.400.ebuild,v 1.11 2014/03/16 12:53:19 zlogene Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-LibXML/XML-LibXML-2.1.400-r1.ebuild,v 1.1 2014/08/20 19:47:33 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=SHLOMIF
|
||||
MODULE_VERSION=2.0014
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-NamespaceSupport/XML-NamespaceSupport-1.110.0.ebuild,v 1.4 2013/02/25 21:07:02 zmedico Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-NamespaceSupport/XML-NamespaceSupport-1.110.0-r1.ebuild,v 1.1 2014/08/20 18:47:04 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=PERIGRIN
|
||||
MODULE_VERSION=1.11
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX-Base/XML-SAX-Base-1.80.0-r1.ebuild,v 1.1 2014/08/20 18:26:50 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=GRANTM
|
||||
MODULE_VERSION=1.08
|
||||
inherit perl-module eutils
|
||||
|
||||
DESCRIPTION="Base class SAX Drivers and Filters"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
!<dev-perl/XML-SAX-0.990.0
|
||||
"
|
||||
SRC_TEST="do"
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-Simple/XML-Simple-2.200.0.ebuild,v 1.11 2013/09/05 05:41:47 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-Simple/XML-Simple-2.200.0-r1.ebuild,v 1.1 2014/08/20 17:31:36 axs Exp $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=GRANTM
|
||||
MODULE_VERSION=2.20
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/colander/colander-1.0_beta1.ebuild,v 1.1 2014/08/21 01:30:14 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A simple schema-based serialization and deserialization library"
|
||||
HOMEPAGE="http://docs.pylonsproject.org/projects/colander/en/latest/ http://pypi.python.org/pypi/colander"
|
||||
MY_P=${P/_beta1/b1}
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# MIT license is used by included (modified) iso8601.py code.
|
||||
LICENSE="repoze MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
# Depend on an ebuild of translationstring with Python 3 support.
|
||||
RDEPEND=">=dev-python/translationstring-1.1[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
# Include COPYRIGHT.txt because the license seems to require it.
|
||||
DOCS=( CHANGES.txt COPYRIGHT.txt README.txt )
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove pylons theme since it's not included in source
|
||||
sed -e "/# Add and use Pylons theme/,+37d" -i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
# https://github.com/Pylons/colander/issues/38
|
||||
emake -C docs html SPHINXOPTS=""
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
nosetests || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue