From 40b5f1a598f96fb683f636a00f9d6e3466ada435 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Wed, 27 Mar 2024 12:13:56 +0100 Subject: [PATCH 1/5] GitHub Action: trigger repository build --- .github/workflows/trigger.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/trigger.yaml diff --git a/.github/workflows/trigger.yaml b/.github/workflows/trigger.yaml new file mode 100644 index 00000000000000..b23a12f500f1c6 --- /dev/null +++ b/.github/workflows/trigger.yaml @@ -0,0 +1,18 @@ +name: Trigger repository build + +on: + push: + branches: + - wagnerflo + +jobs: + trigger: + name: Trigger + runs-on: ubuntu-latest + steps: + - name: Trigger + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT }} + repository: wagnerflo/void-repository + event-type: Push to wagnerflo/void-packages From 44dc623d08b8181d40948f3ad131713988c01ce6 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Wed, 10 Aug 2022 21:46:13 +0200 Subject: [PATCH 2/5] New package: claws-mail-theme-basicsvg-0.6.4. --- srcpkgs/claws-mail-theme-basicsvg/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/claws-mail-theme-basicsvg/template diff --git a/srcpkgs/claws-mail-theme-basicsvg/template b/srcpkgs/claws-mail-theme-basicsvg/template new file mode 100644 index 00000000000000..567ada3697769e --- /dev/null +++ b/srcpkgs/claws-mail-theme-basicsvg/template @@ -0,0 +1,17 @@ +# Template file for 'claws-mail-theme-basicsvg' +pkgname=claws-mail-theme-basicsvg +version=0.6.4 +revision=1 +depends="claws-mail" +short_desc="Basic SVG icons theme for Claws Mail" +maintainer="Florian Wagner " +license="GPL-2.0-only" +homepage="http://rame.altervista.org/cmbasicsvg/" +distfiles="http://rame.altervista.org/dl.php?fp=cmbasicsvg/BasicSVG-${version}.tar.gz" +checksum=6136910b431bc39496557d9cf5786607c4c95473e8d9eac2d3f8d91f0a0dee3b +create_wrksrc=yes + +do_install() { + vmkdir usr/share/claws-mail/themes + vcopy "${wrksrc}/BasicSVG" usr/share/claws-mail/themes +} From 9b47a84bd12e238c4c0c8be64c7b0991ffa46aba Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Tue, 26 Dec 2023 19:41:34 +0100 Subject: [PATCH 3/5] New package: bupstash-0.12.0. --- srcpkgs/bupstash/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/bupstash/template diff --git a/srcpkgs/bupstash/template b/srcpkgs/bupstash/template new file mode 100644 index 00000000000000..3a4703dbba5858 --- /dev/null +++ b/srcpkgs/bupstash/template @@ -0,0 +1,18 @@ +# Template file for 'bupstash' +pkgname=bupstash +version=0.12.0 +revision=1 +archs="~i686*" +build_style=cargo +hostmakedepends="pkg-config" +makedepends="libsodium-devel" +short_desc="Easy and efficient encrypted backups" +maintainer="Florian Wagner " +license="MIT" +homepage="https://bupstash.io" +distfiles="https://github.com/andrewchambers/bupstash/archive/refs/tags/v${version}.tar.gz" +checksum=a2ce4eeb2caa881a778e823cc70d39c2adb0b301f737c55e44a4dd0fbd6a4265 + +post_install() { + vlicense LICENSE +} From 62a6369b333ce86ae5314dd5b2ab15d99e682e96 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Fri, 5 Apr 2024 18:49:19 +0200 Subject: [PATCH 4/5] New package: python3-pymongo-4.6.3. --- srcpkgs/python3-pymongo/template | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 srcpkgs/python3-pymongo/template diff --git a/srcpkgs/python3-pymongo/template b/srcpkgs/python3-pymongo/template new file mode 100644 index 00000000000000..e1d02019fc67b7 --- /dev/null +++ b/srcpkgs/python3-pymongo/template @@ -0,0 +1,12 @@ +# Template file for 'python3-pymongo' +pkgname=python3-pymongo +version=4.6.3 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-devel python3-setuptools python3-wheel" +short_desc="Python driver for MongoDB" +maintainer="Florian Wagner " +license="Apache-2.0" +homepage="https://github.com/mongodb/mongo-python-driver" +distfiles="${PYPI_SITE}/p/pymongo/pymongo-${version}.tar.gz" +checksum=400074090b9a631f120b42c61b222fd743490c133a5d2f99c0208cefcccc964e From b994da4ccb3f976c2d271beff45dfb0b713543eb Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Fri, 5 Apr 2024 18:49:51 +0200 Subject: [PATCH 5/5] New package: mongodb-7.0.7. --- srcpkgs/mongodb/files/mongodb.conf | 31 +++++++++ srcpkgs/mongodb/files/mongodb/run | 3 + srcpkgs/mongodb/patches/SConstruct.diff | 67 +++++++++++++++++++ .../patches/buildscripts_moduleconfig.py.diff | 34 ++++++++++ .../patches/buildscripts_scons.py.diff | 25 +++++++ srcpkgs/mongodb/template | 63 +++++++++++++++++ 6 files changed, 223 insertions(+) create mode 100644 srcpkgs/mongodb/files/mongodb.conf create mode 100644 srcpkgs/mongodb/files/mongodb/run create mode 100644 srcpkgs/mongodb/patches/SConstruct.diff create mode 100644 srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff create mode 100644 srcpkgs/mongodb/patches/buildscripts_scons.py.diff create mode 100644 srcpkgs/mongodb/template diff --git a/srcpkgs/mongodb/files/mongodb.conf b/srcpkgs/mongodb/files/mongodb.conf new file mode 100644 index 00000000000000..a8ab6a36c191ec --- /dev/null +++ b/srcpkgs/mongodb/files/mongodb.conf @@ -0,0 +1,31 @@ +# mongod.conf + +# for documentation of all options, see: +# http://docs.mongodb.org/manual/reference/configuration-options/ + +# where to write logging data. +systemLog: + destination: syslog + +# Where and how to store data. +storage: + dbPath: /var/lib/mongodb + +# how the process runs +processManagement: + timeZoneInfo: /usr/share/zoneinfo + +# network interfaces +net: + port: 27017 + bindIp: 127.0.0.1 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 + # addresses or, alternatively, use the + # net.bindIpAll setting. + +#security: + +#operationProfiling: + +#replication: + +#sharding: diff --git a/srcpkgs/mongodb/files/mongodb/run b/srcpkgs/mongodb/files/mongodb/run new file mode 100644 index 00000000000000..d77214d12a9539 --- /dev/null +++ b/srcpkgs/mongodb/files/mongodb/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -u _mongodb mongod -f /etc/mongodb.conf diff --git a/srcpkgs/mongodb/patches/SConstruct.diff b/srcpkgs/mongodb/patches/SConstruct.diff new file mode 100644 index 00000000000000..14b378da173218 --- /dev/null +++ b/srcpkgs/mongodb/patches/SConstruct.diff @@ -0,0 +1,67 @@ +--- a/SConstruct 2024-03-08 22:45:55.000000000 +0100 ++++ b/SConstruct 2024-04-10 15:41:15.011407741 +0200 +@@ -23,7 +23,6 @@ + + import SCons + import SCons.Script +-from mongo_tooling_metrics.lib.top_level_metrics import SConsToolingMetrics + from site_scons.mongo import build_profiles + + # This must be first, even before EnsureSConsVersion, if +@@ -1647,16 +1646,6 @@ + del envDict + env.AddMethod(lambda env, name, **kwargs: add_option(name, **kwargs), 'AddOption') + +-# The placement of this is intentional. Here we setup an atexit method to store tooling metrics. +-# We should only register this function after env, env_vars and the parser have been properly initialized. +-SConsToolingMetrics.register_metrics( +- utc_starttime=datetime.utcnow(), +- artifact_dir=env.Dir('$BUILD_DIR').get_abspath(), +- env_vars=env_vars, +- env=env, +- parser=_parser, +-) +- + if get_option('build-metrics'): + env['BUILD_METRICS_ARTIFACTS_DIR'] = '$BUILD_ROOT/$VARIANT_DIR' + env.Tool('build_metrics') +@@ -1793,9 +1782,9 @@ + print(env_vars.GenerateHelpText(env)) + Exit(0) + +-unknown_vars = env_vars.UnknownVariables() +-if unknown_vars: +- env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys()))) ++#unknown_vars = env_vars.UnknownVariables() ++#if unknown_vars: ++# env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys()))) + + install_actions.setup(env, get_option('install-action')) + +@@ -3018,7 +3007,7 @@ + # If runtime hardening is requested, then build anything + # destined for an executable with the necessary flags for PIE. + env.AppendUnique( +- PROGCCFLAGS=['-fPIE'], ++ PROGCCFLAGS=['-fpic'], + PROGLINKFLAGS=['-pie'], + ) + +@@ -3026,7 +3015,6 @@ + env.Append( + CCFLAGS=[ + "-fasynchronous-unwind-tables", +- "-g2" if not env.TargetOSIs('emscripten') else "-g", + "-Wall", + "-Wsign-compare", + "-Wno-unknown-pragmas", +@@ -5327,6 +5315,9 @@ + + mongoc_mode = get_option('use-system-mongo-c') + conf.env['MONGO_HAVE_LIBMONGOC'] = False ++ conf.env.ParseConfig('pkg-config libbson-1.0 libmongoc-1.0 --cflags') ++ conf.env['LIBDEPS_LIBBSON_SYSLIBDEP'] = 'bson-1.0' ++ + if mongoc_mode != 'off': + if conf.CheckLibWithHeader( + ["mongoc-1.0"], diff --git a/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff b/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff new file mode 100644 index 00000000000000..b2f4c9ce97af29 --- /dev/null +++ b/srcpkgs/mongodb/patches/buildscripts_moduleconfig.py.diff @@ -0,0 +1,34 @@ +--- a/buildscripts/moduleconfig.py 2024-04-05 14:31:34.662126011 +0200 ++++ b/buildscripts/moduleconfig.py 2024-04-05 14:35:03.112290925 +0200 +@@ -27,7 +27,7 @@ + __all__ = ('discover_modules', 'discover_module_directories', 'configure_modules', + 'register_module_test') # pylint: disable=undefined-all-variable + +-import imp ++import importlib + import inspect + import os + +@@ -68,16 +68,18 @@ + + try: + print("adding module: %s" % (name)) +- fp = open(build_py, "r") + try: +- module = imp.load_module("module_" + name, fp, build_py, +- (".py", "r", imp.PY_SOURCE)) ++ spec = importlib.util.spec_from_file_location( ++ "module_" + name, build_py ++ ) ++ module = importlib.util.module_from_spec(spec) ++ spec.loader.exec_module(module) + if getattr(module, "name", None) is None: + module.name = name + found_modules.append(module) + found_module_names.append(name) + finally: +- fp.close() ++ pass + except (FileNotFoundError, IOError): + pass + diff --git a/srcpkgs/mongodb/patches/buildscripts_scons.py.diff b/srcpkgs/mongodb/patches/buildscripts_scons.py.diff new file mode 100644 index 00000000000000..5440bac0320b83 --- /dev/null +++ b/srcpkgs/mongodb/patches/buildscripts_scons.py.diff @@ -0,0 +1,25 @@ +--- a/buildscripts/scons.py 2021-08-23 09:10:10 UTC ++++ b/buildscripts/scons.py +@@ -18,14 +18,14 @@ SITE_TOOLS_DIR = os.path.join(MONGODB_ROOT, 'site_scon + + sys.path = [SCONS_DIR, SITE_TOOLS_DIR] + sys.path + +-# pylint: disable=C0413 +-from mongo.pip_requirements import verify_requirements, MissingRequirements +- +-try: +- verify_requirements('etc/pip/compile-requirements.txt') +-except MissingRequirements as ex: +- print(ex) +- sys.exit(1) ++## pylint: disable=C0413 ++#from mongo.pip_requirements import verify_requirements, MissingRequirements ++# ++#try: ++# verify_requirements('etc/pip/compile-requirements.txt') ++#except MissingRequirements as ex: ++# print(ex) ++# sys.exit(1) + + try: + import SCons.Script diff --git a/srcpkgs/mongodb/template b/srcpkgs/mongodb/template new file mode 100644 index 00000000000000..12401f47ec7b06 --- /dev/null +++ b/srcpkgs/mongodb/template @@ -0,0 +1,63 @@ +# Template file for 'mongodb' +pkgname=mongodb +version=7.0.7 +revision=1 +archs="x86_64" +hostmakedepends="python3-cheetah3 python3-packaging python3-psutil + python3-pymongo python3-setuptools python3-yaml" +makedepends="libbson-devel liblzma-devel libstemmer-devel libunwind-devel + libzstd-devel mongo-c-driver-devel openssl-devel pcre2-devel snappy-devel + yaml-cpp-devel zlib-devel" +short_desc="Distributed document-oriented NoSQL database" +maintainer="Florian Wagner " +license="custom:Proprietary" +homepage="https://www.mongodb.com" +distfiles="https://fastdl.mongodb.org/src/mongodb-src-r${version}.tar.gz" +checksum=a2dce499bf32271baca14f430e3f57360d2ac70248a473ff1d2f381883ac2696 +restricted=yes + +system_accounts="_mongodb" +mongodb_homedir="/var/lib/mongodb" +make_dirs="/var/lib/mongodb 0750 _mongodb _mongodb" +conf_files="/etc/mongodb.conf" + +post_patch() { + rm -rf src/third_party/libbson + rm -rf src/third_party/pcre2 + rm -rf src/third_party/snappy-* + rm -rf src/third_party/libstemmer_c + rm -rf src/third_party/unwind + rm -rf src/third_party/yaml-cpp + rm -rf src/third_party/zlib* + rm -rf src/third_party/zstandard +} + +do_build() { + buildscripts/scons.py \ + --allocator=system \ + --cxx-std=20 \ + --disable-warnings-as-errors \ + --runtime-hardening=on \ + --use-system-libunwind \ + --use-system-pcre2 \ + --use-system-snappy \ + --use-system-stemmer \ + --use-system-yaml \ + --use-system-zlib \ + --use-system-zstd \ + --use-system-libbson \ + --use-system-mongo-c=on \ + --ssl \ + --modules= \ + --linker=gold \ + MONGO_VERSION=${version} \ + VERBOSE=on +} + +do_install() { + vbin build/install/bin/mongod + vbin build/install/bin/mongod + vconf ${FILESDIR}/mongodb.conf + vsv mongodb + vlicense LICENSE-Community.txt +}