forked from hasufell/hasufell-repository
Compare commits
9 Commits
e5cbf72188
...
030cded86b
Author | SHA1 | Date | |
---|---|---|---|
030cded86b | |||
a306d51436 | |||
2d84fe8011 | |||
40c8a8202b | |||
50afe48396 | |||
9d3cb8246b | |||
0a9e434c93 | |||
182a3f02c6 | |||
a7ff9bb7a0 |
@ -1,6 +1,5 @@
|
||||
(
|
||||
app-editors/neovim-gtk[~scm]
|
||||
dev-haskell/ghcup[~scm]
|
||||
dev-lang/fsharp[~scm]
|
||||
dev-lang/fstar[~scm]
|
||||
dev-python/pytype[~scm]
|
||||
|
@ -20,7 +20,7 @@ DEPENDENCIES="
|
||||
build:
|
||||
dev-libs/boost
|
||||
build+run:
|
||||
virtual/mysql
|
||||
dev-db/mysql
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
||||
"
|
@ -26,6 +26,7 @@ DEPENDENCIES="
|
||||
dev-cpp/ctemplate
|
||||
dev-cpp/libsigc++:2
|
||||
dev-db/libiodbc
|
||||
dev-db/mysql
|
||||
dev-db/mysql-connector-c++[>=${PV}]
|
||||
dev-db/vsqlite++
|
||||
dev-java/antlr:4
|
||||
@ -47,7 +48,6 @@ DEPENDENCIES="
|
||||
gnome-platform/libglade:2
|
||||
net-libs/libssh
|
||||
sci-libs/gdal
|
||||
virtual/mysql
|
||||
x11-dri/mesa
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2.0
|
15
packages/dev-db/mysql/files/logrotate.mysql
Normal file
15
packages/dev-db/mysql/files/logrotate.mysql
Normal file
@ -0,0 +1,15 @@
|
||||
# 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/logrotate.mysql,v 1.1 2007/01/12 16:54:20 chtekk Exp $
|
||||
|
||||
/var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err {
|
||||
monthly
|
||||
create 660 mysql mysql
|
||||
notifempty
|
||||
size 5M
|
||||
sharedscripts
|
||||
missingok
|
||||
postrotate
|
||||
/usr/bin/kill -HUP `cat /run/mysqld/mysqld.pid`
|
||||
endscript
|
||||
}
|
28
packages/dev-db/mysql/files/mysql-5.7-my.cnf
Normal file
28
packages/dev-db/mysql/files/mysql-5.7-my.cnf
Normal file
@ -0,0 +1,28 @@
|
||||
# For advice on how to change settings please see
|
||||
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
||||
|
||||
[mysqld]
|
||||
|
||||
# Remove leading # and set to the amount of RAM for the most important data
|
||||
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
||||
# innodb_buffer_pool_size = 128M
|
||||
|
||||
# Remove leading # to turn on a very important data integrity option: logging
|
||||
# changes to the binary log between backups.
|
||||
# log_bin
|
||||
|
||||
# These are commonly set, remove the # and set as required.
|
||||
# basedir = .....
|
||||
# datadir = .....
|
||||
# port = .....
|
||||
# server_id = .....
|
||||
# socket = .....
|
||||
|
||||
# Remove leading # to set options mainly useful for reporting servers.
|
||||
# The server defaults are faster for transactions and fast SELECTs.
|
||||
# Adjust sizes as needed, experiment to find the optimal values.
|
||||
# join_buffer_size = 128M
|
||||
# sort_buffer_size = 2M
|
||||
# read_rnd_buffer_size = 2M
|
||||
|
||||
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
@ -0,0 +1,79 @@
|
||||
--- a/cmake/ssl.cmake
|
||||
+++ b/cmake/ssl.cmake
|
||||
@@ -186,7 +186,8 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
OPENSSL_FIX_VERSION "${OPENSSL_VERSION_NUMBER}"
|
||||
)
|
||||
ENDIF()
|
||||
- IF("${OPENSSL_MAJOR_VERSION}.${OPENSSL_MINOR_VERSION}.${OPENSSL_FIX_VERSION}" VERSION_GREATER "1.1.0")
|
||||
+ CHECK_SYMBOL_EXISTS(TLS1_3_VERSION "openssl/tls1.h" HAVE_TLS1_3_VERSION)
|
||||
+ IF(HAVE_TLS1_3_VERSION)
|
||||
ADD_DEFINITIONS(-DHAVE_TLSv13)
|
||||
SET(HAVE_TLSv13 1)
|
||||
IF(SOLARIS)
|
||||
@@ -196,7 +197,7 @@ MACRO (MYSQL_CHECK_SSL)
|
||||
IF(OPENSSL_INCLUDE_DIR AND
|
||||
OPENSSL_LIBRARY AND
|
||||
CRYPTO_LIBRARY AND
|
||||
- OPENSSL_MAJOR_VERSION STREQUAL "1"
|
||||
+ OPENSSL_MAJOR_VERSION VERSION_GREATER_EQUAL "1"
|
||||
)
|
||||
SET(OPENSSL_FOUND TRUE)
|
||||
ELSE()
|
||||
--- a/sql/auth/sha2_password_common.cc
|
||||
+++ b/sql/auth/sha2_password_common.cc
|
||||
@@ -116,7 +116,8 @@ bool SHA256_digest::retrieve_digest(unsigned char *digest,
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
m_ok= EVP_DigestFinal_ex(md_context, m_digest, NULL);
|
||||
-#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if defined(HAVE_WOLFSSL) || OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x02090000fL)
|
||||
EVP_MD_CTX_cleanup(md_context);
|
||||
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
EVP_MD_CTX_reset(md_context);
|
||||
--- a/sql/mysqld.cc
|
||||
+++ b/sql/mysqld.cc
|
||||
@@ -3419,7 +3419,7 @@ int warn_self_signed_ca()
|
||||
static int init_ssl()
|
||||
{
|
||||
#ifdef HAVE_OPENSSL
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
CRYPTO_malloc_init();
|
||||
#else /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
OPENSSL_malloc_init();
|
||||
--- a/vio/viosslfactories.c
|
||||
+++ b/vio/viosslfactories.c
|
||||
@@ -123,21 +123,19 @@ static DH *get_dh2048(void)
|
||||
DH *dh;
|
||||
if ((dh=DH_new()))
|
||||
{
|
||||
- BIGNUM *p= BN_bin2bn(dh2048_p, sizeof(dh2048_p), NULL);
|
||||
- BIGNUM *g= BN_bin2bn(dh2048_g, sizeof(dh2048_g), NULL);
|
||||
- if (!p || !g
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
- || !DH_set0_pqg(dh, p, NULL, g)
|
||||
-#endif /* OPENSSL_VERSION_NUMBER >= 0x10100000L */
|
||||
- ) {
|
||||
- /* DH_free() will free 'p' and 'g' at once. */
|
||||
+ BIGNUM *p = BN_bin2bn(dh2048_p,sizeof(dh2048_p), NULL);
|
||||
+ BIGNUM *g = BN_bin2bn(dh2048_g,sizeof(dh2048_g), NULL);
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+ dh->p=p;
|
||||
+ dh->g=g;
|
||||
+ if (! dh->p || ! dh->g)
|
||||
+#else
|
||||
+ if (!DH_set0_pqg(dh, p, NULL, g))
|
||||
+#endif
|
||||
+ {
|
||||
DH_free(dh);
|
||||
- return NULL;
|
||||
+ dh = NULL;
|
||||
}
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
- dh->p= p;
|
||||
- dh->g= g;
|
||||
-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
|
||||
}
|
||||
return(dh);
|
||||
}
|
296
packages/dev-db/mysql/mysql-5.7.29.exheres-0
Normal file
296
packages/dev-db/mysql/mysql-5.7.29.exheres-0
Normal file
@ -0,0 +1,296 @@
|
||||
# Copyright 2008, 2009, 2010 Ingmar Vanhassel <ingmar@exherbo.org>
|
||||
# Copyright 2011-2019 Timo Gurr <tgurr@exherbo.org>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require cmake systemd-service
|
||||
|
||||
MYSQL_MAJOR_VERSION=$(ever range 1-2)
|
||||
|
||||
# In order to provide a stable code base, MySQL depends on a specific version of Boost.
|
||||
# Currently only Boost.Geometry headers are used and boost is just required at build time.
|
||||
BOOST_PV=1.59.0
|
||||
|
||||
# Miraculously works for MySQL >= 5.1 till at least 5.6
|
||||
SPHINX_PV="2.2.9"
|
||||
|
||||
SUMMARY="A relational database management system (RDBMS)"
|
||||
HOMEPAGE="https://www.mysql.com/"
|
||||
DOWNLOADS="
|
||||
mirror://mysql/Downloads/MySQL-$(ever range 1-2)/${PNV}.tar.gz
|
||||
mirror://sourceforge/boost/boost_${BOOST_PV//./_}.tar.bz2
|
||||
https://downloads.mysql.com/archives/${PN}-$(ever range 1-2)/${PNV}.tar.gz
|
||||
sphinx? ( http://sphinxsearch.com/files/sphinx-${SPHINX_PV}-release.tar.gz )
|
||||
"
|
||||
|
||||
REMOTE_IDS="freecode:${PN}"
|
||||
UPSTREAM_CHANGELOG="
|
||||
https://dev.mysql.com/doc/relnotes/mysql/${MYSQL_MAJOR_VERSION}/en/news-$(ever replace_all '-').html [[ lang = [ en ] ]]
|
||||
"
|
||||
UPSTREAM_DOCUMENTATION="
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/index.html [[ lang = [ en ] ]]
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/postinstallation.html [[ lang = [ en ] note = [ Postinstallation documentation ] ]]
|
||||
https://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/upgrading-downgrading.html [[ lang = [ en ] note = [ Upgrading or downgrading documentation ] ]]
|
||||
"
|
||||
UPSTREAM_RELEASE_NOTES="
|
||||
https://dev.mysql.com/doc/relnotes/mysql/${MYSQL_MAJOR_VERSION}/en/ [[ lang = [ en ] ]]
|
||||
"
|
||||
|
||||
LICENCES="GPL-2" # with-exceptions
|
||||
SLOT="0"
|
||||
MYOPTIONS="
|
||||
debug
|
||||
embedded-server [[ description = [ The embedded MySQL server library (DEPRECATED and slated for removal) ] ]]
|
||||
memcached [[ description = [ Enable using memcached for InnoDb tables (don't know it? Don't enable it.) ] ]]
|
||||
sphinx [[ description = [ Add the Sphinx Search Engine with fulltext search support (external engine) ] ]]
|
||||
systemd
|
||||
tcpd
|
||||
( providers: libressl openssl ) [[ number-selected = exactly-one ]]
|
||||
"
|
||||
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
build:
|
||||
virtual/pkg-config
|
||||
systemd? ( sys-apps/systemd )
|
||||
build+run:
|
||||
group/${PN}
|
||||
user/${PN}
|
||||
app-admin/eclectic[>=2.0.18] [[ note = [ Split ld-*.path, @TARGET@ substitution ] ]]
|
||||
app-arch/lz4
|
||||
dev-libs/libaio
|
||||
dev-libs/libedit
|
||||
dev-libs/protobuf:=[>=2.6.1]
|
||||
sys-libs/zlib[>=1.2.11]
|
||||
providers:libressl? ( dev-libs/libressl:= )
|
||||
providers:openssl? ( dev-libs/openssl )
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
!dev-db/mariadb [[
|
||||
description = [ MariaDB is a drop-in replacement for MySQL with same binary names ]
|
||||
resolution = manual
|
||||
]]
|
||||
!dev-db/Percona-Server [[
|
||||
description = [ Percona-Server is a drop-in replacement for MySQL with same binary names ]
|
||||
resolution = manual
|
||||
]]
|
||||
recommendation:
|
||||
memcached? ( net/memcached [[ description = [ The option provides the bundled memcached but you might want to use a stand-alone memcached as well ] ]] )
|
||||
suggestion:
|
||||
app-admin/logrotate [[ description = [ Use logrotate for rotating logs ] ]]
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/mysql-5.7.29-fix-libressl-support.patch
|
||||
)
|
||||
|
||||
# event_comment
|
||||
# >= 5.6 needs libevent[>=1.4.12&<2.0] but
|
||||
# a) we only have 2.0.22 at the time of writing
|
||||
# b) lots of other stuff needs >=2.0
|
||||
#
|
||||
# Options:
|
||||
#
|
||||
# 1. Add libevent 1.4.x, imlement the dep as [>=1.4.12&<2.0] and watch the fun
|
||||
# 2. Us the bundled libevent for MySQL to ensure it's always the right version.
|
||||
# 3. Add libevent 1.4.x as SLOT=1.4, slot 2.0.x as SLOT=2.0, dep on the 1.4 slot here.
|
||||
#
|
||||
# I prefer 3., of course, but I went with 2. for now to be on the safe side.
|
||||
#
|
||||
# dev-libs/libevent[>=1.4.12]
|
||||
|
||||
pkg_pretend() {
|
||||
# Sanity check when upgrading to a different x.y version of mysql
|
||||
if [[ -z ${MYSQL_MAJOR_UPGRADE} ]] && has_version ${CATEGORY}/${PN} && \
|
||||
! has_version ${CATEGORY}/${PN}[=${MYSQL_MAJOR_VERSION}*] ; then
|
||||
ewarn "To install a different major version of MySQL, you have to dump/reload your database."
|
||||
ewarn "When you've done this, please set 'MYSQL_MAJOR_UPGRADE=YesPlease', to continue the upgrade."
|
||||
ewarn "For more information visit:"
|
||||
ewarn "http://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/upgrading.html"
|
||||
ewarn "http://dev.mysql.com/doc/refman/${MYSQL_MAJOR_VERSION}/en/downgrading.html"
|
||||
die "Dump your databases before doing a major version upgrade of MySQL."
|
||||
fi
|
||||
|
||||
if [[ -f "${ROOT}"/etc/tmpfiles.d/${PN}.conf ]] ; then
|
||||
ewarn "The configuration file /etc/tmpfiles.d/${PN}.conf has been moved to"
|
||||
ewarn "/usr/$(exhost --target)/lib/tmpfiles.d/${PN}.conf and can be safely removed after upgrade"
|
||||
ewarn "if you did not make any changes to it."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# https://bugs.mysql.com/bug.php?id=72353 (only relevant when using system libevent)
|
||||
edo sed \
|
||||
-e "s:\(LIBEVENT_LIBRAR\)IES:\1Y:" \
|
||||
-i "${WORKBASE}"/${PNV}/cmake/libevent.cmake
|
||||
|
||||
# don't link statically against crypto libs
|
||||
edo sed \
|
||||
-e '/REVERSE CMAKE_FIND_LIBRARY_SUFFIXES/d' \
|
||||
-i "${CMAKE_SOURCE}"/cmake/ssl.cmake
|
||||
|
||||
# disable the automagic LDAP SASL Authentication Plugin (client-side)
|
||||
# if added it requires cyrus-sasl -DWITH_SASL:STRING=system and openldap and -DWITH_AUTHENTICATION_LDAP:BOOL=TRUE
|
||||
edo sed \
|
||||
-e '/ADD_SUBDIRECTORY(authentication_ldap)/d' \
|
||||
-i "${CMAKE_SOURCE}"/libmysql/CMakeLists.txt
|
||||
edo rm -rf "${WORKBASE}"/${PNV}/libmysql/authentication_ldap
|
||||
|
||||
option sphinx && edo ln -s "${WORKBASE}"/sphinx-${SPHINX_PV}-release/mysqlse "${WORKBASE}"/${PNV}/storage/sphinx
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local cmakeargs=(
|
||||
-DBOOST_INCLUDE_DIR:PATH="${WORKBASE}"/boost_${BOOST_PV//./_}
|
||||
-DBUILD_CONFIG:STRING=mysql_release
|
||||
# The default layout STANDALONE breaks all the scripts.
|
||||
-DINSTALL_LAYOUT:STRING="RPM"
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=TRUE
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=/usr
|
||||
-DCOMPILATION_COMMENT:STRING="Exherbo"
|
||||
-DDEFAULT_CHARSET:STRING=utf8
|
||||
-DDEFAULT_COLLATION:STRING=utf8_general_ci
|
||||
-DFEATURE_SET:STRING=community
|
||||
-DINSTALL_BINDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_DOCDIR:PATH=share/doc/${PNVR}
|
||||
-DINSTALL_DOCREADMEDIR:PATH=share/doc/${PNVR}
|
||||
-DINSTALL_INCLUDEDIR:PATH=$(exhost --target)/include/mysql
|
||||
-DINSTALL_INFODIR:PATH=share/mysql/info
|
||||
-DINSTALL_LIBDIR:PATH=$(exhost --target)/lib/mysql
|
||||
-DINSTALL_MANDIR:PATH=share/man
|
||||
-DINSTALL_MYSQLSHAREDIR:PATH=share/mysql
|
||||
# Empty value to not install the mysql-test directory
|
||||
-DINSTALL_MYSQLTESTDIR:STRING=
|
||||
-DINSTALL_PLUGINDIR:PATH=$(exhost --target)/lib/mysql/plugin
|
||||
-DINSTALL_SBINDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_SCRIPTDIR:PATH=$(exhost --target)/bin
|
||||
-DINSTALL_SHAREDIR:PATH=share
|
||||
-DINSTALL_SUPPORTFILESDIR:PATH=share/mysql
|
||||
-DMYSQL_DATADIR:PATH=/var/lib/mysql
|
||||
-DMYSQL_UNIX_ADDR:PATH=/run/mysqld/mysqld.sock
|
||||
-DREPRODUCIBLE_BUILD:BOOL=FALSE
|
||||
-DSYSCONFDIR:PATH=/etc/mysql
|
||||
-DENABLE_DTRACE:BOOL=FALSE
|
||||
-DENABLE_GCOV:BOOL=FALSE
|
||||
-DENABLE_GPROF:BOOL=FALSE
|
||||
-DENABLED_LOCAL_INFILE:BOOL=TRUE
|
||||
-DENABLED_PROFILING:BOOL=TRUE
|
||||
-DWITH_ASAN:BOOL=FALSE
|
||||
-DWITH_ASAN_SCOPE:BOOL=FALSE
|
||||
-DWITH_BOOST:PATH="${WORKBASE}"/boost_${BOOST_PV//./_}
|
||||
-DWITH_CLIENT_PROTOCOL_TRACING:BOOL=FALSE
|
||||
# Curl is only used with yassl
|
||||
-DWITH_CURL:BOOL=FALSE
|
||||
-DWITH_EDITLINE:STRING=system
|
||||
-DWITH_EXTRA_CHARSETS:STRING=all
|
||||
# Search for event_comment in this exlib for the reason for using bundled
|
||||
-DWITH_LIBEVENT:STRING=bundled
|
||||
-DWITH_LZ4:STRING=system
|
||||
-DWITH_MSAN:BOOL=FALSE
|
||||
-DWITH_NUMA:BOOL=FALSE
|
||||
-DWITH_PROTOBUF:STRING=system
|
||||
-DWITH_RAPID:BOOL=FALSE
|
||||
-DWITH_SSL:STRING=/usr/$(exhost --target)
|
||||
-DWITH_TEST_TRACE_PLUGIN:BOOL=FALSE
|
||||
-DWITH_UBSAN:BOOL=FALSE
|
||||
-DWITH_UNIT_TESTS:BOOL=TRUE
|
||||
-DWITH_VALGRIND:BOOL=FALSE
|
||||
-DWITH_ZLIB:STRING=system
|
||||
# Default ENGINES for MySQL 5.6 community build (currently == xlarge) minus embedded
|
||||
-DWITH_ARCHIVE_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_BLACKHOLE_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_FEDERATED_STORAGE_ENGINE:BOOL=TRUE
|
||||
-DWITH_INNOBASE_STORAGE_ENGINE:BOOL=TRUE
|
||||
)
|
||||
|
||||
if option debug ; then
|
||||
cmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE:STRING=Debug
|
||||
)
|
||||
else
|
||||
cmakeargs+=(
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release
|
||||
)
|
||||
fi
|
||||
|
||||
if option memcached ; then
|
||||
cmakeargs+=(
|
||||
# Unfortunately, the InnoDb/memcached interface needs libevent 1.4.x
|
||||
# as bundled with MySQL or trying to use memcached WILL make MySQL
|
||||
# segfault immediately.
|
||||
# (Keeping this comment even though the bundled lib is used anyway in
|
||||
# order to remember *why* I changed it.)
|
||||
-DWITH_LIBEVENT:STRING=bundled
|
||||
-DWITH_INNODB_MEMCACHED:BOOL=TRUE
|
||||
)
|
||||
fi
|
||||
|
||||
if option sphinx ; then
|
||||
cmakeargs+=(
|
||||
-DWITH_SPHINX_STORAGE_ENGINE:BOOL=TRUE
|
||||
)
|
||||
fi
|
||||
|
||||
if option systemd ; then
|
||||
cmakeargs+=(
|
||||
-DWITH_SYSTEMD:BOOL=TRUE
|
||||
-DSYSTEMD_PID_DIR:PATH=/run/mysqld
|
||||
-DSYSTEMD_SERVICES_DIR:PATH=${SYSTEMDSYSTEMUNITDIR}
|
||||
-DSYSTEMD_TMPFILES_DIR:PATH=/usr/$(exhost --target)/lib/tmpfiles.d
|
||||
)
|
||||
else
|
||||
cmakeargs+=(
|
||||
-DWITH_SYSTEMD:BOOL=FALSE
|
||||
)
|
||||
fi
|
||||
|
||||
ecmake \
|
||||
"${cmakeargs[@]}" \
|
||||
$(cmake_with debug DEBUG)\
|
||||
$(cmake_with embedded-server EMBEDDED_SERVER)\
|
||||
$(cmake_with tcpd LIBWRAP)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# Remove empty directories
|
||||
edo rmdir "${IMAGE}"/usr/share/mysql/info
|
||||
! option debug && edo rmdir "${IMAGE}"/usr/$(exhost --target)/lib/mysql/plugin/debug
|
||||
|
||||
keepdir /etc/mysql
|
||||
|
||||
insinto /etc/mysql
|
||||
newins "${FILES}"/mysql-$(ever range 1-2)-my.cnf my.cnf
|
||||
|
||||
hereenvd 46mysql <<EOF
|
||||
LDPATH=/usr/@TARGET@/lib/mysql
|
||||
EOF
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILES}"/logrotate.mysql mysql
|
||||
|
||||
keepdir /var/lib/mysql-files
|
||||
edo chown mysql:mysql "${IMAGE}"/var/lib/mysql-files
|
||||
edo chmod 0750 "${IMAGE}"/var/lib/mysql-files
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if option sphinx ; then
|
||||
elog "In order to finalise your installation of the Sphinx Search Engine, you must install"
|
||||
elog "it in MySQL using the following command as an administrative user:"
|
||||
elog ""
|
||||
elog "mysql> INSTALL PLUGIN SPHINX SONAME 'ha_sphinx.so';"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
if option memcached ; then
|
||||
elog "In order to finalise your installation of the memcached plugin, you must install"
|
||||
elog "it in MySQL using the following command as an administrative user:"
|
||||
elog ""
|
||||
elog "mysql> install plugin daemon_memcached soname "libmemcached.so";"
|
||||
elog ""
|
||||
fi
|
||||
}
|
||||
|
33
packages/dev-haskell/ghcup/ghcup-0.1.5.exheres-0
Normal file
33
packages/dev-haskell/ghcup/ghcup-0.1.5.exheres-0
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 2020 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
SUMMARY="Painless installation of GHC toolchain"
|
||||
HOMEPAGE="https://www.haskell.org/ghcup/ https://gitlab.haskell.org/haskell/ghcup-hs"
|
||||
DOWNLOADS="
|
||||
platform:amd64? ( https://downloads.haskell.org/~ghcup/${PV}/x86_64-linux-ghcup-${PV} )
|
||||
platform:x86? ( https://downloads.haskell.org/~ghcup/${PV}/i386-linux-ghcup-${PV} )
|
||||
"
|
||||
|
||||
LICENCES="LGPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
platform: amd64 x86
|
||||
"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
net-misc/curl
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
WORK=${WORKBASE}
|
||||
|
||||
src_unpack() {
|
||||
edo mv "${FETCHEDDIR}/${ARCHIVES}" ghcup
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ghcup
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require github [ user=haskell ]
|
||||
|
||||
SUMMARY="Painless installation of GHC toolchain"
|
||||
HOMEPAGE="https://www.haskell.org/ghcup/ ${HOMEPAGE}"
|
||||
|
||||
LICENCES="BSD-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
app-arch/gzip
|
||||
app-arch/tar
|
||||
app-arch/xz
|
||||
net-misc/curl
|
||||
sys-apps/coreutils
|
||||
virtual/awk
|
||||
suggestion:
|
||||
net-misc/wget [[ description = [ alternative downloader ] ]]
|
||||
recommendation:
|
||||
(
|
||||
dev-lang/llvm[>=2.7]
|
||||
dev-lang/perl:*[>=5.6.1]
|
||||
dev-libs/gmp[>=5]
|
||||
dev-libs/libffi
|
||||
) [[ *description = [ Dependency for GHC ] *group-name = [ ghc-deps ] ]]
|
||||
"
|
||||
|
||||
BUGS_TO="hasufell@posteo.de"
|
||||
|
||||
src_install() {
|
||||
dobin ghcup
|
||||
emagicdocs
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require desktop-utils
|
||||
|
||||
SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game"
|
||||
HP="http://www.ftlgame.com"
|
||||
GOG_HP="https://www.gog.com/game/faster_than_light"
|
||||
HOMEPAGE="${HP} ${GOG_HP}"
|
||||
FTL_SH="gog_ftl_advanced_edition_2.0.0.2.sh"
|
||||
FTL_TAR="FTL.${PV}.tar.gz"
|
||||
DOWNLOADS="
|
||||
gog? ( manual: ${FTL_SH} )
|
||||
!gog? ( manual: ${FTL_TAR} )
|
||||
"
|
||||
|
||||
LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng"
|
||||
SLOT="0"
|
||||
PLATFORMS="-* ~amd64 ~x86"
|
||||
MYOPTIONS="
|
||||
gog [[ description = [ Use the gog advanced edition version ] ]]
|
||||
( platform: amd64 x86 )
|
||||
"
|
||||
RESTRICT="fetch"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
media-libs/DevIL
|
||||
media-libs/SDL:0[X]
|
||||
media-libs/freetype:2
|
||||
sys-libs/zlib
|
||||
x11-dri/mesa
|
||||
build:
|
||||
virtual/unzip
|
||||
"
|
||||
|
||||
WORK="${WORKBASE}"
|
||||
|
||||
pkg_nofetch() {
|
||||
local hp=${HP}
|
||||
optionq gog && hp=${GOG_HP}
|
||||
local file=${FTL_TAR}
|
||||
optionq gog && file=${FTL_SH}
|
||||
|
||||
einfo "Please buy & download ${file} from:"
|
||||
einfo " ${hp}"
|
||||
einfo "and move it to ${FETCHEDDIR}"
|
||||
einfo
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
exdirectory --allow /opt
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if optionq gog ; then
|
||||
unzip -qo "${FETCHEDDIR}/${FTL_SH}"
|
||||
[[ $? -le 1 ]] || die "unpacking ${FTL_SH} failed!"
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dir=/opt/${PN}
|
||||
local arch=$(option platform:amd64 "amd64" "x86")
|
||||
local datadir=${WORKBASE}/${PN}/data
|
||||
optionq gog && datadir=${WORKBASE}/data/noarch/game/data
|
||||
local htmldir=${WORKBASE}/${PN}
|
||||
optionq gog && htmldir=${WORKBASE}/data/noarch/docs
|
||||
|
||||
insinto "${dir}"
|
||||
doins -r "${datadir}"/resources
|
||||
|
||||
exeinto "${dir}"/bin
|
||||
doexe "${datadir}"/${arch}/bin/${PN}
|
||||
exeinto "${dir}"/lib
|
||||
doexe "${datadir}"/${arch}/lib/*.so*
|
||||
|
||||
herebin ${PN} << EOF
|
||||
#!/bin/sh
|
||||
cd "/opt/FTL"
|
||||
if [ "\${LD_LIBRARY_PATH+set}" = "set" ] ; then
|
||||
export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}:/opt/FTL/lib"
|
||||
else
|
||||
export LD_LIBRARY_PATH="/opt/FTL/lib"
|
||||
fi
|
||||
exec /opt/FTL/bin/FTL "\$@"
|
||||
EOF
|
||||
|
||||
install_desktop_entry "Name=Faster Than Light" \
|
||||
"Icon=/usr/share/pixmaps/FTL.bmp"
|
||||
|
||||
insinto /usr/share/pixmaps
|
||||
newins "${datadir}"/resources/exe_icon.bmp FTL.bmp
|
||||
|
||||
insinto /usr/share/doc/${PNVR}/html
|
||||
doins "${htmldir}"/${PN}_README.html
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ SUMMARY="Faster Than Light: A spaceship simulation real-time roguelike-like game
|
||||
HP="http://www.ftlgame.com"
|
||||
GOG_HP="https://www.gog.com/game/faster_than_light"
|
||||
HOMEPAGE="${HP} ${GOG_HP}"
|
||||
FTL_SH="ftl_advanced_edition_en_1_6_3_17917.sh"
|
||||
FTL_SH="ftl_advanced_edition_1_6_12_2_35269.sh"
|
||||
DOWNLOADS="manual: ${FTL_SH}"
|
||||
|
||||
LICENCES="all-rights-reserved Boost-1.0 free-noncomm MIT FTL LGPL-2.1 ZLIB libpng"
|
@ -1,7 +1,7 @@
|
||||
# Copyright 2019 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require gog [ installer="stardew_valley_1_4_3_379_34693.sh" ]
|
||||
require gog [ installer="stardew_valley_1_4_5_433754439_36068.sh" ]
|
||||
require desktop-utils
|
||||
|
||||
SUMMARY="Stardew Valley is a farming simulation role-playing video game"
|
Loading…
Reference in New Issue
Block a user