This commit is contained in:
2025-08-27 17:10:19 +02:00
parent 67c8d5ea09
commit f54d1dfc4a
628 changed files with 29658 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ install_depends()
target=$2
depends_args=$3
if [ -z "${dp_USE_PACKAGE_DEPENDS}" -a -z "${dp_USE_PACKAGE_DEPENDS_ONLY}" ]; then
MAKEFLAGS="${dp_MAKEFLAGS}" ${dp_MAKE} -C ${origin} -DINSTALLS_DEPENDS ${target} ${depends_args}
MAKEFLAGS="${dp_MAKEFLAGS}" ${dp_MAKE} -C ${origin} install ${target} ${depends_args}
return 0
fi

View File

@@ -45,6 +45,8 @@ GCCVERSION_060000= 0 6
GCCVERSION_070000= 0 7
GCCVERSION_080000= 0 8
GCCVERSION_090000= 0 9
GCCVERSION_120000= 0 9
GCCVERSION_140000= 0 9
# No configurable parts below this. ####################################
#

View File

@@ -2029,7 +2029,7 @@ MAKE_ENV+= PREFIX=${PREFIX} \
CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
MANPREFIX="${MANPREFIX}"
MANPREFIX="${MANPREFIX}"
# Add -fno-strict-aliasing to CFLAGS with optimization level -O2 or higher.
# gcc 4.x enable strict aliasing optimization with -O2 which is known to break

24
arch/libsnappy/Makefile Normal file
View File

@@ -0,0 +1,24 @@
# Created by: Vanilla I. Shu <vanilla@FreeBSD.org>
# $FreeBSD: head/archivers/snappy/Makefile 457139 2017-12-24 10:48:23Z danfe $
PORTNAME= snappy
PORTVERSION= 1.1.6
CATEGORIES= archivers
PKGNAMEPREFIX= lib
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Fast compressor/decompressor library
USES= autoreconf libtool pathfix pkgconfig
CONFIGURE_ARGS= --disable-gtest
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -DNDEBUG
USE_GITHUB= yes
GH_ACCOUNT= google
TEST_TARGET= check
post-install:
${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so*
.include <bsd.port.mk>

3
arch/libsnappy/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1501830268
SHA256 (google-snappy-1.1.6_GH0.tar.gz) = 6fa92cde5b2caefd0d9a60336991ba42e5a7ddc3bdc36c5610451373751d0495
SIZE (google-snappy-1.1.6_GH0.tar.gz) = 1128388

8
arch/libsnappy/pkg-descr Normal file
View File

@@ -0,0 +1,8 @@
Snappy is a compression/decompression library. It does not aim for maximum
compression, or compatibility with any other compression library; instead,
it aims for very high speeds and reasonable compression. For instance,
compared to the fastest mode of zlib, Snappy is an order of magnitude faster
for most inputs, but the resulting compressed files are anywhere from 20% to
100% bigger.
WWW: http://google.github.io/snappy/

8
arch/libsnappy/pkg-plist Normal file
View File

@@ -0,0 +1,8 @@
include/snappy-c.h
include/snappy-sinksource.h
include/snappy-stubs-public.h
include/snappy.h
lib/libsnappy.a
lib/libsnappy.so
lib/libsnappy.so.2
lib/pkgconfig/snappy.pc

25
arch/libzip/Makefile Normal file
View File

@@ -0,0 +1,25 @@
# Created by: Alexander Zhuravlev <zaa@zaa.pp.ru>
# $FreeBSD: head/archivers/libzip/Makefile 495897 2019-03-16 15:59:26Z rakuco $
PORTNAME= libzip
PORTVERSION= 1.5.2
CATEGORIES= archivers devel
MASTER_SITES= https://libzip.org/download/
MAINTAINER= rakuco@FreeBSD.org
COMMENT= C library for reading, creating, and modifying ZIP archives
CPE_VENDOR= nih
USES= cmake cpe perl5 ssl tar:xz
USE_LDCONFIG= yes
USE_PERL5= test
TEST_TARGET= test
CMAKE_OFF= ENABLE_COMMONCRYPTO ENABLE_GNUTLS ENABLE_MBEDTLS
post-install:
echo ${GZIP_CMD} ${STAGEDIR}${LOCALBASE}${MAN1_DIR}
.include <bsd.port.mk>

3
arch/libzip/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1552751578
SHA256 (libzip-1.5.2.tar.xz) = b3de4d4bd49a01e0cab3507fc163f88e1651695b6b9cb25ad174dbe319d4a3b4
SIZE (libzip-1.5.2.tar.xz) = 725724

View File

@@ -0,0 +1,12 @@
Do not set RPATH on FreeBSD either.
--- CMakeLists.txt.orig 2018-06-14 20:07:27 UTC
+++ CMakeLists.txt
@@ -224,7 +224,7 @@ endif(WIN32)
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
# rpath handling: use rpath in installed binaries
-IF(NOT CMAKE_SYSTEM_NAME MATCHES Linux)
+IF(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD|Linux")
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
ENDIF()

View File

@@ -0,0 +1,11 @@
--- ./lib/CMakeLists.txt~ 2019-03-12 13:44:02.000000000 +0200
+++ ./lib/CMakeLists.txt 2020-08-28 10:09:56.015415000 +0200
@@ -218,7 +218,7 @@
ADD_LIBRARY(zip ${LIBZIP_SOURCES} ${LIBZIP_EXTRA_FILES} ${LIBZIP_OPTIONAL_FILES} ${LIBZIP_OPSYS_FILES})
IF(SHARED_LIB_VERSIONNING)
-SET_TARGET_PROPERTIES(zip PROPERTIES VERSION 5.0 SOVERSION 5)
+SET_TARGET_PROPERTIES(zip PROPERTIES VERSION 5 SOVERSION 5)
ENDIF()

7
arch/libzip/pkg-descr Normal file
View File

@@ -0,0 +1,7 @@
libzip is a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed
data copied directly from other zip archives. Changes made without
closing the archive can be reverted. The API is documented by man
pages.
WWW: https://libzip.org/

126
arch/libzip/pkg-plist Normal file
View File

@@ -0,0 +1,126 @@
bin/zipcmp
bin/zipmerge
bin/ziptool
include/zip.h
include/zipconf.h
lib/libzip.so
lib/libzip.so.5
lib/pkgconfig/libzip.pc
man/man1/zipcmp.1.gz
man/man1/zipmerge.1.gz
man/man1/ziptool.1.gz
man/man3/libzip.3.gz
man/man3/zip_add_dir.3.gz
man/man3/zip_add.3.gz
man/man3/zip_close.3.gz
man/man3/zip_delete.3.gz
man/man3/zip_dir_add.3.gz
man/man3/zip_discard.3.gz
man/man3/zip_error_clear.3.gz
man/man3/zip_error_code_system.3.gz
man/man3/zip_error_code_zip.3.gz
man/man3/zip_error_fini.3.gz
man/man3/zip_error_get_sys_type.3.gz
man/man3/zip_error_get.3.gz
man/man3/zip_error_init_with_code.3.gz
man/man3/zip_error_init.3.gz
man/man3/zip_error_set.3.gz
man/man3/zip_error_strerror.3.gz
man/man3/zip_error_system_type.3.gz
man/man3/zip_error_to_data.3.gz
man/man3/zip_error_to_str.3.gz
man/man3/zip_errors.3.gz
man/man3/zip_fclose.3.gz
man/man3/zip_fdopen.3.gz
man/man3/zip_file_add.3.gz
man/man3/zip_file_error_clear.3.gz
man/man3/zip_file_error_get.3.gz
man/man3/zip_file_extra_field_delete_by_id.3.gz
man/man3/zip_file_extra_field_delete.3.gz
man/man3/zip_file_extra_field_get_by_id.3.gz
man/man3/zip_file_extra_field_get.3.gz
man/man3/zip_file_extra_field_set.3.gz
man/man3/zip_file_extra_fields_count_by_id.3.gz
man/man3/zip_file_extra_fields_count.3.gz
man/man3/zip_file_get_comment.3.gz
man/man3/zip_file_get_error.3.gz
man/man3/zip_file_get_external_attributes.3.gz
man/man3/zip_file_rename.3.gz
man/man3/zip_file_replace.3.gz
man/man3/zip_file_set_comment.3.gz
man/man3/zip_file_set_encryption.3.gz
man/man3/zip_file_set_external_attributes.3.gz
man/man3/zip_file_set_mtime.3.gz
man/man3/zip_file_strerror.3.gz
man/man3/zip_fopen_encrypted.3.gz
man/man3/zip_fopen_index_encrypted.3.gz
man/man3/zip_fopen_index.3.gz
man/man3/zip_fopen.3.gz
man/man3/zip_fread.3.gz
man/man3/zip_fseek.3.gz
man/man3/zip_ftell.3.gz
man/man3/zip_get_archive_comment.3.gz
man/man3/zip_get_archive_flag.3.gz
man/man3/zip_get_error.3.gz
man/man3/zip_get_file_comment.3.gz
man/man3/zip_get_name.3.gz
man/man3/zip_get_num_entries.3.gz
man/man3/zip_get_num_files.3.gz
man/man3/zip_libzip_version.3.gz
man/man3/zip_name_locate.3.gz
man/man3/zip_open_from_source.3.gz
man/man3/zip_open.3.gz
man/man3/zip_register_progress_callback_with_state.3.gz
man/man3/zip_register_progress_callback.3.gz
man/man3/zip_rename.3.gz
man/man3/zip_replace.3.gz
man/man3/zip_set_archive_comment.3.gz
man/man3/zip_set_archive_flag.3.gz
man/man3/zip_set_default_password.3.gz
man/man3/zip_set_file_comment.3.gz
man/man3/zip_set_file_compression.3.gz
man/man3/zip_source_begin_write_cloning.3.gz
man/man3/zip_source_begin_write.3.gz
man/man3/zip_source_buffer_create.3.gz
man/man3/zip_source_buffer_fragment_create.3.gz
man/man3/zip_source_buffer_fragment.3.gz
man/man3/zip_source_buffer.3.gz
man/man3/zip_source_close.3.gz
man/man3/zip_source_commit_write.3.gz
man/man3/zip_source_error.3.gz
man/man3/zip_source_file_create.3.gz
man/man3/zip_source_file.3.gz
man/man3/zip_source_filep_create.3.gz
man/man3/zip_source_filep.3.gz
man/man3/zip_source_free.3.gz
man/man3/zip_source_function_create.3.gz
man/man3/zip_source_function.3.gz
man/man3/ZIP_SOURCE_GET_ARGS.3.gz
man/man3/zip_source_is_deleted.3.gz
man/man3/zip_source_keep.3.gz
man/man3/zip_source_make_command_bitmap.3.gz
man/man3/zip_source_open.3.gz
man/man3/zip_source_read.3.gz
man/man3/zip_source_rollback_write.3.gz
man/man3/zip_source_seek_compute_offset.3.gz
man/man3/zip_source_seek_write.3.gz
man/man3/zip_source_seek.3.gz
man/man3/zip_source_stat.3.gz
man/man3/zip_source_tell_write.3.gz
man/man3/zip_source_tell.3.gz
man/man3/zip_source_win32a_create.3.gz
man/man3/zip_source_win32a.3.gz
man/man3/zip_source_win32handle_create.3.gz
man/man3/zip_source_win32handle.3.gz
man/man3/zip_source_win32w_create.3.gz
man/man3/zip_source_win32w.3.gz
man/man3/zip_source_write.3.gz
man/man3/zip_source_zip.3.gz
man/man3/zip_source.3.gz
man/man3/zip_stat_index.3.gz
man/man3/zip_stat_init.3.gz
man/man3/zip_stat.3.gz
man/man3/zip_strerror.3.gz
man/man3/zip_unchange_all.3.gz
man/man3/zip_unchange_archive.3.gz
man/man3/zip_unchange.3.gz

19
crypto/libsodium/Makefile Normal file
View File

@@ -0,0 +1,19 @@
# $FreeBSD: head/security/libsodium/Makefile 489687 2019-01-08 13:31:51Z tobik $
PORTNAME= libsodium
PORTVERSION= 1.0.16
CATEGORIES= security
MASTER_SITES= https://download.libsodium.org/libsodium/releases/
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Library to build higher-level cryptographic tools
GNU_CONFIGURE= yes
USES= pathfix pkgconfig gmake
USE_LDCONFIG= yes
CONFIGURE_ARGS+= --enable-blocking-random
INSTALL_TARGET?= install-strip
TEST_TARGET= check
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1513157053
SHA256 (libsodium-1.0.16.tar.gz) = eeadc7e1e1bcef09680fb4837d448fbdf57224978f865ac1c16745868fbd0533
SIZE (libsodium-1.0.16.tar.gz) = 1910835

View File

@@ -0,0 +1,36 @@
--- ./build-aux/ltmain.sh.orig 2017-12-13 16:32:49.000000000 +0200
+++ ./build-aux/ltmain.sh 2019-05-25 11:48:30.156336000 +0200
@@ -8805,13 +8805,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|freebsd-elf|linux|osf|windows|none)
+ darwin|linux|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|qnx|sunos)
+ freebsd*|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -8891,15 +8891,9 @@
esac
;;
- freebsd-aout)
+ freebsd*)
major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf)
- func_arith $current - $age
- major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=.$current
;;
irix | nonstopux)

View File

@@ -0,0 +1,28 @@
--- ./ltmain.sh.orig 2014-11-01 01:59:03.000000000 +0200
+++ ./ltmain.sh 2019-05-25 11:45:10.705048000 +0200
@@ -7340,7 +7340,7 @@
age="$number_minor"
revision="$number_revision"
;;
- freebsd-aout|freebsd-elf|qnx|sunos)
+ freebsd*|qnx|sunos)
current="$number_major"
revision="$number_minor"
age="0"
@@ -7414,14 +7414,9 @@
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
;;
- freebsd-aout)
+ freebsd*)
major=".$current"
- versuffix=".$current.$revision";
- ;;
-
- freebsd-elf)
- major=".$current"
- versuffix=".$current"
+ versuffix=".$current";
;;
irix | nonstopux)

View File

@@ -0,0 +1,9 @@
libsodium is a library for network communication, encryption,
decryption, signatures, etc.
libsodium is a portable, cross-compilable, installable,
packageable, API-compatible version of NaCl(security/nacl).
NaCl's goal is to provide all of the core operations needed
to build higher-level cryptographic tools.
WWW: https://github.com/jedisct1/libsodium

View File

@@ -0,0 +1,67 @@
include/sodium.h
include/sodium/core.h
include/sodium/crypto_aead_aes256gcm.h
include/sodium/crypto_aead_chacha20poly1305.h
include/sodium/crypto_aead_xchacha20poly1305.h
include/sodium/crypto_auth_hmacsha256.h
include/sodium/crypto_auth_hmacsha512.h
include/sodium/crypto_auth_hmacsha512256.h
include/sodium/crypto_auth.h
include/sodium/crypto_box_curve25519xchacha20poly1305.h
include/sodium/crypto_box_curve25519xsalsa20poly1305.h
include/sodium/crypto_box.h
include/sodium/crypto_core_ed25519.h
include/sodium/crypto_core_hchacha20.h
include/sodium/crypto_core_hsalsa20.h
include/sodium/crypto_core_salsa20.h
include/sodium/crypto_core_salsa2012.h
include/sodium/crypto_core_salsa208.h
include/sodium/crypto_generichash_blake2b.h
include/sodium/crypto_generichash.h
include/sodium/crypto_hash_sha256.h
include/sodium/crypto_hash_sha512.h
include/sodium/crypto_hash.h
include/sodium/crypto_kdf_blake2b.h
include/sodium/crypto_kdf.h
include/sodium/crypto_kx.h
include/sodium/crypto_onetimeauth_poly1305.h
include/sodium/crypto_onetimeauth.h
include/sodium/crypto_pwhash_argon2i.h
include/sodium/crypto_pwhash_argon2id.h
include/sodium/crypto_pwhash_scryptsalsa208sha256.h
include/sodium/crypto_pwhash.h
include/sodium/crypto_scalarmult_curve25519.h
include/sodium/crypto_scalarmult_ed25519.h
include/sodium/crypto_scalarmult.h
include/sodium/crypto_secretbox_xchacha20poly1305.h
include/sodium/crypto_secretbox_xsalsa20poly1305.h
include/sodium/crypto_secretbox.h
include/sodium/crypto_secretstream_xchacha20poly1305.h
include/sodium/crypto_shorthash_siphash24.h
include/sodium/crypto_shorthash.h
include/sodium/crypto_sign_ed25519.h
include/sodium/crypto_sign_edwards25519sha512batch.h
include/sodium/crypto_sign.h
include/sodium/crypto_stream_chacha20.h
include/sodium/crypto_stream_salsa20.h
include/sodium/crypto_stream_salsa2012.h
include/sodium/crypto_stream_salsa208.h
include/sodium/crypto_stream_xchacha20.h
include/sodium/crypto_stream_xsalsa20.h
include/sodium/crypto_stream.h
include/sodium/crypto_verify_16.h
include/sodium/crypto_verify_32.h
include/sodium/crypto_verify_64.h
include/sodium/export.h
include/sodium/randombytes_salsa20_random.h
include/sodium/randombytes_sysrandom.h
include/sodium/randombytes.h
include/sodium/runtime.h
include/sodium/utils.h
include/sodium/version.h
lib/libsodium.a
lib/libsodium.la
lib/libsodium.so
lib/libsodium.so.24
lib/pkgconfig/libsodium.pc
@dir include/sodium

165
data/mariadb/Makefile Normal file
View File

@@ -0,0 +1,165 @@
# $FreeBSD: head/databases/mariadb102-server/Makefile 470246 2018-05-17 18:57:17Z brnrd $
PORTNAME?= mariadb
PORTVERSION= 10.6.21
CATEGORIES= databases
#MASTER_SITES+= http://mirrors.supportex.net/${SITESDIR}/
#MASTER_SITES+= http://mirror2.hs-esslingen.de/pub/Mirrors/${SITESDIR}/
#MASTER_SITES+= http://gd.tuwien.ac.at/db/${SITESDIR}/
#MASTER_SITES+= http://mirrors.fe.up.pt/pub/${SITESDIR}/
#MASTER_SITES+= http://mirror.de.gsnw.de:56431/${SITESDIR}/
#MASTER_SITES+= http://mirror.layerjet.com/${SITESDIR}/
#MASTER_SITES+= http://mirror.switch.ch/mirror/${SITESDIR}/
#MASTER_SITES+= http://ftp.osuosl.org/pub/${SITESDIR}/
SITESDIR= mariadb/mariadb-${PORTVERSION}/source
MAINTAINER= brnrd@FreeBSD.org
COMMENT= Multithreaded SQL database (server)
LIB_DEPENDS+= libiconv.so:text/libiconv
LIB_DEPENDS+= libxml2.so:text/libxml2
#LIB_DEPENDS+= libodbc.so:data/unixODBC
#LIB_DEPENDS+= libsnappy.so:arch/libsnappy
#LIB_DEPENDS+= liblzo2.so:arch/liblzo2
#LIB_DEPENDS+= liblz4.so:arch/liblz4
USES= bison:build cmake compiler:c++11-lib shebangfix
#USE_LDCONFIG= ${PREFIX}/lib/mysql
SHEBANG_FILES= scripts/*.sh
DOCSDIR= ${PREFIX}/share/doc/mysql
CXXFLAGS+= -fcommon
CFLAGS+= -fcommon
# MySQL-Server options
#OPTIONS_DEFAULT+= CONNECT_EXTRA INNOBASE SPHINX SPIDER
#OPTIONS_GROUP= COMPRESSION ENGINES GROONGA
#OPTIONS_DEFINE= CONNECT_EXTRA
#OPTIONS_GROUP_COMPRESSION= LZ4 LZO SNAPPY ZSTD
#OPTIONS_GROUP_ENGINES= INNOBASE MROONGA OQGRAPH ROCKSDB SPHINX SPIDER TOKUDB XTRADB
#OPTIONS_GROUP_GROONGA= ZMQ MSGPACK
#OPTIONS_EXCLUDE_i386= TOKUDB
#CONNECT_EXTRA_DESC= Enable ODBC and XML in CONNECT engine
#COMPRESSION_DESC= Optional page compression
#ENGINES_DESC= Optional MariaDB storage engines
#GROONGA_DESC= Optional Mroonga features
#INNOBASE_DESC= InnoDB default engine
#MROONGA_DESC= Mroonga Full Text Search engine
#MSGPACK_DESC= MsgPack support
#OQGRAPH_DESC= Open Query Graph Computation engine
#ROCKSDB_DESC= RocksDB LSM engine (Alpha)
#SPHINX_DESC= SphinxSE engine
#SPIDER_DESC= Partitioning and XA-transactions engine
#TOKUDB_DESC= Fractal tree index tree data structure engine
#XTRADB_DESC= Build XtraDB engine next to InnoDB
#ZMQ_DESC= ZeroMQ support
#ZSTD_DESC+= Zstandard compression support (RocksDB only)
OPENSSLBASE= /usr
NCURSESLIB= /usr/lib
CMAKE_ARGS= -DCMAKE_PREFIX_PATH="${PREFIX}"
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql"
CMAKE_ARGS+= -DINSTALL_DOCREADMEDIR="share/doc/mysql"
CMAKE_ARGS+= -DINSTALL_INCLUDEDIR="include/mysql"
CMAKE_ARGS+= -DINSTALL_INFODIR="info"
CMAKE_ARGS+= -DINSTALL_LIBDIR="lib/mysql"
CMAKE_ARGS+= -DINSTALL_MANDIR="man"
CMAKE_ARGS+= -DINSTALL_MYSQLDATADIR="/var/db/mysql"
CMAKE_ARGS+= -DINSTALL_MYSQLSHAREDIR="share/mysql"
CMAKE_ARGS+= -DINSTALL_MYSQLTESTDIR=
CMAKE_ARGS+= -DINSTALL_PLUGINDIR="lib/mysql/plugin"
CMAKE_ARGS+= -DINSTALL_SBINDIR="libexec"
CMAKE_ARGS+= -DINSTALL_SCRIPTDIR="bin"
CMAKE_ARGS+= -DINSTALL_SHAREDIR="share"
CMAKE_ARGS+= -DINSTALL_SQLBENCHDIR=""
CMAKE_ARGS+= -DINSTALL_SUPPORTFILESDIR="share/mysql"
CMAKE_ARGS+= -DDEFAULT_SYSCONFDIR="${PREFIX}/etc"
CMAKE_ARGS+= -DWITH_JEMALLOC="system"
CMAKE_ARGS+= -DWITH_LIBWRAP=0
CMAKE_ARGS+= -DWITH_SSL="${OPENSSLBASE}"
CMAKE_ARGS+= -DWITH_UNIT_TESTS=0
CMAKE_ARGS+= -DWITHOUT_DOCS=1
CMAKE_ARGS+= -DCURSES_CURSES_LIBRARY="/usr/lib/libcurses.so"
CMAKE_ARGS+= -DCURSES_FORM_LIBRARY="/usr/lib/libform.so"
CMAKE_ARGS+= -DCURSES_CURSES_LIBRARY="/usr/lib/libncurses.so"
CMAKE_ARGS+= -DICONV_LIBRARIES="${LOCALBASE}/lib/libiconv.so"
CMAKE_ARGS+= -DCURSES_NCURSES_LIBRARY="${NCURSESLIB}/libncurses.so"
CMAKE_ARGS+= -DOPENSSL_ROOT_DIR="${OPENSSLBASE}"
CMAKE_ARGS+= -DOPENSSL_CRYPTO_LIBRARY="${OPENSSLBASE}/lib/libcrypto.so"
CMAKE_ARGS+= -DOPENSSL_SSL_LIBRARY="${OPENSSLBASE}/lib/libssl.so"
CMAKE_ARGS+= -DREMOTEIO_PLUGIN_TYPE="NO"
CMAKE_ARGS+= -DCOMPILATION_COMMENT="FreeBSD Ports"
CMAKE_ARGS+= -DCMAKE_PREFIX_PATH=${PREFIX}
CMAKE_ARGS+= -DPLUGIN_AUTH_TEST_PLUGIN=NO
#CMAKE_ARGS+= -DCMAKE_SKIP_BUILD_RPATH=ON -DWITH_EMBEDDED_SERVER=ON
CMAKE_ARGS+= -DWITH_FAST_MUTEXES=1
#CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER="ON"
CMAKE_ARGS+= -DPLUGIN_AUTH_GSSAPI_CLIENT=NO
CMAKE_ARGS+= -DCMAKE_SKIP_BUILD_RPATH:BOOL=YES
CMAKE_ARGS+= -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
#CMAKE_ARGS+= -DWITHOUT_INNOBASE=1 -DPLUGIN_INNOBASE=NO
CMAKE_ARGS+= -DWITHOUT_MROONGA=1 -DPLUGIN_MROONGA=NO
CMAKE_ARGS+= -DWITHOUT_OQGRAPH=1 -DPLUGIN_OQGRAPH=NO
CMAKE_ARGS+= -DWITHOUT_ROCKSDB=1 -DPLUGIN_ROCKSDB=NO
CMAKE_ARGS+= -DWITHOUT_SPHINX=1 -DPLUGIN_SPHINX=NO
CMAKE_ARGS+= -DWITHOUT_SPIDER=1 -DPLUGIN_SPIDER=NO
CMAKE_ARGS+= -DWITHOUT_TOKUDB=1 -DPLUGIN_TOKUDB=NO
#CMAKE_ARGS+= -DWITHOUT_XTRADB=1 -DPLUGIN_XTRADB=NO
CMAKE_ARGS+= -DWITH_WSREP=NO
CMAKE_ARGS+= -DGRN_WITH_LZ4=OFF
CMAKE_ARGS+= -DWITH_INNODB_LZ4=OFF
CMAKE_ARGS+= -DWITH_INNODB_LZO=OFF
CMAKE_ARGS+= -DWITH_INNODB_SNAPPY=OFF
CMAKE_ARGS+= -DWITH_ROCKSDB_LZ4=OFF
CMAKE_ARGS+= -DWITH_ROCKSDB_ZSTD=OFF
CMAKE_ARGS+= -DPLUGIN_AUTH_GSSAPI=NO -DPLUGIN_AUTH_GSSAPI_CLIENT=NO
LDFLAGS+= -L${LOCALBASE}/lib -liconv
CFLAGS+= -I${LOCALBASE}/include -fPIE
CXXLAGS+= -I${LOCALBASE}/include -fPIE
MY_OWNER= mysql
MY_OWNER_ID= 88
MY_GROUP= mysql
MY_GROUP_ID= 88
MY_VAR_DIR= /var
MY_DB_DIR= ${MY_VAR_DIR}/db/mysql
SUB_LIST+= MY_OWNER=${MY_OWNER}
SUB_LIST+= MY_GROUP=${MY_GROUP}
SUB_LIST+= MY_OWNER_ID=${MY_OWNER_ID}
SUB_LIST+= MY_GROUP_ID=${MY_GROUP_ID}
SUB_LIST+= MY_DB_DIR=${MY_DB_DIR}
USE_RC_SUBR+= mysql
SUB_FILES= pkg-install pkg-deinstall pkg-message
post-patch:
${REINPLACE_CMD} 's/*.1/${MAN1}/' ${WRKSRC}/man/CMakeLists.txt
${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mysys/my_default.c
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/scripts/mysql_config.sh
post-install:
${RM} -rf ${STAGEDIR}/${PREFIX}/share/mysql/policy
cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf mysql/lib* .
.include <bsd.port.mk>
#EOF

3
data/mariadb/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1756284117
SHA256 (mariadb-10.6.21.tar.gz) = 8d7f97169b3ba2044858965b8cfc254364400df43e905042f92e24b8fa7b0d96
SIZE (mariadb-10.6.21.tar.gz) = 103982296

View File

@@ -0,0 +1,140 @@
#!/bin/sh
# $FreeBSD: head/databases/mariadb55-server/files/mysql-server.in 361647 2014-07-12 22:42:33Z rakuco $
#
# PROVIDE: mysql
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mysql:
# mysql_(instance_)?enable (bool): Set to "NO" by default.
# Set it to "YES" to enable MySQL.
%%LEGACY_LIMITS%%# mysql_(instance_)?limits (bool): Set to "NO" by default.
%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U mysql`
%%LEGACY_LIMITS%%# just before mysql starts.
# mysql_(instance_)?dbdir (str): Default to "/var/db/mysql"
# Base database directory.
# mysql_(instance_)?args (str): Custom additional arguments to be passed
# to mysqld_safe (default empty).
# mysql_(instance_)?pidfile (str): Custum PID file path and name.
# Default to "${mysql_dbdir}/${hostname}.pid".
# mysql_(instance_)?user (str): User to run mysqld as
# Default to "mysql" created by the port
# mysql_(instance_)?optfile (str): Server-specific option file.
# Default to "${mysql_dbdir}/my.cnf".
# mysql_instances (str): Set to "" by default.
# If defined, list of instances to enable
. /etc/rc.subr
name="mysql"
rcvar=mysql_enable
load_rc_config $name
: ${mysql_enable="NO"}
%%LEGACY_LIMITS%%: ${mysql_limits="NO"}
: ${mysql_user="mysql"}
%%LEGACY_LIMITS%%: ${mysql_limits_args="-e -U $mysql_user"}
: ${mysql_dbdir="/var/db/mysql"}
: ${mysql_optfile="${mysql_dbdir}/my.cnf"}
command="/usr/sbin/daemon"
procname="%%PREFIX%%/libexec/mysqld"
start_precmd="${name}_prestart"
start_postcmd="${name}_poststart"
if [ -n "$2" ]; then
instance="$2"
load_rc_config ${name}_${instance}
case "$mysql_instances" in
"$2 "*|*" $2 "*|*" $2"|"$2")
eval mysql_args="\${mysql_${instance}_args:-\"${mysql_args}\"}"
eval mysql_dbdir="\${mysql_${instance}_dbdir:-\"/var/db/mysql_${instance}\"}"
%%LEGACY_LIMITS%% eval mysql_limits="\${mysql_${instance}_limits:-\"${mysql_limits}\"}"
eval mysql_user="\${mysql_${instance}_user:-\"${mysql_user}\"}"
%%LEGACY_LIMITS%% eval mysql_limits_args="\${mysql_${instance}_limits_args:-\"-e -U $mysql_user\"}"
eval mysql_optfile="\${mysql_${instance}_optfile:-\"${mysql_dbdir}/my.cnf\"}"
eval mysql_pidfile="\${mysql_${instance}_pidfile:-\"${mysql_dbdir}/`/bin/hostname`.pid\"}"
;;
*)
err 1 "$2 not found in mysql_instances" ;;
esac
else
if [ -n "${mysql_instances}" -a -n "$1" ]; then
for instance in ${mysql_instances}; do
eval _enable="\${mysql_${instance}_enable}"
case "${_enable:-${mysql_enable}}" in
[Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
continue
;;
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
;;
*)
if [ -z "$_enable" ]; then
_var=mysql_enable
else
_var=mysql_${instance}_enable
fi
warn "Bad value" \
"'${_enable:-${mysql_enable}}'" \
"for ${_var}. " \
"Instance ${instance} skipped."
continue
;;
esac
echo "===> mysql instance: ${instance}"
if %%PREFIX%%/etc/rc.d/mysql-server $1 ${instance}; then
success="${instance} ${success}"
else
failed="${instance} (${retcode}) ${failed}"
fi
done
exit 0
else
mysql_pidfile=${mysql_pidfile:-"${mysql_dbdir}/`/bin/hostname`.pid"}
fi
fi
pidfile=$mysql_pidfile
mysql_install_db="%%PREFIX%%/bin/mysql_install_db"
mysql_install_db_args="--basedir=%%PREFIX%% --datadir=${mysql_dbdir} --force"
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}"
mysql_create_auth_tables()
{
eval $mysql_install_db $mysql_install_db_args
[ $? -eq 0 ] && chown -R ${mysql_user}:$(id -gn $mysql_user) ${mysql_dbdir}
}
mysql_prestart()
{
local dir
for dir in /etc /etc/mysql; do
if [ -f "${dir}/my.cnf" ]; then
echo "Please move existing my.cnf file from ${dir} to %%PREFIX%%${dir}"
return 1
fi
done
if [ ! -d "${mysql_dbdir}/mysql/." ]; then
mysql_create_auth_tables || return 1
fi
%%LEGACY_LIMITS%% if checkyesno mysql_limits; then
%%LEGACY_LIMITS%% eval `/usr/bin/limits ${mysql_limits_args:-"-e -U $mysql_user"}` 2>/dev/null
%%LEGACY_LIMITS%% else
%%LEGACY_LIMITS%% return 0
%%LEGACY_LIMITS%% fi
%%MODERN_LIMITS%% return 0
}
mysql_poststart()
{
local timeout=15
while [ ! -f "${pidfile}" -a ${timeout} -gt 0 ]; do
timeout=$(( timeout - 1 ))
sleep 1
done
return 0
}
run_rc_command "$1"

View File

@@ -0,0 +1,92 @@
#!/bin/sh
# $FreeBSD: head/databases/mariadb55-server/files/mysql-server.in 361647 2014-07-12 22:42:33Z rakuco $
#
# PROVIDE: mysql
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable mysql:
# mysql_(instance_)?enable (bool): Set to "NO" by default.
# Set it to "YES" to enable MySQL.
# mysql_(instance_)?limits (bool): Set to "NO" by default.
# Set it to yes to run `limits -e -U mysql`
# just before mysql starts.
# mysql_(instance_)?dbdir (str): Default to "/var/db/mysql"
# Base database directory.
# mysql_(instance_)?args (str): Custom additional arguments to be passed
# to mysqld_safe (default empty).
# mysql_(instance_)?pidfile (str): Custum PID file path and name.
# Default to "${mysql_dbdir}/${hostname}.pid".
# mysql_(instance_)?user (str): User to run mysqld as
# Default to "mysql" created by the port
# mysql_(instance_)?optfile (str): Server-specific option file.
# Default to "${mysql_dbdir}/my.cnf".
# mysql_instances (str): Set to "" by default.
# If defined, list of instances to enable
. /etc/rc.subr
name="mysql"
rcvar=mysql_enable
load_rc_config $name
: ${mysql_enable="NO"}
#: ${mysql_limits="NO"}
: ${mysql_user="mysql"}
: ${mysql_limits_args="-e -U $mysql_user"}
: ${mysql_dbdir="/var/db/mysql"}
: ${mysql_optfile="${mysql_dbdir}/my.cnf"}
command="/usr/sbin/daemon"
procname="%%PREFIX%%/libexec/mysqld"
start_precmd="${name}_prestart"
start_postcmd="${name}_poststart"
mysql_pidfile=${mysql_pidfile:-"${mysql_dbdir}/mysql.pid"}
pidfile=$mysql_pidfile
mysql_install_db="%%PREFIX%%/bin/mysql_install_db"
mysql_install_db_args="--basedir=%%PREFIX%% --datadir=${mysql_dbdir} --force"
command_args="-c -f %%PREFIX%%/bin/mysqld_safe --defaults-extra-file=${mysql_optfile} --user=${mysql_user} --datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args}"
mysql_create_auth_tables()
{
eval $mysql_install_db $mysql_install_db_args
[ $? -eq 0 ] && chown -R ${mysql_user}:$(id -gn $mysql_user) ${mysql_dbdir}
}
mysql_prestart()
{
local dir
for dir in /etc /etc/mysql; do
if [ -f "${dir}/my.cnf" ]; then
echo "Please move existing my.cnf file from ${dir} to %%PREFIX%%${dir}"
return 1
fi
done
if [ ! -d "${mysql_dbdir}/mysql/." ]; then
mysql_create_auth_tables || return 1
fi
# if checkyesno mysql_limits; then
# eval `/usr/bin/limits ${mysql_limits_args:-"-e -U $mysql_user"}` 2>/dev/null
# else
return 0
# fi
return 0
}
mysql_poststart()
{
local timeout=15
while [ ! -f "${pidfile}" -a ${timeout} -gt 0 ]; do
timeout=$(( timeout - 1 ))
sleep 1
done
return 0
}
run_rc_command "$1"
#EOF

View File

@@ -0,0 +1,13 @@
--- storage/rocksdb/rocksdb/port/jemalloc_helper.h.orig 2020-06-23 15:10:17 UTC
+++ storage/rocksdb/rocksdb/port/jemalloc_helper.h
@@ -26,6 +26,10 @@
#include <jemalloc/jemalloc.h>
#endif
+#ifdef __FreeBSD__
+#define JEMALLOC_USABLE_SIZE_CONST const
+#endif
+
#ifndef JEMALLOC_CXX_THROW
#define JEMALLOC_CXX_THROW
#endif

View File

@@ -0,0 +1,8 @@
--- tpool/CMakeLists.txt.orig 2020-06-23 15:10:18 UTC
+++ tpool/CMakeLists.txt
@@ -1,4 +1,5 @@
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/include)
+ADD_DEFINITIONS(-fPIC)
IF(WIN32)
SET(EXTRA_SOURCES tpool_win.cc aio_win.cc)
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")

View File

@@ -0,0 +1,23 @@
--- ./storage/innobase/include/trx0trx.h.orig 2025-01-29 12:22:21.000000000 +0200
+++ ./storage/innobase/include/trx0trx.h 2025-08-27 14:19:07.750565000 +0200
@@ -38,6 +38,7 @@
#include "small_vector.h"
#include <vector>
+#include <mutex>
// Forward declaration
struct mtr_t;
@@ -605,10 +606,10 @@
/** mutex protecting state and some of lock
(some are protected by lock_sys.latch) */
srw_spin_mutex mutex;
-#ifdef UNIV_DEBUG
+//#ifdef UNIV_DEBUG
/** The owner of mutex (0 if none); protected by mutex */
std::atomic<pthread_t> mutex_owner{0};
-#endif /* UNIV_DEBUG */
+//#endif /* UNIV_DEBUG */
public:
void mutex_init() { mutex.init(); }
void mutex_destroy() { mutex.destroy(); }

View File

@@ -0,0 +1,14 @@
#!/bin/sh -x
MY_OWNER="%%MY_OWNER%%"
MY_GROUP="%%MY_GROUP%%"
MY_DB_DIR="%%MY_DB_DIR%%"
case $2 in
DEINSTALL)
;;
POST-DEINSTALL)
;;
esac
#EOF

View File

@@ -0,0 +1,30 @@
#!/bin/sh -x
MY_OWNER="%%MY_OWNER%%"
MY_GROUP="%%MY_GROUP%%"
MY_OWNER_ID="%%MY_OWNER_ID%%"
MY_GROUP_ID="%%MY_GROUP_ID%%"
MY_DB_DIR="%%MY_DB_DIR%%"
PKG__PPREFIX="/notexist"
case $2 in
PRE-INSTALL)
pw group add ${MY_GROUP} -g ${MY_GROUP_ID}
pw user add ${MY_OWNER} -u ${MY_OWNER_ID} -g ${MY_GROUP} \
-d ${PKG_PREFIX} -m -s "/bin/sh" \
-c "mysql"
pw group mod ${MY_GROUP} -M ${MY_OWNER}
pw user show ${MY_OWNER}
pw group show ${MY_GROUP}
mkdir -p ${MY_DB_DIR}
chown ${MY_OWNER}:${MY_GROUP} ${MY_DB_DIR}
chmod 0700 ${MY_DB_DIR}
;;
POST-INSTALL)
;;
esac
#EOF

View File

@@ -0,0 +1,22 @@
************************************************************************
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! !!
!! The default InnoDB storage engine is no longer XtraDB, check your !!
!! configuration and switch it to InnoDB !!
!! !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Remember to run mysql_upgrade (with the optional --datadir=<dbdir> flag)
the first time you start the MySQL server after an upgrade from an
earlier version.
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
%%PREFIX%%/etc and %%PREFIX%%/etc/mysql.
This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port
************************************************************************

14
data/mariadb/pkg-descr Normal file
View File

@@ -0,0 +1,14 @@
MariaDB is a database server that offers drop-in replacement functionality
for MySQL. MariaDB is built by some of the original authors of MySQL, with
assistance from the broader community of Free and open source software
developers. In addition to the core functionality of MySQL, MariaDB offers
a rich set of feature enhancements including alternate storage engines,
server optimizations, and patches.
MariaDB is primarily driven by developers at Monty Program, a company
founded by Michael "Monty" Widenius, the original author of MySQL, but
this is not the whole story about MariaDB. On the "About MariaDB" page you
will find more information about all participants in the MariaDB community,
including storage engines XtraDB and PBXT.
WWW: http://mariadb.org/

897
data/mariadb/pkg-plist Normal file
View File

@@ -0,0 +1,897 @@
bin/aria_chk
bin/aria_dump_log
bin/aria_ftdump
bin/aria_pack
bin/aria_read_log
bin/aria_s3_copy
bin/innochecksum
bin/mariabackup
bin/mariadb
bin/mariadb_config
bin/mariadb-access
bin/mariadb-admin
bin/mariadb-backup
bin/mariadb-binlog
bin/mariadb-check
bin/mariadb-client-test
bin/mariadb-config
bin/mariadb-conv
bin/mariadb-convert-table-format
bin/mariadb-dump
bin/mariadb-dumpslow
bin/mariadb-find-rows
bin/mariadb-fix-extensions
bin/mariadb-hotcopy
bin/mariadb-import
bin/mariadb-install-db
bin/mariadb-plugin
bin/mariadb-secure-installation
bin/mariadb-setpermission
bin/mariadb-show
bin/mariadb-slap
bin/mariadb-test
bin/mariadb-tzinfo-to-sql
bin/mariadb-upgrade
bin/mariadb-waitpid
bin/mariadbd-multi
bin/mariadbd-safe
bin/mariadbd-safe-helper
bin/mbstream
bin/msql2mysql
bin/my_print_defaults
bin/myisam_ftdump
bin/myisamchk
bin/myisamlog
bin/myisampack
bin/mysql
bin/mysql_client_test
bin/mysql_config
bin/mysql_convert_table_format
bin/mysql_find_rows
bin/mysql_fix_extensions
bin/mysql_install_db
bin/mysql_plugin
bin/mysql_secure_installation
bin/mysql_setpermission
bin/mysql_tzinfo_to_sql
bin/mysql_upgrade
bin/mysql_waitpid
bin/mysqlaccess
bin/mysqladmin
bin/mysqlbinlog
bin/mysqlcheck
bin/mysqld_multi
bin/mysqld_safe
bin/mysqld_safe_helper
bin/mysqldump
bin/mysqldumpslow
bin/mysqlhotcopy
bin/mysqlimport
bin/mysqlshow
bin/mysqlslap
bin/mysqltest
bin/mytop
bin/perror
bin/replace
bin/resolve_stack_dump
bin/resolveip
include/mysql/errmsg.h
include/mysql/ma_list.h
include/mysql/ma_pvio.h
include/mysql/ma_tls.h
include/mysql/mariadb_com.h
include/mysql/mariadb_ctype.h
include/mysql/mariadb_dyncol.h
include/mysql/mariadb_rpl.h
include/mysql/mariadb_stmt.h
include/mysql/mariadb_version.h
include/mysql/mariadb/ma_io.h
include/mysql/my_alloca.h
include/mysql/my_config.h
include/mysql/my_global.h
include/mysql/my_sys.h
include/mysql/mysql_com.h
include/mysql/mysql_version.h
include/mysql/mysql.h
include/mysql/mysql/client_plugin.h
include/mysql/mysql/plugin_auth.h
include/mysql/mysqld_error.h
include/mysql/server/big_endian.h
include/mysql/server/byte_order_generic_x86_64.h
include/mysql/server/byte_order_generic_x86.h
include/mysql/server/byte_order_generic.h
include/mysql/server/decimal.h
include/mysql/server/errmsg.h
include/mysql/server/handler_ername.h
include/mysql/server/handler_state.h
include/mysql/server/json_lib.h
include/mysql/server/keycache.h
include/mysql/server/little_endian.h
include/mysql/server/m_ctype.h
include/mysql/server/m_string.h
include/mysql/server/ma_dyncol.h
include/mysql/server/mariadb_capi_rename.h
include/mysql/server/my_alloc.h
include/mysql/server/my_alloca.h
include/mysql/server/my_attribute.h
include/mysql/server/my_byteorder.h
include/mysql/server/my_cmp.h
include/mysql/server/my_compiler.h
include/mysql/server/my_config.h
include/mysql/server/my_dbug.h
include/mysql/server/my_decimal_limits.h
include/mysql/server/my_dir.h
include/mysql/server/my_getopt.h
include/mysql/server/my_global.h
include/mysql/server/my_list.h
include/mysql/server/my_net.h
include/mysql/server/my_pthread.h
include/mysql/server/my_sys.h
include/mysql/server/my_valgrind.h
include/mysql/server/my_xml.h
include/mysql/server/mysql_com_server.h
include/mysql/server/mysql_com.h
include/mysql/server/mysql_embed.h
include/mysql/server/mysql_time.h
include/mysql/server/mysql_version.h
include/mysql/server/mysql.h
include/mysql/server/mysql/auth_dialog_client.h
include/mysql/server/mysql/client_plugin.h
include/mysql/server/mysql/plugin_audit.h
include/mysql/server/mysql/plugin_auth_common.h
include/mysql/server/mysql/plugin_auth.h
include/mysql/server/mysql/plugin_data_type.h
include/mysql/server/mysql/plugin_encryption.h
include/mysql/server/mysql/plugin_ftparser.h
include/mysql/server/mysql/plugin_function.h
include/mysql/server/mysql/plugin_password_validation.h
include/mysql/server/mysql/plugin.h
include/mysql/server/mysql/psi/mysql_file.h
include/mysql/server/mysql/psi/mysql_idle.h
include/mysql/server/mysql/psi/mysql_mdl.h
include/mysql/server/mysql/psi/mysql_memory.h
include/mysql/server/mysql/psi/mysql_ps.h
include/mysql/server/mysql/psi/mysql_socket.h
include/mysql/server/mysql/psi/mysql_sp.h
include/mysql/server/mysql/psi/mysql_stage.h
include/mysql/server/mysql/psi/mysql_statement.h
include/mysql/server/mysql/psi/mysql_table.h
include/mysql/server/mysql/psi/mysql_thread.h
include/mysql/server/mysql/psi/mysql_transaction.h
include/mysql/server/mysql/psi/psi_abi_v0.h
include/mysql/server/mysql/psi/psi_abi_v1.h
include/mysql/server/mysql/psi/psi_abi_v2.h
include/mysql/server/mysql/psi/psi_base.h
include/mysql/server/mysql/psi/psi_memory.h
include/mysql/server/mysql/psi/psi.h
include/mysql/server/mysql/service_base64.h
include/mysql/server/mysql/service_debug_sync.h
include/mysql/server/mysql/service_encryption_scheme.h
include/mysql/server/mysql/service_encryption.h
include/mysql/server/mysql/service_json.h
include/mysql/server/mysql/service_kill_statement.h
include/mysql/server/mysql/service_log_warnings.h
include/mysql/server/mysql/service_logger.h
include/mysql/server/mysql/service_md5.h
include/mysql/server/mysql/service_my_crypt.h
include/mysql/server/mysql/service_my_print_error.h
include/mysql/server/mysql/service_my_snprintf.h
include/mysql/server/mysql/service_print_check_msg.h
include/mysql/server/mysql/service_progress_report.h
include/mysql/server/mysql/service_sha1.h
include/mysql/server/mysql/service_sha2.h
include/mysql/server/mysql/service_sql.h
include/mysql/server/mysql/service_thd_alloc.h
include/mysql/server/mysql/service_thd_autoinc.h
include/mysql/server/mysql/service_thd_error_context.h
include/mysql/server/mysql/service_thd_mdl.h
include/mysql/server/mysql/service_thd_rnd.h
include/mysql/server/mysql/service_thd_specifics.h
include/mysql/server/mysql/service_thd_timezone.h
include/mysql/server/mysql/service_thd_wait.h
include/mysql/server/mysql/services.h
include/mysql/server/mysqld_ername.h
include/mysql/server/mysqld_error.h
include/mysql/server/pack.h
include/mysql/server/private/aligned.h
include/mysql/server/private/aria_backup.h
include/mysql/server/private/assume_aligned.h
include/mysql/server/private/atomic/gcc_builtins.h
include/mysql/server/private/atomic/generic-msvc.h
include/mysql/server/private/atomic/solaris.h
include/mysql/server/private/authors.h
include/mysql/server/private/backup.h
include/mysql/server/private/bounded_queue.h
include/mysql/server/private/client_settings.h
include/mysql/server/private/compat56.h
include/mysql/server/private/config.h
include/mysql/server/private/contributors.h
include/mysql/server/private/create_options.h
include/mysql/server/private/create_tmp_table.h
include/mysql/server/private/cset_narrowing.h
include/mysql/server/private/custom_conf.h
include/mysql/server/private/datadict.h
include/mysql/server/private/ddl_log.h
include/mysql/server/private/debug_sync.h
include/mysql/server/private/debug.h
include/mysql/server/private/derived_handler.h
include/mysql/server/private/derror.h
include/mysql/server/private/des_key_file.h
include/mysql/server/private/discover.h
include/mysql/server/private/dur_prop.h
include/mysql/server/private/event_data_objects.h
include/mysql/server/private/event_db_repository.h
include/mysql/server/private/event_parse_data.h
include/mysql/server/private/event_queue.h
include/mysql/server/private/event_scheduler.h
include/mysql/server/private/events.h
include/mysql/server/private/field_comp.h
include/mysql/server/private/field.h
include/mysql/server/private/filesort_utils.h
include/mysql/server/private/filesort.h
include/mysql/server/private/ft_global.h
include/mysql/server/private/gcalc_slicescan.h
include/mysql/server/private/gcalc_tools.h
include/mysql/server/private/grant.h
include/mysql/server/private/group_by_handler.h
include/mysql/server/private/gstream.h
include/mysql/server/private/ha_handler_stats.h
include/mysql/server/private/ha_partition.h
include/mysql/server/private/ha_sequence.h
include/mysql/server/private/handle_connections_win.h
include/mysql/server/private/handler.h
include/mysql/server/private/hash_filo.h
include/mysql/server/private/hash.h
include/mysql/server/private/heap.h
include/mysql/server/private/hostname.h
include/mysql/server/private/ilist.h
include/mysql/server/private/init.h
include/mysql/server/private/innodb_priv.h
include/mysql/server/private/item_cmpfunc.h
include/mysql/server/private/item_create.h
include/mysql/server/private/item_func.h
include/mysql/server/private/item_geofunc.h
include/mysql/server/private/item_jsonfunc.h
include/mysql/server/private/item_row.h
include/mysql/server/private/item_strfunc.h
include/mysql/server/private/item_subselect.h
include/mysql/server/private/item_sum.h
include/mysql/server/private/item_timefunc.h
include/mysql/server/private/item_vers.h
include/mysql/server/private/item_windowfunc.h
include/mysql/server/private/item_xmlfunc.h
include/mysql/server/private/item.h
include/mysql/server/private/json_table.h
include/mysql/server/private/key.h
include/mysql/server/private/keycaches.h
include/mysql/server/private/lex_ident.h
include/mysql/server/private/lex_string.h
include/mysql/server/private/lex_symbol.h
include/mysql/server/private/lex.h
include/mysql/server/private/lf.h
include/mysql/server/private/lock.h
include/mysql/server/private/log_event_data_type.h
include/mysql/server/private/log_event_old.h
include/mysql/server/private/log_event.h
include/mysql/server/private/log_slow.h
include/mysql/server/private/log.h
include/mysql/server/private/maria.h
include/mysql/server/private/mariadb.h
include/mysql/server/private/mdl.h
include/mysql/server/private/mem_root_array.h
include/mysql/server/private/message.h
include/mysql/server/private/multi_range_read.h
include/mysql/server/private/my_alarm.h
include/mysql/server/private/my_apc.h
include/mysql/server/private/my_atomic_wrapper.h
include/mysql/server/private/my_atomic.h
include/mysql/server/private/my_base.h
include/mysql/server/private/my_bit.h
include/mysql/server/private/my_bitmap.h
include/mysql/server/private/my_check_opt.h
include/mysql/server/private/my_compare.h
include/mysql/server/private/my_counter.h
include/mysql/server/private/my_cpu.h
include/mysql/server/private/my_crypt.h
include/mysql/server/private/my_decimal.h
include/mysql/server/private/my_default.h
include/mysql/server/private/my_handler_errors.h
include/mysql/server/private/my_json_writer.h
include/mysql/server/private/my_libwrap.h
include/mysql/server/private/my_md5.h
include/mysql/server/private/my_minidump.h
include/mysql/server/private/my_nosys.h
include/mysql/server/private/my_rdtsc.h
include/mysql/server/private/my_rnd.h
include/mysql/server/private/my_service_manager.h
include/mysql/server/private/my_stack_alloc.h
include/mysql/server/private/my_stacktrace.h
include/mysql/server/private/my_time.h
include/mysql/server/private/my_tree.h
include/mysql/server/private/my_uctype.h
include/mysql/server/private/my_user.h
include/mysql/server/private/myisam.h
include/mysql/server/private/myisamchk.h
include/mysql/server/private/myisammrg.h
include/mysql/server/private/myisampack.h
include/mysql/server/private/mysqld_default_groups.h
include/mysql/server/private/mysqld_suffix.h
include/mysql/server/private/mysqld.h
include/mysql/server/private/mysys_err.h
include/mysql/server/private/opt_range.h
include/mysql/server/private/opt_subselect.h
include/mysql/server/private/opt_trace_context.h
include/mysql/server/private/opt_trace.h
include/mysql/server/private/parse_file.h
include/mysql/server/private/partition_element.h
include/mysql/server/private/partition_info.h
include/mysql/server/private/password.h
include/mysql/server/private/pfs_file_provider.h
include/mysql/server/private/pfs_idle_provider.h
include/mysql/server/private/pfs_memory_provider.h
include/mysql/server/private/pfs_metadata_provider.h
include/mysql/server/private/pfs_socket_provider.h
include/mysql/server/private/pfs_stage_provider.h
include/mysql/server/private/pfs_statement_provider.h
include/mysql/server/private/pfs_table_provider.h
include/mysql/server/private/pfs_thread_provider.h
include/mysql/server/private/pfs_transaction_provider.h
include/mysql/server/private/privilege.h
include/mysql/server/private/probes_mysql_nodtrace.h
include/mysql/server/private/probes_mysql.h
include/mysql/server/private/procedure.h
include/mysql/server/private/protocol.h
include/mysql/server/private/proxy_protocol.h
include/mysql/server/private/queues.h
include/mysql/server/private/records.h
include/mysql/server/private/repl_failsafe.h
include/mysql/server/private/replication.h
include/mysql/server/private/rijndael.h
include/mysql/server/private/rowid_filter.h
include/mysql/server/private/rpl_constants.h
include/mysql/server/private/rpl_filter.h
include/mysql/server/private/rpl_gtid.h
include/mysql/server/private/rpl_injector.h
include/mysql/server/private/rpl_mi.h
include/mysql/server/private/rpl_parallel.h
include/mysql/server/private/rpl_record_old.h
include/mysql/server/private/rpl_record.h
include/mysql/server/private/rpl_reporting.h
include/mysql/server/private/rpl_rli.h
include/mysql/server/private/rpl_tblmap.h
include/mysql/server/private/rpl_utility.h
include/mysql/server/private/scheduler.h
include/mysql/server/private/scope.h
include/mysql/server/private/select_handler.h
include/mysql/server/private/semisync_master_ack_receiver.h
include/mysql/server/private/semisync_master.h
include/mysql/server/private/semisync_slave.h
include/mysql/server/private/semisync.h
include/mysql/server/private/service_versions.h
include/mysql/server/private/session_tracker.h
include/mysql/server/private/set_var.h
include/mysql/server/private/slave.h
include/mysql/server/private/socketpair.h
include/mysql/server/private/source_revision.h
include/mysql/server/private/sp_cache.h
include/mysql/server/private/sp_head.h
include/mysql/server/private/sp_pcontext.h
include/mysql/server/private/sp_rcontext.h
include/mysql/server/private/sp.h
include/mysql/server/private/span.h
include/mysql/server/private/spatial.h
include/mysql/server/private/sql_acl.h
include/mysql/server/private/sql_admin.h
include/mysql/server/private/sql_alloc.h
include/mysql/server/private/sql_alter.h
include/mysql/server/private/sql_analyse.h
include/mysql/server/private/sql_analyze_stmt.h
include/mysql/server/private/sql_array.h
include/mysql/server/private/sql_audit.h
include/mysql/server/private/sql_base.h
include/mysql/server/private/sql_basic_types.h
include/mysql/server/private/sql_binlog.h
include/mysql/server/private/sql_bitmap.h
include/mysql/server/private/sql_bootstrap.h
include/mysql/server/private/sql_cache.h
include/mysql/server/private/sql_callback.h
include/mysql/server/private/sql_class.h
include/mysql/server/private/sql_cmd.h
include/mysql/server/private/sql_connect.h
include/mysql/server/private/sql_const.h
include/mysql/server/private/sql_crypt.h
include/mysql/server/private/sql_cte.h
include/mysql/server/private/sql_cursor.h
include/mysql/server/private/sql_db.h
include/mysql/server/private/sql_debug.h
include/mysql/server/private/sql_delete.h
include/mysql/server/private/sql_derived.h
include/mysql/server/private/sql_digest_stream.h
include/mysql/server/private/sql_digest.h
include/mysql/server/private/sql_do.h
include/mysql/server/private/sql_error.h
include/mysql/server/private/sql_explain.h
include/mysql/server/private/sql_expression_cache.h
include/mysql/server/private/sql_get_diagnostics.h
include/mysql/server/private/sql_handler.h
include/mysql/server/private/sql_help.h
include/mysql/server/private/sql_hset.h
include/mysql/server/private/sql_i_s.h
include/mysql/server/private/sql_insert.h
include/mysql/server/private/sql_join_cache.h
include/mysql/server/private/sql_lex.h
include/mysql/server/private/sql_lifo_buffer.h
include/mysql/server/private/sql_limit.h
include/mysql/server/private/sql_list.h
include/mysql/server/private/sql_load.h
include/mysql/server/private/sql_locale.h
include/mysql/server/private/sql_manager.h
include/mysql/server/private/sql_mode.h
include/mysql/server/private/sql_parse.h
include/mysql/server/private/sql_partition_admin.h
include/mysql/server/private/sql_partition.h
include/mysql/server/private/sql_plist.h
include/mysql/server/private/sql_plugin_compat.h
include/mysql/server/private/sql_plugin.h
include/mysql/server/private/sql_prepare.h
include/mysql/server/private/sql_priv.h
include/mysql/server/private/sql_profile.h
include/mysql/server/private/sql_reload.h
include/mysql/server/private/sql_rename.h
include/mysql/server/private/sql_repl.h
include/mysql/server/private/sql_schema.h
include/mysql/server/private/sql_select.h
include/mysql/server/private/sql_sequence.h
include/mysql/server/private/sql_servers.h
include/mysql/server/private/sql_show.h
include/mysql/server/private/sql_signal.h
include/mysql/server/private/sql_sort.h
include/mysql/server/private/sql_statistics.h
include/mysql/server/private/sql_string.h
include/mysql/server/private/sql_table.h
include/mysql/server/private/sql_tablespace.h
include/mysql/server/private/sql_test.h
include/mysql/server/private/sql_time.h
include/mysql/server/private/sql_trigger.h
include/mysql/server/private/sql_truncate.h
include/mysql/server/private/sql_tvc.h
include/mysql/server/private/sql_type_fixedbin_storage.h
include/mysql/server/private/sql_type_fixedbin.h
include/mysql/server/private/sql_type_geom.h
include/mysql/server/private/sql_type_int.h
include/mysql/server/private/sql_type_json.h
include/mysql/server/private/sql_type_real.h
include/mysql/server/private/sql_type_string.h
include/mysql/server/private/sql_type.h
include/mysql/server/private/sql_udf.h
include/mysql/server/private/sql_union.h
include/mysql/server/private/sql_update.h
include/mysql/server/private/sql_view.h
include/mysql/server/private/sql_window.h
include/mysql/server/private/ssl_compat.h
include/mysql/server/private/strfunc.h
include/mysql/server/private/structs.h
include/mysql/server/private/sys_vars_shared.h
include/mysql/server/private/t_ctype.h
include/mysql/server/private/table_cache.h
include/mysql/server/private/table.h
include/mysql/server/private/thr_alarm.h
include/mysql/server/private/thr_lock.h
include/mysql/server/private/thr_malloc.h
include/mysql/server/private/thr_timer.h
include/mysql/server/private/thread_cache.h
include/mysql/server/private/threadpool_generic.h
include/mysql/server/private/threadpool_winsockets.h
include/mysql/server/private/threadpool.h
include/mysql/server/private/transaction.h
include/mysql/server/private/tzfile.h
include/mysql/server/private/tztime.h
include/mysql/server/private/uniques.h
include/mysql/server/private/unireg.h
include/mysql/server/private/vers_string.h
include/mysql/server/private/violite.h
include/mysql/server/private/waiting_threads.h
include/mysql/server/private/welcome_copyright_notice.h
include/mysql/server/private/win_tzname_data.h
include/mysql/server/private/winservice.h
include/mysql/server/private/wqueue.h
include/mysql/server/private/wsrep_on.h
include/mysql/server/private/wsrep.h
include/mysql/server/private/xa.h
include/mysql/server/sql_common.h
include/mysql/server/sql_state.h
include/mysql/server/sslopt-case.h
include/mysql/server/sslopt-longopts.h
include/mysql/server/sslopt-vars.h
include/mysql/server/typelib.h
lib/libmariadb.a
lib/libmariadb.so
lib/libmariadb.so.3
lib/libmariadbclient.a
lib/libmysqlclient_r.a
lib/libmysqlclient_r.so
lib/libmysqlclient.a
lib/libmysqlclient.so
lib/libmysqlservices.a
lib/mysql/libmariadb.a
lib/mysql/libmariadb.so
lib/mysql/libmariadb.so.3
lib/mysql/libmariadbclient.a
lib/mysql/libmysqlclient_r.a
lib/mysql/libmysqlclient_r.so
lib/mysql/libmysqlclient.a
lib/mysql/libmysqlclient.so
lib/mysql/libmysqlservices.a
lib/mysql/pkgconfig/mariadb.pc
lib/mysql/plugin/adt_null.so
lib/mysql/plugin/auth_0x0100.so
lib/mysql/plugin/auth_ed25519.so
lib/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
lib/mysql/plugin/auth_pam_v1.so
lib/mysql/plugin/auth_pam.so
lib/mysql/plugin/caching_sha2_password.so
lib/mysql/plugin/client_ed25519.so
lib/mysql/plugin/daemon_example.ini
lib/mysql/plugin/debug_key_management.so
lib/mysql/plugin/dialog_examples.so
lib/mysql/plugin/dialog.so
lib/mysql/plugin/disks.so
lib/mysql/plugin/example_key_management.so
lib/mysql/plugin/file_key_management.so
lib/mysql/plugin/func_test.so
lib/mysql/plugin/ha_archive.so
lib/mysql/plugin/ha_blackhole.so
lib/mysql/plugin/ha_connect.so
lib/mysql/plugin/ha_federated.so
lib/mysql/plugin/ha_federatedx.so
lib/mysql/plugin/ha_s3.so
lib/mysql/plugin/ha_test_sql_discovery.so
lib/mysql/plugin/handlersocket.so
lib/mysql/plugin/libdaemon_example.so
lib/mysql/plugin/locales.so
lib/mysql/plugin/metadata_lock_info.so
lib/mysql/plugin/mypluglib.so
lib/mysql/plugin/mysql_clear_password.so
lib/mysql/plugin/qa_auth_client.so
lib/mysql/plugin/qa_auth_interface.so
lib/mysql/plugin/qa_auth_server.so
lib/mysql/plugin/query_cache_info.so
lib/mysql/plugin/query_response_time.so
lib/mysql/plugin/server_audit.so
lib/mysql/plugin/sha256_password.so
lib/mysql/plugin/simple_password_check.so
lib/mysql/plugin/sql_errlog.so
lib/mysql/plugin/test_sql_service.so
lib/mysql/plugin/test_versioning.so
lib/mysql/plugin/type_mysql_json.so
lib/mysql/plugin/type_mysql_timestamp.so
lib/mysql/plugin/type_test.so
lib/pkgconfig/libmariadb.pc
libexec/mariadbd
libexec/mysqld
man/man1/aria_chk.1.gz
man/man1/aria_dump_log.1.gz
man/man1/aria_ftdump.1.gz
man/man1/aria_pack.1.gz
man/man1/aria_read_log.1.gz
man/man1/aria_s3_copy.1.gz
man/man1/innochecksum.1.gz
man/man1/mariabackup.1.gz
man/man1/mariadb_config.1.gz
man/man1/mariadb-access.1.gz
man/man1/mariadb-admin.1.gz
man/man1/mariadb-backup.1.gz
man/man1/mariadb-binlog.1.gz
man/man1/mariadb-check.1.gz
man/man1/mariadb-client-test-embedded.1.gz
man/man1/mariadb-client-test.1.gz
man/man1/mariadb-conv.1.gz
man/man1/mariadb-convert-table-format.1.gz
man/man1/mariadb-dump.1.gz
man/man1/mariadb-dumpslow.1.gz
man/man1/mariadb-embedded.1.gz
man/man1/mariadb-find-rows.1.gz
man/man1/mariadb-fix-extensions.1.gz
man/man1/mariadb-hotcopy.1.gz
man/man1/mariadb-import.1.gz
man/man1/mariadb-install-db.1.gz
man/man1/mariadb-ldb.1.gz
man/man1/mariadb-plugin.1.gz
man/man1/mariadb-secure-installation.1.gz
man/man1/mariadb-service-convert.1.gz
man/man1/mariadb-setpermission.1.gz
man/man1/mariadb-show.1.gz
man/man1/mariadb-slap.1.gz
man/man1/mariadb-test-embedded.1.gz
man/man1/mariadb-test.1.gz
man/man1/mariadb-tzinfo-to-sql.1.gz
man/man1/mariadb-upgrade.1.gz
man/man1/mariadb-waitpid.1.gz
man/man1/mariadb.1.gz
man/man1/mariadbd-multi.1.gz
man/man1/mariadbd-safe-helper.1.gz
man/man1/mariadbd-safe.1.gz
man/man1/mbstream.1.gz
man/man1/msql2mysql.1.gz
man/man1/my_print_defaults.1.gz
man/man1/my_safe_process.1.gz
man/man1/myisam_ftdump.1.gz
man/man1/myisamchk.1.gz
man/man1/myisamlog.1.gz
man/man1/myisampack.1.gz
man/man1/myrocks_hotbackup.1.gz
man/man1/mysql_client_test_embedded.1.gz
man/man1/mysql_client_test.1.gz
man/man1/mysql_config.1.gz
man/man1/mysql_convert_table_format.1.gz
man/man1/mysql_embedded.1.gz
man/man1/mysql_find_rows.1.gz
man/man1/mysql_fix_extensions.1.gz
man/man1/mysql_install_db.1.gz
man/man1/mysql_ldb.1.gz
man/man1/mysql_plugin.1.gz
man/man1/mysql_secure_installation.1.gz
man/man1/mysql_setpermission.1.gz
man/man1/mysql_tzinfo_to_sql.1.gz
man/man1/mysql_upgrade.1.gz
man/man1/mysql_waitpid.1.gz
man/man1/mysql-stress-test.pl.1.gz
man/man1/mysql-test-run.pl.1.gz
man/man1/mysql.1.gz
man/man1/mysql.server.1.gz
man/man1/mysqlaccess.1.gz
man/man1/mysqladmin.1.gz
man/man1/mysqlbinlog.1.gz
man/man1/mysqlcheck.1.gz
man/man1/mysqld_multi.1.gz
man/man1/mysqld_safe_helper.1.gz
man/man1/mysqld_safe.1.gz
man/man1/mysqldump.1.gz
man/man1/mysqldumpslow.1.gz
man/man1/mysqlhotcopy.1.gz
man/man1/mysqlimport.1.gz
man/man1/mysqlshow.1.gz
man/man1/mysqlslap.1.gz
man/man1/mysqltest_embedded.1.gz
man/man1/mysqltest.1.gz
man/man1/mytop.1.gz
man/man1/perror.1.gz
man/man1/replace.1.gz
man/man1/resolve_stack_dump.1.gz
man/man1/resolveip.1.gz
man/man3/mariadb_cancel.3.gz
man/man3/mariadb_connection.3.gz
man/man3/mariadb_dyncol_check.3.gz
man/man3/mariadb_dyncol_column_cmp_named.3.gz
man/man3/mariadb_dyncol_column_count.3.gz
man/man3/mariadb_dyncol_create_many_named.3.gz
man/man3/mariadb_dyncol_create_many_num.3.gz
man/man3/mariadb_dyncol_exists_named.3.gz
man/man3/mariadb_dyncol_exists_num.3.gz
man/man3/mariadb_dyncol_free.3.gz
man/man3/mariadb_dyncol_list_named.3.gz
man/man3/mariadb_dyncol_list_num.3.gz
man/man3/mariadb_dyncol_unpack.3.gz
man/man3/mariadb_dyncol_update_many_named.3.gz
man/man3/mariadb_dyncol_update_many_num.3.gz
man/man3/mariadb_get_infov.3.gz
man/man3/mariadb_reconnect.3.gz
man/man3/mariadb_rpl_close.3.gz
man/man3/mariadb_rpl_fetch.3.gz
man/man3/mariadb_rpl_get_optionsv.3.gz
man/man3/mariadb_rpl_open.3.gz
man/man3/mariadb_rpl_optionsv.3.gz
man/man3/mariadb_stmt_execute_direct.3.gz
man/man3/mariadb_stmt_fetch_fields.3.gz
man/man3/mysql_affected_rows.3.gz
man/man3/mysql_autocommit.3.gz
man/man3/mysql_change_user.3.gz
man/man3/mysql_close.3.gz
man/man3/mysql_commit.3.gz
man/man3/mysql_data_seek.3.gz
man/man3/mysql_errno.3.gz
man/man3/mysql_error.3.gz
man/man3/mysql_fetch_field_direct.3.gz
man/man3/mysql_fetch_field.3.gz
man/man3/mysql_fetch_fields.3.gz
man/man3/mysql_fetch_lengths.3.gz
man/man3/mysql_fetch_row.3.gz
man/man3/mysql_field_count.3.gz
man/man3/mysql_field_seek.3.gz
man/man3/mysql_field_tell.3.gz
man/man3/mysql_free_result.3.gz
man/man3/mysql_get_character_set_info.3.gz
man/man3/mysql_get_client_info.3.gz
man/man3/mysql_get_client_version.3.gz
man/man3/mysql_get_host_info.3.gz
man/man3/mysql_get_proto_info.3.gz
man/man3/mysql_get_server_info.3.gz
man/man3/mysql_get_server_version.3.gz
man/man3/mysql_get_socket.3.gz
man/man3/mysql_get_ssl_cipher.3.gz
man/man3/mysql_hex_string.3.gz
man/man3/mysql_info.3.gz
man/man3/mysql_init.3.gz
man/man3/mysql_kill.3.gz
man/man3/mysql_more_results.3.gz
man/man3/mysql_next_result.3.gz
man/man3/mysql_num_fields.3.gz
man/man3/mysql_num_rows.3.gz
man/man3/mysql_options.3.gz
man/man3/mysql_options4.3.gz
man/man3/mysql_optionsv.3.gz
man/man3/mysql_ping.3.gz
man/man3/mysql_query.3.gz
man/man3/mysql_read_query_result.3.gz
man/man3/mysql_real_connect.3.gz
man/man3/mysql_real_escape_string.3.gz
man/man3/mysql_real_query.3.gz
man/man3/mysql_refresh.3.gz
man/man3/mysql_reset_connection.3.gz
man/man3/mysql_rollback.3.gz
man/man3/mysql_row_seek.3.gz
man/man3/mysql_row_tell.3.gz
man/man3/mysql_select_db.3.gz
man/man3/mysql_send_query.3.gz
man/man3/mysql_server_end.3.gz
man/man3/mysql_server_init.3.gz
man/man3/mysql_session_track_get_first.3.gz
man/man3/mysql_session_track_get_next.3.gz
man/man3/mysql_set_character_set.3.gz
man/man3/mysql_set_server_option.3.gz
man/man3/mysql_shutdown.3.gz
man/man3/mysql_sqlstate.3.gz
man/man3/mysql_ssl_set.3.gz
man/man3/mysql_stat.3.gz
man/man3/mysql_stmt_affected_rows.3.gz
man/man3/mysql_stmt_attr_get.3.gz
man/man3/mysql_stmt_attr_set.3.gz
man/man3/mysql_stmt_bind_param.3.gz
man/man3/mysql_stmt_bind_result.3.gz
man/man3/mysql_stmt_close.3.gz
man/man3/mysql_stmt_data_seek.3.gz
man/man3/mysql_stmt_errno.3.gz
man/man3/mysql_stmt_error.3.gz
man/man3/mysql_stmt_execute.3.gz
man/man3/mysql_stmt_fetch_column.3.gz
man/man3/mysql_stmt_fetch.3.gz
man/man3/mysql_stmt_field_count.3.gz
man/man3/mysql_stmt_free_result.3.gz
man/man3/mysql_stmt_init.3.gz
man/man3/mysql_stmt_insert_id.3.gz
man/man3/mysql_stmt_more_results.3.gz
man/man3/mysql_stmt_next_result.3.gz
man/man3/mysql_stmt_num_rows.3.gz
man/man3/mysql_stmt_param_count.3.gz
man/man3/mysql_stmt_param_metadata.3.gz
man/man3/mysql_stmt_prepare.3.gz
man/man3/mysql_stmt_reset.3.gz
man/man3/mysql_stmt_result_metadata.3.gz
man/man3/mysql_stmt_row_seek.3.gz
man/man3/mysql_stmt_row_tell.3.gz
man/man3/mysql_stmt_send_long_data.3.gz
man/man3/mysql_stmt_sqlstate.3.gz
man/man3/mysql_stmt_store_result.3.gz
man/man3/mysql_stmt_warning_count.3.gz
man/man3/mysql_store_result.3.gz
man/man3/mysql_thread_end.3.gz
man/man3/mysql_thread_id.3.gz
man/man3/mysql_thread_init.3.gz
man/man3/mysql_use_result.3.gz
man/man3/mysql_warning_count.3.gz
man/man8/mariadbd.8.gz
man/man8/mysqld.8.gz
share/aclocal/mysql.m4
share/doc/mysql/COPYING
share/doc/mysql/CREDITS
share/doc/mysql/INSTALL-BINARY
share/doc/mysql/README.md
share/doc/mysql/THIRDPARTY
share/mysql/binary-configure
share/mysql/bulgarian/errmsg.sys
share/mysql/charsets/armscii8.xml
share/mysql/charsets/ascii.xml
share/mysql/charsets/cp1250.xml
share/mysql/charsets/cp1251.xml
share/mysql/charsets/cp1256.xml
share/mysql/charsets/cp1257.xml
share/mysql/charsets/cp850.xml
share/mysql/charsets/cp852.xml
share/mysql/charsets/cp866.xml
share/mysql/charsets/dec8.xml
share/mysql/charsets/geostd8.xml
share/mysql/charsets/greek.xml
share/mysql/charsets/hebrew.xml
share/mysql/charsets/hp8.xml
share/mysql/charsets/Index.xml
share/mysql/charsets/keybcs2.xml
share/mysql/charsets/koi8r.xml
share/mysql/charsets/koi8u.xml
share/mysql/charsets/latin1.xml
share/mysql/charsets/latin2.xml
share/mysql/charsets/latin5.xml
share/mysql/charsets/latin7.xml
share/mysql/charsets/macce.xml
share/mysql/charsets/macroman.xml
share/mysql/charsets/README
share/mysql/charsets/swe7.xml
share/mysql/chinese/errmsg.sys
share/mysql/czech/errmsg.sys
share/mysql/danish/errmsg.sys
share/mysql/dutch/errmsg.sys
share/mysql/english/errmsg.sys
share/mysql/errmsg-utf8.txt
share/mysql/estonian/errmsg.sys
share/mysql/fill_help_tables.sql
share/mysql/french/errmsg.sys
share/mysql/german/errmsg.sys
share/mysql/greek/errmsg.sys
share/mysql/hindi/errmsg.sys
share/mysql/hungarian/errmsg.sys
share/mysql/italian/errmsg.sys
share/mysql/japanese/errmsg.sys
share/mysql/korean/errmsg.sys
share/mysql/magic
share/mysql/maria_add_gis_sp_bootstrap.sql
share/mysql/maria_add_gis_sp.sql
share/mysql/mysql_performance_tables.sql
share/mysql/mysql_sys_schema.sql
share/mysql/mysql_system_tables_data.sql
share/mysql/mysql_system_tables.sql
share/mysql/mysql_test_data_timezone.sql
share/mysql/mysql_test_db.sql
share/mysql/mysql-log-rotate
share/mysql/mysql.server
share/mysql/mysqld_multi.server
share/mysql/norwegian-ny/errmsg.sys
share/mysql/norwegian/errmsg.sys
share/mysql/polish/errmsg.sys
share/mysql/portuguese/errmsg.sys
share/mysql/romanian/errmsg.sys
share/mysql/russian/errmsg.sys
share/mysql/serbian/errmsg.sys
share/mysql/slovak/errmsg.sys
share/mysql/spanish/errmsg.sys
share/mysql/swedish/errmsg.sys
share/mysql/ukrainian/errmsg.sys
share/pam_user_map.so
share/user_map.conf
@dir include/mysql/mariadb
@dir include/mysql/mysql
@dir include/mysql/server/mysql/psi
@dir include/mysql/server/mysql
@dir include/mysql/server/private/atomic
@dir include/mysql/server/private
@dir include/mysql/server
@dir include/mysql
@dir lib/mysql/pkgconfig
@dir lib/mysql/plugin/auth_pam_tool_dir
@dir lib/mysql/plugin
@dir share/mysql/bulgarian
@dir share/mysql/charsets
@dir share/mysql/chinese
@dir share/mysql/czech
@dir share/mysql/danish
@dir share/mysql/dutch
@dir share/mysql/english
@dir share/mysql/estonian
@dir share/mysql/french
@dir share/mysql/german
@dir share/mysql/greek
@dir share/mysql/hindi
@dir share/mysql/hungarian
@dir share/mysql/italian
@dir share/mysql/japanese
@dir share/mysql/korean
@dir share/mysql/norwegian
@dir share/mysql/norwegian-ny
@dir share/mysql/polish
@dir share/mysql/portuguese
@dir share/mysql/romanian
@dir share/mysql/russian
@dir share/mysql/serbian
@dir share/mysql/slovak
@dir share/mysql/spanish
@dir share/mysql/swedish
@dir share/mysql/ukrainian
@dir share/mysql

153
data/postgresql/Makefile Normal file
View File

@@ -0,0 +1,153 @@
#
# $Id: Makefile 1575 2008-07-31 07:53:53Z root $
#
PORTNAME= postgresql
PORTVERSION= 15.4
CATEGORIES= databases
MASTER_SITES+= http://ftp.postgresql.org/pub/%SUBDIR%/
MASTER_SITES+= http://ftp.de.postgresql.org/%SUBDIR%/
MASTER_SITES+= ftp://ftp.digex.net/pub/packages/database/postgresql/%SUBDIR%/
MASTER_SITES+= ftp://ftp.sunet.se/pub/unix/databases/relational/postgresql/%SUBDIR%/
MASTER_SITES+= ftp://ftp.chg.ru/pub/databases/postgresql/%SUBDIR%/
MASTER_SITES+= ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,misc/db/postgresql/&,}
MASTER_SITE_SUBDIR= source/v${PORTVERSION}
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= onborodin@gmail.com
COMMENT= A robust, next generation, object-relational DBMS
LIB_DEPENDS+= libiconv.so:text/libiconv
LIB_DEPENDS+= libintl.so:devel/gettext
#LIB_DEPENDS+= libicuuc.so:devel/libicu
USES+= tar:bzip2 gmake bison pkgconfig
PG_OWNER= pgsql
PG_OWNER_ID= 90
PG_GROUP= pgsql
PG_GROUP_ID= 90
PG_DOC_SUBDIR= doc
PG_DOC_DIR= ${PREFIX}/${PG_DOC_SUBDIR}
PG_VAR_DIR= /var
PG_DB_DIR= ${PG_VAR_DIR}/db/pgsql
PG_LOGDIR= ${PG_VAR_DIR}/log/pgsql
PG_RUN_DIR= ${PG_VAR_DIR}/run/pgsql
USES+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc
CONFIGURE_ARGS+= --with-includes=${LOCALBASE}/include
CONFIGURE_ARGS+= --with-libraries=${LOCALBASE}/lib
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/${PORTNAME}
CONFIGURE_ARGS+= --datarootdir=${PREFIX}/share/postgresql
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/postgresql
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --without-tcl
CONFIGURE_ARGS+= --without-python
CONFIGURE_ARGS+= --without-pam
CONFIGURE_ARGS+= --enable-thread-safety
CONFIGURE_ARGS+= --enable-nls
CONFIGURE_ARGS+= --with-system-tzdata=/usr/share/zoneinfo
######CONFIGURE_ARGS+= --disable-integer-datetimes
CONFIGURE_ARGS+= --with-icu
CONFIGURE_ARGS+= --enable-depend
CONFIGURE_ARGS+= --without-ldap
CONFIGURE_ARGS+= --with-openssl
#CONFIGURE_ARGS+= --with-libedit-preferred
#CFLAGS+= -I/usr/include/edit
#CPPFLAGS+= -I/usr/include/edit
CFLAGS+= -pthread
CONFIGURE_ENV+= INCLUDES="${INCLUDES}"
CONFIGURE_ENV+= PTHREAD_LIBS="-lpthread"
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGINSTALL= ${WRKDIR}/pkg-install
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-install pkg-deinstall pkg-message
USE_RC_SUBR+= pgsql
PLIST_SUB+= PG_DOC_SUBDIR=${PG_DOC_SUBDIR}
SUB_LIST+= PG_OWNER=${PG_OWNER}
SUB_LIST+= PG_GROUP=${PG_GROUP}
SUB_LIST+= PG_OWNER_ID=${PG_OWNER_ID}
SUB_LIST+= PG_GROUP_ID=${PG_GROUP_ID}
SUB_LIST+= PG_DB_DIR=${PG_DB_DIR}
SUB_LIST+= PG_RUN_DIR=${PG_RUN_DIR}
SUB_LIST+= PG_LOG_DIR=${PG_LOG_DIR}
BINS+= clusterdb
BINS+= createdb
BINS+= createuser
BINS+= dropdb
BINS+= dropuser
BINS+= initdb
BINS+= reindexdb
BINS+= vacuumdb
BINS+= vacuumlo
BINS+= oid2name
BIN_PREFIX= pg_
SUB_LIST+= BIN_PREFIX=${BIN_PREFIX}
PLIST_SUB= BIN_PREFIX=${BIN_PREFIX}
_LIBS+= libecpg.a
_LIBS+= libecpg.so
_LIBS+= libecpg.so.6
_LIBS+= libecpg_compat.a
_LIBS+= libecpg_compat.so
_LIBS+= libecpg_compat.so.3
_LIBS+= libpgport.a
_LIBS+= libpgtypes.a
_LIBS+= libpgtypes.so
_LIBS+= libpgtypes.so.3
_LIBS+= libpq.a
_LIBS+= libpq.so
_LIBS+= libpq.so.5
post-patch:
${RM} -f ${WRKSRC}/src/backend/parser/gram.c
${RM} -f ${WRKSRC}/src/backend/parser/gram.h
${RM} -f ${WRKSRC}/src/interfaces/ecpg/preproc/preproc.c
${RM} -f ${WRKSRC}/src/interfaces/ecpg/preproc/preproc.h
post-build:
cd ${WRKSRC}/contrib && ${GMAKE} all
post-install:
cd ${WRKSRC}/contrib && ${GMAKE} DESTDIR=${STAGEDIR} install
cd ${WRKSRC} && ${GMAKE} DESTDIR=${STAGEDIR} install-docs
.for file in ${BINS}
cd ${STAGEDIR}/${PREFIX}/bin && ${MV} ${file} ${BIN_PREFIX}${file}
cd ${STAGEDIR}/${PREFIX}/man/man1 && ${MV} ${file}.1 ${BIN_PREFIX}${file}.1
.endfor
.for file in ${MAN1_DEL}
cd ${STAGEDIR}/${PREFIX}/man/man1 && ${RM} -f ${file}
.endfor
#post-patch:
# cd ${WRKSRC} && autoconf
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 1100000
LIB_DEPENDS+= libreadline.so:devel/libreadline
.endif
.include <bsd.port.post.mk>
#EOF

3
data/postgresql/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1709838501
SHA256 (postgresql-15.4.tar.bz2) = baec5a4bdc4437336653b6cb5d9ed89be5bd5c0c58b94e0becee0a999e63c8f9
SIZE (postgresql-15.4.tar.bz2) = 22850355

View File

@@ -0,0 +1,14 @@
--- ./contrib/Makefile.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./contrib/Makefile 2022-02-23 20:23:06.873598000 +0200
@@ -5,6 +5,11 @@
include $(top_builddir)/src/Makefile.global
SUBDIRS = \
+ oid2name \
+ vacuumlo
+
+
+NOSUBDIRS = \
adminpack \
amcheck \
auth_delay \

View File

@@ -0,0 +1,9 @@
--- ./doc/Makefile.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./doc/Makefile 2022-02-23 20:23:06.819396000 +0200
@@ -12,5 +12,5 @@
top_builddir = ..
include $(top_builddir)/src/Makefile.global
-all distprep html man install installdirs uninstall clean distclean maintainer-clean:
+all distprep man install installdirs uninstall clean distclean maintainer-clean:
$(MAKE) -C src $@

View File

@@ -0,0 +1,41 @@
--- ./doc/src/sgml/Makefile.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./doc/src/sgml/Makefile 2022-02-23 20:23:06.825980000 +0200
@@ -15,7 +15,7 @@
# Make "html" the default target, since that is what most people tend
# to want to use.
-html:
+man:
# We don't need the tree-wide headers or install support here.
NO_GENERATED_HEADERS=yes
@@ -26,7 +26,7 @@
include $(top_builddir)/src/Makefile.global
-all: html man
+all: man
distprep: html distprep-man
@@ -65,7 +65,6 @@
## Man pages
##
-man distprep-man: man-stamp
man-stamp: stylesheet-man.xsl postgres.sgml $(ALLSGML)
$(XMLLINT) $(XMLINCLUDE) --noout --valid $(word 2,$^)
@@ -220,10 +219,10 @@
## Install
##
-install: install-html install-man
+install: install-man
installdirs:
- $(MKDIR_P) '$(DESTDIR)$(htmldir)'/html $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
+ $(MKDIR_P) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
# If the install used a man directory shared with other applications, this will remove all files.
uninstall:

View File

@@ -0,0 +1,11 @@
--- ./src/backend/Makefile.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./src/backend/Makefile 2022-02-23 20:23:06.868037000 +0200
@@ -116,6 +116,8 @@
$(top_builddir)/src/port/libpgport_srv.a: | submake-libpgport
+symlinks: $(top_builddir)/src/include/parser/gram.h $(top_builddir)/src/include/storage/lwlocknames.h
+
# The postgres.o target is needed by the rule in Makefile.global that
# creates the exports file when MAKE_EXPORTS = true.

View File

@@ -0,0 +1,19 @@
--- ./src/backend/jit/llvm/llvmjit_inline.cpp.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./src/backend/jit/llvm/llvmjit_inline.cpp 2022-02-23 20:23:06.814278000 +0200
@@ -609,6 +609,16 @@
elog(FATAL, "failed to materialize metadata");
/*
+ * Don't inline functions with thread-local variables until
+ * related crashes are investigated (see BUG #16696)
+ */
+ if (rv->isThreadLocal()) {
+ ilog(DEBUG1, "cannot inline %s due to thread-local variable %s",
+ F.getName().data(), rv->getName().data());
+ return false;
+ }
+
+ /*
* Don't inline functions that access thread local variables. That
* doesn't work on current LLVM releases (but might in future).
*/

View File

@@ -0,0 +1,21 @@
--- ./src/backend/utils/misc/postgresql.conf.sample.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./src/backend/utils/misc/postgresql.conf.sample 2022-02-23 20:23:06.850278000 +0200
@@ -430,6 +430,7 @@
# - Where to Log -
+log_destination = 'syslog'
#log_destination = 'stderr' # Valid values are combinations of
# stderr, csvlog, syslog, and eventlog,
# depending on platform. csvlog
@@ -586,7 +587,9 @@
#cluster_name = '' # added to process titles if nonempty
# (change requires restart)
-#update_process_title = on
+
+# On FreeBSD, this is a performance hog, so keep it off if you need speed
+update_process_title = off
#------------------------------------------------------------------------------

View File

@@ -0,0 +1,20 @@
--- ./src/include/storage/s_lock.h.orig 2022-02-07 23:15:36.000000000 +0200
+++ ./src/include/storage/s_lock.h 2022-02-23 20:23:06.858809000 +0200
@@ -321,7 +321,7 @@
* We use the int-width variant of the builtin because it works on more chips
* than other widths.
*/
-#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64)
+#if defined(__arm__) || defined(__arm) || defined(__aarch64__) || defined(__aarch64) || defined(__riscv)
#ifdef HAVE_GCC__SYNC_INT32_TAS
#define HAS_TEST_AND_SET
@@ -338,7 +338,7 @@
#define S_UNLOCK(lock) __sync_lock_release(lock)
#endif /* HAVE_GCC__SYNC_INT32_TAS */
-#endif /* __arm__ || __arm || __aarch64__ || __aarch64 */
+#endif /* __arm__ || __arm || __aarch64__ || __aarch64 || __riscv */
/*

67
data/postgresql/files/pgsql.in Executable file
View File

@@ -0,0 +1,67 @@
#!/bin/sh
# PROVIDE: pgsql
# REQUIRE: LOGIN
prefix="%%PREFIX%%";
pgsql_data="%%PG_DB_DIR%%";
. /etc/rc.subr
# -i - enable internet sockets
# -l - enable ssl
pgsql_flags=" -i ";
pgsql_owner="%%PG_OWNER%%";
name="pgsql";
rcvar="pgsql_enable";
procname="${prefix}/bin/postgres";
pidfile="${pgsql_data}/postmaster.pid";
pgctl="${prefix}/bin/pg_ctl";
pgctl_args="-s -w -m fast -D ${pgsql_data} -o \"${pgsql_flags}\"";
extra_commands="initdb reload";
start_cmd="pgsql_command_start";
stop_cmd="pgsql_command_stop";
restart_cmd="pgsql_command_restart";
reload_cmd="pgsql_command_reload";
initdb_cmd="pgsql_initdb";
pgsql_command_start() {
if [ "$(check_process $procname)x" != "x" ]; then
echo "$name already running? ($(check_process $procname))";
exit 0;
fi
su ${pgsql_owner} -c "exec ${pgctl} ${pgctl_args} start" && echo "Starting pgsql.";
}
pgsql_command_stop() {
su ${pgsql_owner} -c "exec ${pgctl} ${pgctl_args} stop" && echo "Stoping pgsql.";
wait_for_pids $(check_process "$procname")
}
pgsql_command_restart() {
pgsql_command_stop;
# wait_for_pids $(check_process "$procname")
pgsql_command_start;
}
pgsql_command_reload() {
su ${pgsql_owner} -c "exec ${pgctl} ${pgctl_args} reload" && echo "Reload pgsql.";
}
pgsql_initdb() {
su ${pgsql_owner} -c "exec ${prefix}/bin//%%BIN_PREFIX%%initdb -D ${pgsql_data} -E UTF8 --locale en_GB.UTF-8 -U pgsql -W -A md5" && echo "Init pgsql database in ${pgsql_data}";
}
load_rc_config $name
: ${pgsql_enable=NO}
run_rc_command "$1"
#EOF

View File

@@ -0,0 +1,15 @@
#!/bin/sh -x
PG_OWNER="%%PG_OWNER%%"
PG_GROUP="%%PG_GROUP%%"
PG_DB_DIR="%%PG_DB_DIR%%"
case $2 in
DEINSTALL)
;;
POST-DEINSTALL)
rmdir ${PG_DB_DIR} || (ls -l ${PG_DB_DIR} ; du -sch ${PG_DB_DIR})
;;
esac
#EOF

View File

@@ -0,0 +1,30 @@
#!/bin/sh -x
PG_OWNER="%%PG_OWNER%%"
PG_GROUP="%%PG_GROUP%%"
PG_OWNER_ID="%%PG_OWNER_ID%%"
PG_GROUP_ID="%%PG_GROUP_ID%%"
PG_DB_DIR="%%PG_DB_DIR%%"
PKG__PPREFIX="/notexist"
case $2 in
PRE-INSTALL)
pw group add ${PG_GROUP} -g ${PG_GROUP_ID}
pw user add ${PG_OWNER} -u ${PG_OWNER_ID} -g ${PG_GROUP} \
-d ${PKG_PREFIX} -m -s "/bin/sh" \
-c "postgresql"
pw group mod ${PG_GROUP} -M ${PG_OWNER}
pw user show ${PG_OWNER}
pw group show ${PG_GROUP}
mkdir -p ${PG_DB_DIR}
chown ${PG_OWNER}:${PG_GROUP} ${PG_DB_DIR}
chmod 0700 ${PG_DB_DIR}
;;
POST-INSTALL)
;;
esac
#EOF

View File

@@ -0,0 +1,17 @@
***************************************************************************
1 For initialize databases area with admin %%PG_OWNER%% and base
encoding UTF8:
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_initdb -D %%PG_DB_DIR%% \
-E UTF8 --locale en_GB.UTF-8 -U %%PG_OWNER%% -W -A md5'
2 Add user:
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_createuser --createrole \
--superuser --createdb --pwprompt --echo username'
3 Create database:
su %%PG_OWNER%% -c '%%PREFIX%%/bin/pg_createdb db_name'
***************************************************************************

24
data/postgresql/pkg-descr Normal file
View File

@@ -0,0 +1,24 @@
PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
derived from the Berkeley Postgres database management system. While
PostgreSQL retains the powerful object-relational data model, rich data types
and easy extensibility of Postgres, it replaces the PostQuel query language
with an extended subset of SQL.
The original Postgres code was the effort of many graduate students,
undergraduate students, and staff programmers working under the direction of
Professor Michael Stonebraker at the University of California, Berkeley. In
1995, Andrew Yu and Jolly Chen took on the task of converting the DBMS query
language to SQL and created a new database system which came to known as
Postgres95. Many others contributed to the porting, testing, debugging and
enhancement of the Postgres95 code. As the code improved, and 1995 faded into
memory, PostgreSQL was born.
PostgreSQL development is presently being performed by a team of Internet
developers who are now responsible for all current and future development. The
development team coordinator is Marc G. Fournier (scrappy@PostgreSQL.ORG).
Support is available from the PostgreSQL developer/user community through the
support mailing list (questions@PostgreSQL.ORG).
PostgreSQL is free and the complete source is available.
WWW: http://www.postgresql.org

1720
data/postgresql/pkg-plist Normal file

File diff suppressed because it is too large Load Diff

38
data/unixODBC/Makefile Normal file
View File

@@ -0,0 +1,38 @@
#
# $Id$
#
PORTNAME= unixODBC
PORTVERSION= 2.3.4
CATEGORIES= databases
MASTER_SITES= ftp://ftp.unixodbc.org/pub/unixODBC/
#PKGNAMEPREFIX= lib
MAINTAINER= ports@FreeBSD.org
COMMENT= ODBC library suite for Unix
GNU_CONFIGURE= yes
USE+= gmake
CONFIGURE_ENV= ac_cv_header_msql_h=no
CONFIGURE_ARGS= --enable-static --enable-shared
#CONFIGURE_ARGS+= --enable-iconv
CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --enable-threads
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
post-patch:
${REINPLACE_CMD} -e 's|\.ini$$|.ini.sample|' ${WRKSRC}/Makefile.in
.include <bsd.port.pre.mk>
.if (${OSVERSION} > 1100000)
LIB_DEPENDS+= libreadline.so:devel/libreadline
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.include <bsd.port.post.mk>
#EOF

2
data/unixODBC/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (unixODBC-2.3.4.tar.gz) = 2e1509a96bb18d248bf08ead0d74804957304ff7c6f8b2e5965309c632421e39
SIZE (unixODBC-2.3.4.tar.gz) = 1830660

View File

@@ -0,0 +1,9 @@
==============================================================================
If installing for MySQL, then copy the example configuration file to your home
directory as ".odbc.ini", and modify to define specific MySQL database(s). The
file is located at "%%EXAMPLESDIR%%/MySQL/iodbc.ini".
This is required to use MySQL databases from OpenOffice.org, for example.
==============================================================================

14
data/unixODBC/pkg-descr Normal file
View File

@@ -0,0 +1,14 @@
From the web site:
What is the unixODBC Project?
The unixODBC Project goals are to develop and promote unixODBC to be the
definitive standard for ODBC on the Linux platform.
What is ODBC?
ODBC is an open specification for providing application developers with
a predictable API with which to access Data Sources. Data Sources include
SQL Servers and any Data Source with an ODBC Driver.
WWW: http://www.unixodbc.org/

37
data/unixODBC/pkg-plist Normal file
View File

@@ -0,0 +1,37 @@
bin/dltest
bin/isql
bin/iusql
bin/odbc_config
bin/odbcinst
bin/slencheck
include/autotest.h
include/odbcinst.h
include/odbcinstext.h
include/sql.h
include/sqlext.h
include/sqlspi.h
include/sqltypes.h
include/sqlucode.h
include/unixodbc_conf.h
include/uodbc_extras.h
include/uodbc_stats.h
lib/libodbc.a
lib/libodbc.la
lib/libodbc.so
lib/libodbc.so.2
lib/libodbccr.a
lib/libodbccr.la
lib/libodbccr.so
lib/libodbccr.so.2
lib/libodbcinst.a
lib/libodbcinst.la
lib/libodbcinst.so
lib/libodbcinst.so.2
man/man1/dltest.1.gz
man/man1/isql.1.gz
man/man1/iusql.1.gz
man/man1/odbc_config.1.gz
man/man1/odbcinst.1.gz
man/man5/odbc.ini.5.gz
man/man5/odbcinst.ini.5.gz
man/man7/unixODBC.7.gz

View File

@@ -0,0 +1,11 @@
--- ./Modules/GNUInstallDirs.cmake.orig 2025-08-27 09:23:22.300542000 +0200
+++ ./Modules/GNUInstallDirs.cmake 2025-08-27 09:24:42.220931000 +0200
@@ -330,7 +330,7 @@
"Info documentation (DATAROOTDIR/info)")
endif()
-if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$" AND NOT CMAKE_SYSTEM_NAME MATCHES "^(FreeBSD)$")
+if(CMAKE_SYSTEM_NAME MATCHES "^(([^k].*)?BSD|DragonFly)$")
_GNUInstallDirs_cache_path_fallback(CMAKE_INSTALL_MANDIR "man"
"Man documentation (man)")
else()

23
devel/gperf/Makefile Normal file
View File

@@ -0,0 +1,23 @@
#
# $ID$
#
PORTNAME= gperf
PORTVERSION= 3.1
CATEGORIES= devel
#MASTER_SITES= ${MASTER_SITE_GNU}
#MASTER_SITE_SUBDIR= gperf
MAINTAINER= onborodin@gmail.com
COMMENT= Generates perfect hash functions for sets of keywords
USE_CXXSTD= gnu++98
GNU_CONFIGURE= yes
USES+= gmake
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
INFO= gperf
.include <bsd.port.mk>
#EOF

3
devel/gperf/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1756194841
SHA256 (gperf-3.1.tar.gz) = 588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2
SIZE (gperf-3.1.tar.gz) = 1215925

View File

@@ -0,0 +1,22 @@
--- ./doc/Makefile.in.orig 2007-04-04 13:56:28.000000000 +0300
+++ ./doc/Makefile.in 2014-12-31 00:41:07.000000000 +0200
@@ -117,8 +117,8 @@
# $(INSTALL_DATA) $(srcdir)/gperf.ps $(DESTDIR)$(psdir)/gperf.ps
# $(MKINSTALLDIRS) $(DESTDIR)$(pdfdir)
# $(INSTALL_DATA) $(srcdir)/gperf.pdf $(DESTDIR)$(pdfdir)/gperf.pdf
- $(MKINSTALLDIRS) $(DESTDIR)$(htmldir)
- $(INSTALL_DATA) $(srcdir)/gperf.html $(DESTDIR)$(htmldir)/gperf.html
+# $(MKINSTALLDIRS) $(DESTDIR)$(htmldir)
+# $(INSTALL_DATA) $(srcdir)/gperf.html $(DESTDIR)$(htmldir)/gperf.html
installdirs : force
$(MKINSTALLDIRS) $(DESTDIR)$(infodir)
@@ -126,7 +126,7 @@
# $(MKINSTALLDIRS) $(DESTDIR)$(dvidir)
# $(MKINSTALLDIRS) $(DESTDIR)$(psdir)
# $(MKINSTALLDIRS) $(DESTDIR)$(pdfdir)
- $(MKINSTALLDIRS) $(DESTDIR)$(htmldir)
+# $(MKINSTALLDIRS) $(DESTDIR)$(htmldir)
uninstall : force
$(RM) $(DESTDIR)$(infodir)/gperf.info

24
devel/gperf/pkg-descr Normal file
View File

@@ -0,0 +1,24 @@
While teaching a data structures course at University of California,
Irvine, I developed a program called GPERF that generates perfect hash
functions for sets of key words. A perfect hash function is simply:
A hash function and a data structure that allows
recognition of a key word in a set of words using
exactly 1 probe into the data structure.
The gperf.texinfo file explains how the program works, the form of the
input, what options are available, and hints on choosing the best
options for particular key word sets. The texinfo file is readable
both via the GNU emacs `info' command, and is also suitable for
typesetting with TeX.
The enclosed Makefile creates the executable program ``gperf'' and
also runs some tests.
Output from the GPERF program is used to recognize reserved words in
the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU
indent program.
LICENSE: GPL2 or later
WWW: http://www.gnu.org/software/gperf/

2
devel/gperf/pkg-plist Normal file
View File

@@ -0,0 +1,2 @@
bin/gperf
man/man1/gperf.1.gz

23
devel/pkg-config/Makefile Normal file
View File

@@ -0,0 +1,23 @@
#
# $Id: Makefile 2619 2009-09-27 20:12:17Z root $
# $URL: file:///usr2/svn/ports5/devel/pkg-config/Makefile $
#
PORTNAME= pkg-config
PORTVERSION= 0.25
CATEGORIES= devel
MASTER_SITES= http://pkgconfig.freedesktop.org/releases/
MAINTAINER= onborodin@gmail.com
COMMENT= A utility to retrieve information about installed libraries
USES+= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-pc-path=${LOCALBASE}/lib/pkgconfig
CONFIGURE_ARGS+= --disable-threads
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
post-patch:
${REINPLACE_CMD} -e 's|install-data-am: install-dist_docDATA|install-data-am: |' ${WRKSRC}/Makefile.in
.include <bsd.port.mk>
#EOF

View File

@@ -0,0 +1,3 @@
MD5 (pkg-config-0.25.tar.gz) = a3270bab3f4b69b7dc6dbdacbcae9745
SHA256 (pkg-config-0.25.tar.gz) = 3ba691ee2431f32ccb8efa131e59bf23e37f122dc66791309023ca6dcefcd10e
SIZE (pkg-config-0.25.tar.gz) = 988899

View File

@@ -0,0 +1,73 @@
--- ./parse.c.orig 2010-05-27 23:21:36.000000000 +0300
+++ ./parse.c 2010-10-09 20:56:13.000000000 +0300
@@ -1460,19 +1460,19 @@
}
else
{
- /* Check for the module in gnome-config */
+ /* Check for the module in pkg-config */
char *output;
char *p;
char *command;
- debug_spew ("Calling gnome-config\n");
+ debug_spew ("Calling pkg-config\n");
/* Annoyingly, --modversion doesn't return a failure
* code if the lib is unknown, so we have to use --libs
* for that.
*/
- command = g_strdup_printf ("gnome-config --libs %s",
+ command = g_strdup_printf ("pkg-config --libs %s",
name);
if (!try_command (command))
@@ -1484,7 +1484,7 @@
else
g_free (command);
- command = g_strdup_printf ("gnome-config --modversion %s",
+ command = g_strdup_printf ("pkg-config --modversion %s",
name);
output = backticks (command);
@@ -1495,7 +1495,7 @@
return NULL;
}
- /* Unknown modules give "Unknown library `foo'" from gnome-config
+ /* Unknown modules give "Unknown library `foo'" from pkg-config
* (but on stderr so this is useless, nevermind)
*/
if (strstr (output, "Unknown") || *output == '\0')
@@ -1505,7 +1505,7 @@
return NULL;
}
- /* gnome-config --modversion gnomeui outputs e.g. "gnome-libs-1.2.4"
+ /* pkg-config --modversion gnomeui outputs e.g. "gnome-libs-1.2.4"
* or libglade-0.12
*/
p = output;
@@ -1543,16 +1543,16 @@
pkg->key = g_strdup (name);
pkg->description = g_strdup ("No description");
- command = g_strdup_printf ("gnome-config --libs %s", name);
+ command = g_strdup_printf ("pkg-config --libs %s", name);
output = backticks (command);
g_free (command);
- parse_libs (pkg, output, "gnome-config");
+ parse_libs (pkg, output, "pkg-config");
g_free (output);
- command = g_strdup_printf ("gnome-config --cflags %s", name);
+ command = g_strdup_printf ("pkg-config --cflags %s", name);
output = backticks (command);
g_free (command);
- parse_cflags (pkg, output, "gnome-config");
+ parse_cflags (pkg, output, "pkg-config");
g_free (output);
return pkg;

View File

@@ -0,0 +1,31 @@
--- ./glib-1.2.10/Makefile.in.orig 2010-05-09 10:18:11.000000000 +0300
+++ ./glib-1.2.10/Makefile.in 2013-11-02 22:29:04.000000000 +0300
@@ -38,8 +38,8 @@
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
-noinst_PROGRAMS = testglib$(EXEEXT) testgdate$(EXEEXT) \
- testgdateparser$(EXEEXT)
+noinst_PROGRAMS =
+
subdir = .
DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
@@ -288,7 +288,7 @@
# require automake 1.4
AUTOMAKE_OPTIONS = 1.4
-SUBDIRS = . gmodule gthread docs tests
+SUBDIRS = . gmodule gthread docs
configincludedir = $(pkglibdir)/include
noinst_SCRIPTS = glib-config
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@
@@ -842,7 +842,7 @@
installdirs: installdirs-recursive
installdirs-am:
install: $(BUILT_SOURCES)
- $(MAKE) $(AM_MAKEFLAGS) install-recursive
+# $(MAKE) $(AM_MAKEFLAGS) install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive

View File

@@ -0,0 +1,12 @@
--- ./glib-1.2.10/glib.h.orig 2001-02-27 05:44:38.000000000 +0200
+++ ./glib-1.2.10/glib.h 2013-11-02 22:39:31.000000000 +0300
@@ -218,6 +218,9 @@
# endif /* !__GNUC__ */
#endif /* !G_INLINE_FUNC */
+#undef G_INLINE_FUNC
+#define G_INLINE_FUNC static inline
+
/* Provide simple macro statement wrappers (adapted from Perl):
* G_STMT_START { statements; } G_STMT_END;

View File

@@ -0,0 +1,13 @@
The pkg-config program is used to retrieve information about installed
libraries in the system. It is typically used to compile and link against one
or more libraries. It's more useful to the compilation process than to
the end-user.
pkg-config retrieves information about packages from special metadata files.
These files are named after the package, with the extension .pc. By default,
pkg-config looks for these files in the following directories:
${PREFIX}/libdata/pkgconfig, ${LOCALBASE}/libdata/pkgconfig and
${X11BASE}/libdata/pkgconfig; it will also look in the list of directories
specified by the PKG_CONFIG_PATH environment variable.
WWW: http://pkgconfig.freedesktop.org/wiki/

View File

@@ -0,0 +1,3 @@
bin/pkg-config
share/aclocal/pkg.m4
man/man1/pkg-config.1.gz

28
graph/libexif/Makefile Normal file
View File

@@ -0,0 +1,28 @@
#
# $Id: Makefile 2368 2009-09-08 05:55:57Z root $
# $URL: file:///usr2/svn/ports5/graphics-libs/libexif/Makefile $
#
PORTNAME= libexif
PORTVERSION= 0.6.21
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= onborodin@gmail.com
COMMENT= Library to read digital camera file meta-data
LIB_DEPENDS+= libintl.so:devel/gettext
USES+= tar:bzip2
GNU_CONFIGURE= yes
USES+= gmake
CPPFLAGS+= -I${LOCALBASE}/include
INSTALLS_SHLIB= yes
CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE}
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
CONFIGURE_ARGS+= --mandir=${PREFIX}
post-patch:
@${REINPLACE_CMD} -e 's|-g -Wall||g' ${WRKSRC}/configure
.include <bsd.port.mk>
#EOF

2
graph/libexif/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (libexif-0.6.21.tar.bz2) = 16cdaeb62eb3e6dfab2435f7d7bccd2f37438d21c5218ec4e58efa9157d4d41a
SIZE (libexif-0.6.21.tar.bz2) = 1368435

View File

@@ -0,0 +1,11 @@
--- ./Makefile.in.orig 2012-07-12 21:36:45.000000000 +0300
+++ ./Makefile.in 2015-10-19 16:40:03.591982000 +0200
@@ -783,7 +783,7 @@
info-am:
-install-data-am: install-docDATA install-pkgconfigDATA
+install-data-am: install-pkgconfigDATA
install-dvi: install-dvi-recursive

View File

@@ -0,0 +1,11 @@
--- ./po/Makevars.orig 2012-07-12 23:34:02.000000000 +0300
+++ ./po/Makevars 2015-10-19 16:43:06.248931000 +0200
@@ -1,7 +1,7 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
-DOMAIN = libexif-12
+DOMAIN = libexif
# These two variables depend on the location of this directory.
subdir = po

7
graph/libexif/pkg-descr Normal file
View File

@@ -0,0 +1,7 @@
This library allows metadata that is written to files on a digital camera to be
read. This library will be required for the gphoto2 port.
WWW: http://sourceforge.net/projects/libexif/
- Peter Schmiedeskamp
pschmied@qwest.net

45
graph/libexif/pkg-plist Normal file
View File

@@ -0,0 +1,45 @@
include/libexif/_stdint.h
include/libexif/exif-byte-order.h
include/libexif/exif-content.h
include/libexif/exif-data-type.h
include/libexif/exif-data.h
include/libexif/exif-entry.h
include/libexif/exif-format.h
include/libexif/exif-ifd.h
include/libexif/exif-loader.h
include/libexif/exif-log.h
include/libexif/exif-mem.h
include/libexif/exif-mnote-data.h
include/libexif/exif-tag.h
include/libexif/exif-utils.h
lib/libexif.a
lib/libexif.la
lib/libexif.so
lib/libexif.so.15
lib/pkgconfig/libexif.pc
share/locale/be/LC_MESSAGES/libexif.mo
share/locale/bs/LC_MESSAGES/libexif.mo
share/locale/cs/LC_MESSAGES/libexif.mo
share/locale/da/LC_MESSAGES/libexif.mo
share/locale/de/LC_MESSAGES/libexif.mo
share/locale/en_AU/LC_MESSAGES/libexif.mo
share/locale/en_CA/LC_MESSAGES/libexif.mo
share/locale/en_GB/LC_MESSAGES/libexif.mo
share/locale/es/LC_MESSAGES/libexif.mo
share/locale/fr/LC_MESSAGES/libexif.mo
share/locale/it/LC_MESSAGES/libexif.mo
share/locale/ja/LC_MESSAGES/libexif.mo
share/locale/nl/LC_MESSAGES/libexif.mo
share/locale/pl/LC_MESSAGES/libexif.mo
share/locale/pt/LC_MESSAGES/libexif.mo
share/locale/pt_BR/LC_MESSAGES/libexif.mo
share/locale/ru/LC_MESSAGES/libexif.mo
share/locale/sk/LC_MESSAGES/libexif.mo
share/locale/sq/LC_MESSAGES/libexif.mo
share/locale/sr/LC_MESSAGES/libexif.mo
share/locale/sv/LC_MESSAGES/libexif.mo
share/locale/tr/LC_MESSAGES/libexif.mo
share/locale/uk/LC_MESSAGES/libexif.mo
share/locale/vi/LC_MESSAGES/libexif.mo
share/locale/zh_CN/LC_MESSAGES/libexif.mo
@dir include/libexif

View File

@@ -0,0 +1,47 @@
# Created by: jseger@FreeBSD.org
# $FreeBSD: head/print/freetype2/Makefile 435690 2017-03-08 15:26:28Z kwm $
PORTNAME= freetype2
PORTVERSION= 2.7.1
CATEGORIES= print
MASTER_SITES+= http://savannah.nongnu.org/download/freetype/
MASTER_SITES+= SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/
MASTER_SITES+= http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/freetype2/
MASTER_SITES+= http://www.funet.fi/pub/mirrors/ftp.freetype.org/freetype2/
MASTER_SITES+= http://ftp.sunet.se/pub/text-processing/freetype/freetype2/
MASTER_SITES+= ftp://ftp.freetype.org/freetype/freetype2/
DISTNAME= ${PORTNAME:S/2//}-${PORTVERSION}
PKGNAMEPREFIX= lib
MAINTAINER= gnome@FreeBSD.org
COMMENT= Free and portable TrueType font rendering engine
USES= gmake tar:bzip2
MAKE_ENV= TOP=""
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-harfbuzz
CONFIGURE_WRKSRC= ${WRKSRC}/builds/unix
SUB_FILES= pkg-message
#CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
#SUBPIXEL_HINTING_DESC= Sub-pixel hinting support
#V38_DESC= v38 mode (Infinality code)
#V38_VARS= SUBPIXEL_HINTING_MODE+=1
#V40_DESC= v40 mode (minimal code, a.k.a. ClearType hinting, faster)
#V40_VARS= SUBPIXEL_HINTING_MODE+=2
.include <bsd.port.pre.mk>
post-configure:
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} setup
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libfreetype.so.*
.include <bsd.port.post.mk>
#EOF

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1483129043
SHA256 (freetype-2.7.1.tar.bz2) = 3a3bb2c4e15ffb433f2032f50a5b5a92558206822e22bfe8cbe339af4aa82f88
SIZE (freetype-2.7.1.tar.bz2) = 1825107

View File

@@ -0,0 +1,26 @@
--- builds/unix/detect.mk.orig 2016-02-03 18:13:58 UTC
+++ builds/unix/detect.mk
@@ -22,6 +22,9 @@ ifeq ($(PLATFORM),ansi)
$(wildcard /usr/sbin/init) \
$(wildcard /dev/null) \
$(wildcard /hurd/auth))
+ # FreeBSD is "unix" so just mandate this to fix the build in
+ # jails that do not have init (see PR#113470).
+ is_unix := true
ifneq ($(is_unix),)
PLATFORM := unix
@@ -80,10 +83,10 @@ ifeq ($(PLATFORM),unix)
ifdef must_configure
ifneq ($(have_Makefile),)
# we are building FT2 not in the src tree
- $(TOP_DIR)/builds/unix/configure $(value CFG)
+# $(TOP_DIR)/builds/unix/configure $(value CFG)
else
- cd builds/unix; \
- ./configure $(value CFG)
+# cd builds/unix; \
+# ./configure $(value CFG)
endif
endif

View File

@@ -0,0 +1,11 @@
--- ./builds/unix/configure.orig 2016-12-30 22:17:23.000000000 +0200
+++ ./builds/unix/configure 2017-05-03 15:49:57.982399000 +0200
@@ -2495,7 +2495,7 @@
# Don't forget to update `docs/VERSIONS.TXT'!
-version_info='19:0:13'
+version_info='13:0:13'
ft_version=`echo $version_info | tr : .`

View File

@@ -0,0 +1,36 @@
--- ./builds/unix/ltmain.sh.orig 2016-12-30 22:17:22.000000000 +0200
+++ ./builds/unix/ltmain.sh 2017-05-03 15:42:25.006660000 +0200
@@ -8805,13 +8805,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|freebsd-elf|linux|osf|windows|none)
+ darwin|linux|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|qnx|sunos)
+ freebsd*|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -8891,15 +8891,9 @@
esac
;;
- freebsd-aout)
+ freebsd*)
major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf)
- func_arith $current - $age
- major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=.$current
;;
irix | nonstopux)

View File

@@ -0,0 +1,11 @@
--- ./include/freetype/config/ftoption.h.orig 2016-12-11 08:53:49.000000000 +0200
+++ ./include/freetype/config/ftoption.h 2017-05-03 15:31:22.111100000 +0200
@@ -122,7 +122,7 @@
/* This is done to allow FreeType clients to run unmodified, forcing */
/* them to display normal gray-level anti-aliased glyphs. */
/* */
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
/*************************************************************************/

View File

@@ -0,0 +1,19 @@
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).
The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:
FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(%%DOCSDIR%%/reference/ft2-toc.html, if documentation was installed).

View File

@@ -0,0 +1,25 @@
FreeType is a freely available software library to render fonts.
It is written in C, designed to be small, efficient, highly customizable, and portable while capable of producing high-quality output (glyph images) of most vector and bitmap font formats.
Some products that use FreeType for rendering fonts on screen or on paper, either exclusively or partially:
---
The FreeType engine is a free and portable font rendering
engine, developed to provide advanced font support for a variety of
platforms and environments. FreeType is a library which can open and
manages font files as well as efficiently load, hint and render
individual glyphs. FreeType is not a font server or a complete
text-rendering library.
----
This includes some tools that are in FreeType 1's contrib directory.
ttf2pfb: Converting TrueType fonts to the Postscript Type 1 format.
ttf2pk: A simple conversion tool to bring TrueType quality to the
TeX world.
ttf2bdf: Produce bitmapped fonts from TrueType files for your X11
applications.
ttfbanner: make posters using a TrueType font
WWW: http://www.freetype.org/

View File

@@ -0,0 +1,62 @@
bin/freetype-config
include/freetype2/freetype/config/ftconfig.h
include/freetype2/freetype/config/ftheader.h
include/freetype2/freetype/config/ftmodule.h
include/freetype2/freetype/config/ftoption.h
include/freetype2/freetype/config/ftstdlib.h
include/freetype2/freetype/freetype.h
include/freetype2/freetype/ftadvanc.h
include/freetype2/freetype/ftautoh.h
include/freetype2/freetype/ftbbox.h
include/freetype2/freetype/ftbdf.h
include/freetype2/freetype/ftbitmap.h
include/freetype2/freetype/ftbzip2.h
include/freetype2/freetype/ftcache.h
include/freetype2/freetype/ftcffdrv.h
include/freetype2/freetype/ftchapters.h
include/freetype2/freetype/ftcid.h
include/freetype2/freetype/fterrdef.h
include/freetype2/freetype/fterrors.h
include/freetype2/freetype/ftfntfmt.h
include/freetype2/freetype/ftgasp.h
include/freetype2/freetype/ftglyph.h
include/freetype2/freetype/ftgxval.h
include/freetype2/freetype/ftgzip.h
include/freetype2/freetype/ftimage.h
include/freetype2/freetype/ftincrem.h
include/freetype2/freetype/ftlcdfil.h
include/freetype2/freetype/ftlist.h
include/freetype2/freetype/ftlzw.h
include/freetype2/freetype/ftmac.h
include/freetype2/freetype/ftmm.h
include/freetype2/freetype/ftmodapi.h
include/freetype2/freetype/ftmoderr.h
include/freetype2/freetype/ftotval.h
include/freetype2/freetype/ftoutln.h
include/freetype2/freetype/ftpfr.h
include/freetype2/freetype/ftrender.h
include/freetype2/freetype/ftsizes.h
include/freetype2/freetype/ftsnames.h
include/freetype2/freetype/ftstroke.h
include/freetype2/freetype/ftsynth.h
include/freetype2/freetype/ftsystem.h
include/freetype2/freetype/fttrigon.h
include/freetype2/freetype/ftttdrv.h
include/freetype2/freetype/fttypes.h
include/freetype2/freetype/ftwinfnt.h
include/freetype2/freetype/t1tables.h
include/freetype2/freetype/ttnameid.h
include/freetype2/freetype/tttables.h
include/freetype2/freetype/tttags.h
include/freetype2/freetype/ttunpat.h
include/freetype2/ft2build.h
lib/libfreetype.a
lib/libfreetype.la
lib/libfreetype.so
lib/libfreetype.so.13
lib/pkgconfig/freetype2.pc
man/man1/freetype-config.1.gz
share/aclocal/freetype2.m4
@dir include/freetype2/freetype/config
@dir include/freetype2/freetype
@dir include/freetype2

55
graph/libgd/Makefile Normal file
View File

@@ -0,0 +1,55 @@
#
# $Id$
#
PORTNAME= libgd
PORTVERSION= 2.2.4
CATEGORIES+= graphics
MASTER_SITES+= https://bitbucket.org/libgd/gd-libgd/downloads/
MASTER_SITES+= http://cdn.bitbucket.org/libgd/gd-libgd/downloads/
MAINTAINER= onborodin@gmail.com
COMMENT?= Graphics library for fast creation of images
LIB_DEPENDS+= libintl.so:devel/gettext
LIB_DEPENDS+= libfreetype.so:graph/libfreetype2
LIB_DEPENDS+= libjpeg.so:graph/libjpeg
LIB_DEPENDS+= libpng.so:graph/libpng
LIB_DEPENDS+= libtiff.so:graph/libtiff
LIB_DEPENDS+= libexpat.so:text/libexpat
LIB_DEPENDS+= libiconv.so:text/libiconv
LIB_DEPENDS+= libfontconfig.so:x11/libfontconfig
LIB_DEPENDS+= libXpm.so:x11/libXpm
LIB_DEPENDS+= libjpeg.so:graph/libjpeg
LIB_DEPENDS+= libpng.so:graph/libpng
LIB_DEPENDS+= libvpx.so:media/libvpx
LIB_DEPENDS+= libfreetype.so:graph/libfreetype2
LIB_DEPENDS+= libwebp.so:graph/libwebp
USES+= gmake tar:xz
#USES+= perl5
#USE_PERL5= build
#SHEBANG_FILES= ${WRKSRC}/src/bdftogd
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-vpx=${LOCALBASE}
CONFIGURE_ARGS+= --with-x=${LOCALBASE}
CONFIGURE_ARGS+= --with-fontconfig=${LOCALBASE}
CONFIGURE_ARGS+= --with-xpm=${LOCALBASE}
#CONFIGURE_ARGS+= --without-xpm
CONFIGURE_ARGS+= --with-tiff=${LOCALBASE}
pre-configure:
${REINPLACE_CMD} \
-e 's|^GDLIB_LT_CURRENT=3|GDLIB_LT_CURRENT=5|' \
${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/src/gdhelpers.h ${STAGEDIR}${PREFIX}/include/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgd.so.*
.include <bsd.port.mk>
#EOF

2
graph/libgd/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (libgd-2.2.4.tar.xz) = 137f13a7eb93ce72e32ccd7cebdab6874f8cf7ddf31d3a455a68e016ecd9e4e6
SIZE (libgd-2.2.4.tar.xz) = 2478528

View File

@@ -0,0 +1,31 @@
#!/bin/sh
# $FreeBSD: head/graphics/gd/files/makefonts 340872 2014-01-24 00:14:07Z mat $
target="${1}"
shift
tarball="${1}"
shift
fonts="Tiny Small MediumBold Large Giant"
case "${target}" in
extract)
tar -xvzpf "${tarball}" $@
;;
configure)
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
mv -v "gdfont${f}.c" "gdfont${f}.c.dist"
mv -v "gdfont${f}.h" "gdfont${f}.h.dist"
done
;;
build)
set -x
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
perl ./bdftogd "gdFont${font}" "font${f}" < "${1}"
shift
done
;;
esac
# eof

View File

@@ -0,0 +1,68 @@
--- src/bdftogd.orig 2017-01-29 09:45:57 UTC
+++ src/bdftogd
@@ -24,6 +24,9 @@ $gdname = 'gd' . $gdname unless $gdname
my $filename = shift;
$filename = 'gd' . $filename unless $filename =~ /^gd/i;
+my $gdfunc = $gdname;
+$gdfunc =~ s/(.*Font)(.*)/$1Get$2/;
+
if (-f "$filename.c") { die "File $filename.c already exists, won't overwrite\n"; }
if (-f "$filename.h") { die "File $filename.h already exists, won't overwrite\n"; }
@@ -139,6 +142,10 @@ print FILEC <<"EOF";
$info
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "$filename.h"
char ${gdname}Data[] = {
@@ -177,28 +184,40 @@ gdFont ${gdname}Rep = {
${gdname}Data
};
-gdFontPtr ${gdname} = &${gdname}Rep;
+BGD_EXPORT_DATA_PROT gdFontPtr ${gdname} = &${gdname}Rep;
-/* This file has not been truncated. */
+BGD_DECLARE(gdFontPtr)
+$gdfunc (void)
+{
+ return $gdname;
+}
+/* This file has not been truncated. */
EOF
close FILEC;
print FILEH <<"EOF";
-
#ifndef $capdef
#define $capdef 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
$info
#include "gd.h"
-extern gdFontPtr $gdname;
+extern BGD_EXPORT_DATA_PROT gdFontPtr $gdname;
+BGD_DECLARE(gdFontPtr) $gdfunc(void);
+#ifdef __cplusplus
+}
#endif
+#endif
EOF
1;

View File

@@ -0,0 +1,17 @@
--- src/gd_png.c.orig 2016-10-12 08:13:44 UTC
+++ src/gd_png.c
@@ -277,6 +277,14 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFro
png_read_info (png_ptr, info_ptr); /* read all PNG info up to image data */
png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, NULL);
+
+ if (overflow2(sizeof (int), width)) {
+ return NULL;
+ }
+ if (overflow2(sizeof (int) * width, height)) {
+ return NULL;
+ }
+
if ((color_type == PNG_COLOR_TYPE_RGB) || (color_type == PNG_COLOR_TYPE_RGB_ALPHA)
|| color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
im = gdImageCreateTrueColor ((int) width, (int) height);

View File

@@ -0,0 +1,58 @@
--- src/gdtest.c.orig 2015-09-16 11:34:29 UTC
+++ src/gdtest.c
@@ -35,6 +35,8 @@ main (int argc, char **argv)
gdSink imgsnk;
int foreground;
int i;
+ gdIOCtx *ctx;
+
if (argc != 2) {
fprintf(stderr, "Usage: gdtest filename.png\n");
exit (1);
@@ -63,6 +65,35 @@ main (int argc, char **argv)
CompareImages ("Initial Versions", ref, im);
+ /* */
+ /* Send to GIF File then Ptr */
+ /* */
+ sprintf(of, "%s.gif", argv[1]);
+ out = fopen(of, "wb");
+ gdImageGif(im, out);
+ fclose(out);
+
+ in = fopen(of, "rb");
+ if (!in) {
+ fprintf(stderr, "GIF Output file does not exist!\n");
+ exit(1);
+ }
+ im2 = gdImageCreateFromGif(in);
+ fclose(in);
+
+ CompareImages("GD->GIF File->GD", ref, im2);
+
+ unlink(of);
+ gdImageDestroy(im2);
+
+ iptr = gdImageGifPtr(im,&sz);
+ ctx = gdNewDynamicCtx(sz,iptr);
+ im2 = gdImageCreateFromGifCtx(ctx);
+
+ CompareImages("GD->GIF ptr->GD", ref, im2);
+
+ gdImageDestroy(im2);
+ ctx->gd_free(ctx);
/* */
/* Send to PNG File then Ptr */
@@ -334,6 +365,10 @@ main (int argc, char **argv)
printf ("[Merged Image has %d colours]\n", im2->colorsTotal);
CompareImages ("Merged (gdtest.png, gdtest_merge.png)", im2, im3);
+ out = fopen ("test/gdtest_merge_out.png", "wb");
+ gdImagePng(im2, out);
+ fclose(out);
+
gdImageDestroy (im2);
gdImageDestroy (im3);

View File

@@ -0,0 +1,36 @@
--- ./config/ltmain.sh.orig 2017-01-18 13:02:29.000000000 +0200
+++ ./config/ltmain.sh 2017-05-12 14:41:31.941190000 +0200
@@ -8811,13 +8811,13 @@
#
case $version_type in
# correct linux to gnu/linux during the next big refactor
- darwin|freebsd-elf|linux|osf|windows|none)
+ darwin|linux|osf|windows|none)
func_arith $number_major + $number_minor
current=$func_arith_result
age=$number_minor
revision=$number_revision
;;
- freebsd-aout|qnx|sunos)
+ freebsd*|qnx|sunos)
current=$number_major
revision=$number_minor
age=0
@@ -8900,15 +8900,9 @@
esac
;;
- freebsd-aout)
+ freebsd*)
major=.$current
- versuffix=.$current.$revision
- ;;
-
- freebsd-elf)
- func_arith $current - $age
- major=.$func_arith_result
- versuffix=$major.$age.$revision
+ versuffix=.$current
;;
irix | nonstopux)

13
graph/libgd/pkg-descr Normal file
View File

@@ -0,0 +1,13 @@
gd is a graphics library. It allows your code to quickly draw images
complete with lines, arcs, text, multiple colors, cut and paste from
other images, and flood fills, and write out the result as a PNG, GIF
or JPEG file. This is particularly useful in World Wide Web applications,
where PNG, GIF and JPEG are three of the formats accepted for inline
images by most browsers.
gd does not provide for every possible desirable graphics operation,
but version 2.0 does include most frequently requested features,
including both truecolor and palette images, resampling (smooth
resizing of truecolor images) and so forth.
WWW: http://www.libgd.org/

32
graph/libgd/pkg-plist Normal file
View File

@@ -0,0 +1,32 @@
bin/annotate
bin/bdftogd
bin/gd2copypal
bin/gd2togif
bin/gd2topng
bin/gdcmpgif
bin/gdlib-config
bin/gdparttopng
bin/gdtopng
bin/giftogd2
bin/pngtogd
bin/pngtogd2
bin/webpng
include/entities.h
include/gd_color_map.h
include/gd_errors.h
include/gd_io.h
include/gd.h
include/gdcache.h
include/gdfontg.h
include/gdfontl.h
include/gdfontmb.h
include/gdfonts.h
include/gdfontt.h
include/gdfx.h
include/gdhelpers.h
include/gdpp.h
lib/libgd.a
lib/libgd.la
lib/libgd.so
lib/libgd.so.5
lib/pkgconfig/gdlib.pc

66
graph/libgif/Makefile Normal file
View File

@@ -0,0 +1,66 @@
#
# $Id: Makefile 2442 2009-09-14 21:30:05Z root $
#
PORTNAME= gif
PORTVERSION= 4.2.3
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}lib/${PORTNAME}lib-4.x
PKGNAMEPREFIX= lib
DISTNAME= ${PORTNAME}lib-${PORTVERSION}
MAINTAINER= onborodin@gmail.com
COMMENT= Tools and library routines for working with GIF images
GNU_CONFIGURE= yes
USES+= gmake
USES+= perl5
CONFIGURE_ARGS= #
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --with-x=no
INSTALLS_SHLIB= yes
MAN_PLIST_FILES+= man/man1/gif2rgb.1.gz
MAN_PLIST_FILES+= man/man1/gifasm.1.gz
MAN_PLIST_FILES+= man/man1/gifbg.1.gz
MAN_PLIST_FILES+= man/man1/gifclip.1.gz
MAN_PLIST_FILES+= man/man1/gifclrmp.1.gz
MAN_PLIST_FILES+= man/man1/gifcolor.1.gz
MAN_PLIST_FILES+= man/man1/gifcomb.1.gz
MAN_PLIST_FILES+= man/man1/gifcompose.1.gz
MAN_PLIST_FILES+= man/man1/giffiltr.1.gz
MAN_PLIST_FILES+= man/man1/giffix.1.gz
MAN_PLIST_FILES+= man/man1/gifflip.1.gz
MAN_PLIST_FILES+= man/man1/gifhisto.1.gz
MAN_PLIST_FILES+= man/man1/gifinter.1.gz
MAN_PLIST_FILES+= man/man1/gifinto.1.gz
MAN_PLIST_FILES+= man/man1/gifovly.1.gz
MAN_PLIST_FILES+= man/man1/gifpos.1.gz
MAN_PLIST_FILES+= man/man1/gifrotat.1.gz
MAN_PLIST_FILES+= man/man1/gifrsize.1.gz
MAN_PLIST_FILES+= man/man1/gifspnge.1.gz
MAN_PLIST_FILES+= man/man1/giftext.1.gz
MAN_PLIST_FILES+= man/man1/gifwedge.1.gz
MAN_PLIST_FILES+= man/man1/icon2gif.1.gz
MAN_PLIST_FILES+= man/man1/raw2gif.1.gz
MAN_PLIST_FILES+= man/man1/rgb2gif.1.gz
MAN_PLIST_FILES+= man/man1/text2gif.1.gz
PLIST_FILES+= ${MAN_PLIST_FILES}
post-extract:
${PERL} -pi -e "s|/bin/perl|${LOCALBASE}/bin/perl|" \
${WRKSRC}/util/gifburst
post-patch:
${CP} ${FILESDIR}/quantize.c ${WRKSRC}/lib/
post-install:
${MKDIR} -p ${STAGEDIR}/${PREFIX}/man/man1
.for MAN in ${MAN_PLIST_FILES}
${INSTALL_DATA} ${WRKSRC}/doc/$$(basename ${MAN} .gz) ${STAGEDIR}/${PREFIX}/man/man1
.endfor
.include <bsd.port.mk>
#EOF

2
graph/libgif/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (giflib-4.2.3.tar.gz) = 4d220d51c9024563da013b90a419244f9a6d87c42aa00fea450cde128214743b
SIZE (giflib-4.2.3.tar.gz) = 655806

View File

@@ -0,0 +1,26 @@
--- ./doc/Makefile.in.orig 2013-09-03 16:47:52.000000000 +0300
+++ ./doc/Makefile.in 2014-12-27 22:19:54.000000000 +0200
@@ -400,16 +400,16 @@
uninstall uninstall-am
-.xml.html:
- xmlto xhtml-nochunks $<
+#.xml.html:
+# xmlto xhtml-nochunks $<
-.xml.1:
- xmlto man $<
+#.xml.1:
+# xmlto man $<
-.xml.txt:
- xmlto txt $<
+#.xml.txt:
+# xmlto txt $<
-all: allhtml manpages
+all: manpages
allhtml: $(XMLALL:.xml=.html)

View File

@@ -0,0 +1,27 @@
--- ./lib/Makefile.in.orig 2013-09-03 16:47:52.000000000 +0300
+++ ./lib/Makefile.in 2014-12-27 22:16:49.000000000 +0200
@@ -94,7 +94,7 @@
LTLIBRARIES = $(lib_LTLIBRARIES)
libgif_la_DEPENDENCIES =
am_libgif_la_OBJECTS = dgif_lib.lo egif_lib.lo gif_font.lo gif_hash.lo \
- gifalloc.lo gif_err.lo
+ gifalloc.lo gif_err.lo quantize.lo
libgif_la_OBJECTS = $(am_libgif_la_OBJECTS)
libgif_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
@@ -256,6 +256,7 @@
gif_hash.h \
gifalloc.c \
gif_err.c \
+ quantize.c \
gif_lib_private.h
libgif_la_LDFLAGS = -no-undefined -version-info @SHLIBVERSION@
@@ -342,6 +343,7 @@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gif_font.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gif_hash.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gifalloc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quantize.Plo@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<

View File

@@ -0,0 +1,10 @@
--- ./lib/gif_hash.c.orig 2013-09-03 16:41:31.000000000 +0300
+++ ./lib/gif_hash.c 2014-12-27 22:16:49.000000000 +0200
@@ -21,6 +21,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
+#include <stdlib.h>
#include "gif_lib.h"
#include "gif_hash.h"

View File

@@ -0,0 +1,18 @@
--- ./lib/gif_lib.h.orig 2013-09-03 16:46:28.000000000 +0300
+++ ./lib/gif_lib.h 2014-12-27 22:16:49.000000000 +0200
@@ -180,6 +180,15 @@
#define D_GIF_ERR_IMAGE_DEFECT 112
#define D_GIF_ERR_EOF_TOO_SOON 113
+/******************************************************************************
+ * O.K., here are the routines from GIF_LIB file QUANTIZE.C.
+******************************************************************************/
+int QuantizeBuffer(unsigned int Width, unsigned int Height,
+ int *ColorMapSize, GifByteType * RedInput,
+ GifByteType * GreenInput, GifByteType * BlueInput,
+ GifByteType * OutputBuffer,
+ GifColorType * OutputColorMap);
+
/* These are legacy. You probably do not want to call them directly */
int DGifGetScreenDesc(GifFileType * GifFile);
int DGifGetRecordType(GifFileType * GifFile, GifRecordType * GifType);

View File

@@ -0,0 +1,20 @@
--- ./util/rgb2gif.c.orig 2013-09-03 16:41:31.000000000 +0300
+++ ./util/rgb2gif.c 2014-12-27 22:16:49.000000000 +0200
@@ -129,7 +129,7 @@
* This function returns GIF_OK if succesfull, GIF_ERROR otherwise.
******************************************************************************/
static int
-QuantizeBuffer(unsigned int Width,
+GifQuantizeBuffer(unsigned int Width,
unsigned int Height,
int *ColorMapSize,
GifByteType * RedInput,
@@ -428,7 +428,7 @@
sizeof(GifByteType))) == NULL)
GIF_EXIT("Failed to allocate memory required, aborted.");
- if (QuantizeBuffer(Width, Height, &ColorMapSize,
+ if (GifQuantizeBuffer(Width, Height, &ColorMapSize,
RedBuffer, GreenBuffer, BlueBuffer,
OutputBuffer, OutputColorMap->Colors) == GIF_ERROR)
QuitGifError(NULL);

View File

@@ -0,0 +1,332 @@
/*****************************************************************************
* "Gif-Lib" - Yet another gif library.
*
* Written by: Gershon Elber IBM PC Ver 0.1, Jun. 1989
******************************************************************************
* Module to quatize high resolution image into lower one. You may want to
* peek into the following article this code is based on:
* "Color Image Quantization for frame buffer Display", by Paul Heckbert
* SIGGRAPH 1982 page 297-307.
******************************************************************************
* History:
* 5 Jan 90 - Version 1.0 by Gershon Elber.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef __MSDOS__
#include <dos.h>
#include <alloc.h>
#include <graphics.h>
#endif /* __MSDOS__ */
#include <stdlib.h>
#include <stdio.h>
#include "gif_lib.h"
#include "gif_lib_private.h"
#define ABS(x) ((x) > 0 ? (x) : (-(x)))
#define PROGRAM_NAME "giflib"
/* The colors are stripped to 5 bits per primary color if non MSDOS system
* or to 4 (not enough memory...) if MSDOS as first step.
*/
#ifdef __MSDOS__
#define COLOR_ARRAY_SIZE 4096
#define BITS_PER_PRIM_COLOR 4
#define MAX_PRIM_COLOR 0x0f
#else
#define COLOR_ARRAY_SIZE 32768
#define BITS_PER_PRIM_COLOR 5
#define MAX_PRIM_COLOR 0x1f
#endif /* __MSDOS__ */
static int SortRGBAxis;
typedef struct QuantizedColorType {
GifByteType RGB[3];
GifByteType NewColorIndex;
long Count;
struct QuantizedColorType *Pnext;
} QuantizedColorType;
typedef struct NewColorMapType {
GifByteType RGBMin[3], RGBWidth[3];
unsigned int NumEntries; /* # of QuantizedColorType in linked list below */
unsigned long Count; /* Total number of pixels in all the entries */
QuantizedColorType *QuantizedColors;
} NewColorMapType;
static int SubdivColorMap(NewColorMapType * NewColorSubdiv,
unsigned int ColorMapSize,
unsigned int *NewColorMapSize);
static int SortCmpRtn(const VoidPtr Entry1, const VoidPtr Entry2);
/******************************************************************************
* Quantize high resolution image into lower one. Input image consists of a
* 2D array for each of the RGB colors with size Width by Height. There is no
* Color map for the input. Output is a quantized image with 2D array of
* indexes into the output color map.
* Note input image can be 24 bits at the most (8 for red/green/blue) and
* the output has 256 colors at the most (256 entries in the color map.).
* ColorMapSize specifies size of color map up to 256 and will be updated to
* real size before returning.
* Also non of the parameter are allocated by this routine.
* This function returns GIF_OK if succesfull, GIF_ERROR otherwise.
******************************************************************************/
int
QuantizeBuffer(unsigned int Width,
unsigned int Height,
int *ColorMapSize,
GifByteType * RedInput,
GifByteType * GreenInput,
GifByteType * BlueInput,
GifByteType * OutputBuffer,
GifColorType * OutputColorMap) {
unsigned int Index, NumOfEntries;
int i, j, MaxRGBError[3];
unsigned int NewColorMapSize;
long Red, Green, Blue;
NewColorMapType NewColorSubdiv[256];
QuantizedColorType *ColorArrayEntries, *QuantizedColor;
ColorArrayEntries = (QuantizedColorType *)malloc(
sizeof(QuantizedColorType) * COLOR_ARRAY_SIZE);
if (ColorArrayEntries == NULL) {
_GifError = E_GIF_ERR_NOT_ENOUGH_MEM;
return GIF_ERROR;
}
for (i = 0; i < COLOR_ARRAY_SIZE; i++) {
ColorArrayEntries[i].RGB[0] = i >> (2 * BITS_PER_PRIM_COLOR);
ColorArrayEntries[i].RGB[1] = (i >> BITS_PER_PRIM_COLOR) &
MAX_PRIM_COLOR;
ColorArrayEntries[i].RGB[2] = i & MAX_PRIM_COLOR;
ColorArrayEntries[i].Count = 0;
}
/* Sample the colors and their distribution: */
for (i = 0; i < (int)(Width * Height); i++) {
Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
(2 * BITS_PER_PRIM_COLOR)) +
((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
BITS_PER_PRIM_COLOR) +
(BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
ColorArrayEntries[Index].Count++;
}
/* Put all the colors in the first entry of the color map, and call the
* recursive subdivision process. */
for (i = 0; i < 256; i++) {
NewColorSubdiv[i].QuantizedColors = NULL;
NewColorSubdiv[i].Count = NewColorSubdiv[i].NumEntries = 0;
for (j = 0; j < 3; j++) {
NewColorSubdiv[i].RGBMin[j] = 0;
NewColorSubdiv[i].RGBWidth[j] = 255;
}
}
/* Find the non empty entries in the color table and chain them: */
for (i = 0; i < COLOR_ARRAY_SIZE; i++)
if (ColorArrayEntries[i].Count > 0)
break;
QuantizedColor = NewColorSubdiv[0].QuantizedColors = &ColorArrayEntries[i];
NumOfEntries = 1;
while (++i < COLOR_ARRAY_SIZE)
if (ColorArrayEntries[i].Count > 0) {
QuantizedColor->Pnext = &ColorArrayEntries[i];
QuantizedColor = &ColorArrayEntries[i];
NumOfEntries++;
}
QuantizedColor->Pnext = NULL;
NewColorSubdiv[0].NumEntries = NumOfEntries; /* Different sampled colors */
NewColorSubdiv[0].Count = ((long)Width) * Height; /* Pixels */
NewColorMapSize = 1;
if (SubdivColorMap(NewColorSubdiv, *ColorMapSize, &NewColorMapSize) !=
GIF_OK) {
free((char *)ColorArrayEntries);
return GIF_ERROR;
}
if (NewColorMapSize < *ColorMapSize) {
/* And clear rest of color map: */
for (i = NewColorMapSize; i < *ColorMapSize; i++)
OutputColorMap[i].Red = OutputColorMap[i].Green =
OutputColorMap[i].Blue = 0;
}
/* Average the colors in each entry to be the color to be used in the
* output color map, and plug it into the output color map itself. */
for (i = 0; i < NewColorMapSize; i++) {
if ((j = NewColorSubdiv[i].NumEntries) > 0) {
QuantizedColor = NewColorSubdiv[i].QuantizedColors;
Red = Green = Blue = 0;
while (QuantizedColor) {
QuantizedColor->NewColorIndex = i;
Red += QuantizedColor->RGB[0];
Green += QuantizedColor->RGB[1];
Blue += QuantizedColor->RGB[2];
QuantizedColor = QuantizedColor->Pnext;
}
OutputColorMap[i].Red = (Red << (8 - BITS_PER_PRIM_COLOR)) / j;
OutputColorMap[i].Green = (Green << (8 - BITS_PER_PRIM_COLOR)) / j;
OutputColorMap[i].Blue = (Blue << (8 - BITS_PER_PRIM_COLOR)) / j;
} else
fprintf(stderr,
"\n%s: Null entry in quantized color map - that's weird.\n",
PROGRAM_NAME);
}
/* Finally scan the input buffer again and put the mapped index in the
* output buffer. */
MaxRGBError[0] = MaxRGBError[1] = MaxRGBError[2] = 0;
for (i = 0; i < (int)(Width * Height); i++) {
Index = ((RedInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
(2 * BITS_PER_PRIM_COLOR)) +
((GreenInput[i] >> (8 - BITS_PER_PRIM_COLOR)) <<
BITS_PER_PRIM_COLOR) +
(BlueInput[i] >> (8 - BITS_PER_PRIM_COLOR));
Index = ColorArrayEntries[Index].NewColorIndex;
OutputBuffer[i] = Index;
if (MaxRGBError[0] < ABS(OutputColorMap[Index].Red - RedInput[i]))
MaxRGBError[0] = ABS(OutputColorMap[Index].Red - RedInput[i]);
if (MaxRGBError[1] < ABS(OutputColorMap[Index].Green - GreenInput[i]))
MaxRGBError[1] = ABS(OutputColorMap[Index].Green - GreenInput[i]);
if (MaxRGBError[2] < ABS(OutputColorMap[Index].Blue - BlueInput[i]))
MaxRGBError[2] = ABS(OutputColorMap[Index].Blue - BlueInput[i]);
}
#ifdef DEBUG
fprintf(stderr,
"Quantization L(0) errors: Red = %d, Green = %d, Blue = %d.\n",
MaxRGBError[0], MaxRGBError[1], MaxRGBError[2]);
#endif /* DEBUG */
free((char *)ColorArrayEntries);
*ColorMapSize = NewColorMapSize;
return GIF_OK;
}
/******************************************************************************
* Routine to subdivide the RGB space recursively using median cut in each
* axes alternatingly until ColorMapSize different cubes exists.
* The biggest cube in one dimension is subdivide unless it has only one entry.
* Returns GIF_ERROR if failed, otherwise GIF_OK.
******************************************************************************/
static int
SubdivColorMap(NewColorMapType * NewColorSubdiv,
unsigned int ColorMapSize,
unsigned int *NewColorMapSize) {
int MaxSize;
unsigned int i, j, Index = 0, NumEntries, MinColor, MaxColor;
long Sum, Count;
QuantizedColorType *QuantizedColor, **SortArray;
while (ColorMapSize > *NewColorMapSize) {
/* Find candidate for subdivision: */
MaxSize = -1;
for (i = 0; i < *NewColorMapSize; i++) {
for (j = 0; j < 3; j++) {
if ((((int)NewColorSubdiv[i].RGBWidth[j]) > MaxSize) &&
(NewColorSubdiv[i].NumEntries > 1)) {
MaxSize = NewColorSubdiv[i].RGBWidth[j];
Index = i;
SortRGBAxis = j;
}
}
}
if (MaxSize == -1)
return GIF_OK;
/* Split the entry Index into two along the axis SortRGBAxis: */
/* Sort all elements in that entry along the given axis and split at
* the median. */
SortArray = (QuantizedColorType **)malloc(
sizeof(QuantizedColorType *) *
NewColorSubdiv[Index].NumEntries);
if (SortArray == NULL)
return GIF_ERROR;
for (j = 0, QuantizedColor = NewColorSubdiv[Index].QuantizedColors;
j < NewColorSubdiv[Index].NumEntries && QuantizedColor != NULL;
j++, QuantizedColor = QuantizedColor->Pnext)
SortArray[j] = QuantizedColor;
qsort(SortArray, NewColorSubdiv[Index].NumEntries,
sizeof(QuantizedColorType *), SortCmpRtn);
/* Relink the sorted list into one: */
for (j = 0; j < NewColorSubdiv[Index].NumEntries - 1; j++)
SortArray[j]->Pnext = SortArray[j + 1];
SortArray[NewColorSubdiv[Index].NumEntries - 1]->Pnext = NULL;
NewColorSubdiv[Index].QuantizedColors = QuantizedColor = SortArray[0];
free((char *)SortArray);
/* Now simply add the Counts until we have half of the Count: */
Sum = NewColorSubdiv[Index].Count / 2 - QuantizedColor->Count;
NumEntries = 1;
Count = QuantizedColor->Count;
while ((Sum -= QuantizedColor->Pnext->Count) >= 0 &&
QuantizedColor->Pnext != NULL &&
QuantizedColor->Pnext->Pnext != NULL) {
QuantizedColor = QuantizedColor->Pnext;
NumEntries++;
Count += QuantizedColor->Count;
}
/* Save the values of the last color of the first half, and first
* of the second half so we can update the Bounding Boxes later.
* Also as the colors are quantized and the BBoxes are full 0..255,
* they need to be rescaled.
*/
MaxColor = QuantizedColor->RGB[SortRGBAxis]; /* Max. of first half */
MinColor = QuantizedColor->Pnext->RGB[SortRGBAxis]; /* of second */
MaxColor <<= (8 - BITS_PER_PRIM_COLOR);
MinColor <<= (8 - BITS_PER_PRIM_COLOR);
/* Partition right here: */
NewColorSubdiv[*NewColorMapSize].QuantizedColors =
QuantizedColor->Pnext;
QuantizedColor->Pnext = NULL;
NewColorSubdiv[*NewColorMapSize].Count = Count;
NewColorSubdiv[Index].Count -= Count;
NewColorSubdiv[*NewColorMapSize].NumEntries =
NewColorSubdiv[Index].NumEntries - NumEntries;
NewColorSubdiv[Index].NumEntries = NumEntries;
for (j = 0; j < 3; j++) {
NewColorSubdiv[*NewColorMapSize].RGBMin[j] =
NewColorSubdiv[Index].RGBMin[j];
NewColorSubdiv[*NewColorMapSize].RGBWidth[j] =
NewColorSubdiv[Index].RGBWidth[j];
}
NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] =
NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] +
NewColorSubdiv[*NewColorMapSize].RGBWidth[SortRGBAxis] - MinColor;
NewColorSubdiv[*NewColorMapSize].RGBMin[SortRGBAxis] = MinColor;
NewColorSubdiv[Index].RGBWidth[SortRGBAxis] =
MaxColor - NewColorSubdiv[Index].RGBMin[SortRGBAxis];
(*NewColorMapSize)++;
}
return GIF_OK;
}
/****************************************************************************
* Routine called by qsort to compare to entries.
****************************************************************************/
static int
SortCmpRtn(const VoidPtr Entry1,
const VoidPtr Entry2) {
return (*((QuantizedColorType **) Entry1))->RGB[SortRGBAxis] -
(*((QuantizedColorType **) Entry2))->RGB[SortRGBAxis];
}

7
graph/libgif/pkg-descr Normal file
View File

@@ -0,0 +1,7 @@
GIF loading and saving shared library. (Saving uses an uncompressed gif
algorithm that does not use LZW compression.)
See /usr/local/share/doc/libungif directory for more information
on libungif's capabilities.
WWW: http://prtr-13.ucsc.edu/~badger/software/libungif/

32
graph/libgif/pkg-plist Normal file
View File

@@ -0,0 +1,32 @@
bin/gif2rgb
bin/gifasm
bin/gifbg
bin/gifburst
bin/gifclip
bin/gifclrmp
bin/gifcolor
bin/gifcomb
bin/gifcompose
bin/giffiltr
bin/giffix
bin/gifflip
bin/gifhisto
bin/gifinfo
bin/gifinter
bin/gifinto
bin/gifovly
bin/gifpos
bin/gifrotat
bin/gifrsize
bin/gifspnge
bin/giftext
bin/gifwedge
bin/icon2gif
bin/raw2gif
bin/rgb2gif
bin/text2gif
include/gif_lib.h
lib/libgif.a
lib/libgif.la
lib/libgif.so
lib/libgif.so.5

30
graph/libjpeg/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# Created by: Denis Podolskiy <bytestore@yandex.ru>
# $FreeBSD: head/graphics/jpeg-turbo/Makefile 523792 2020-01-22 06:01:47Z antoine $
PORTNAME= jpeg
PORTVERSION= 8.${DISTVERSION}
DISTVERSION= 2.0.4
CATEGORIES= graphics
#MASTER_SITES= SF/lib${DISTNAME}/${PORTVERSION}
DISTNAME= lib${PORTNAME}-turbo-${DISTVERSION}
PKGNAMEPREFIX= lib
MAINTAINER= portmgr@FreeBSD.org
COMMENT?= SIMD-accelerated JPEG codec which replaces libjpeg
USES= cmake gmake
USE_LDCONFIG= yes
CMAKE_ON+= WITH_JPEG8
CMAKE_ARGS+= WITH_TURBOJPEG=ON
TEST_TARGET= test
.include <bsd.port.options.mk>
.if ${ARCH} == i386 || ${ARCH} == amd64
BUILD_DEPENDS+= nasm:devel/nasm
.endif
.include <bsd.port.mk>

3
graph/libjpeg/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1579127392
SHA256 (libjpeg-turbo-2.0.4.tar.gz) = 33dd8547efd5543639e890efbf2ef52d5a21df81faf41bb940657af916a23406
SIZE (libjpeg-turbo-2.0.4.tar.gz) = 2161812

Some files were not shown because too many files have changed in this diff Show More