Package: mongodb # 4.4+ has hardcoded exact version requirements for the python deps and upstream recommends using a virtual env to do this in. # https://jira.mongodb.org/browse/SERVER-62686 Version: 4.2.23 Revision: 2 Distribution: 10.14.5, 10.15, 11.0, 11.3, 12.0, 13.0, 14.0 Description: High-performance NoSQL implementation License: Restrictive/Distributable # Server Side Public License Maintainer: None Homepage: https://www.mongodb.com/community Source: https://fastdl.mongodb.org/src/%n-src-r%v.tar.gz Source-Checksum: SHA256(d6d3d4656fa26526407f29c0bfaf22e0bdafb8f643a16f5fca47e94d075775cb) #Source2: http://archive.ubuntu.com/ubuntu/pool/universe/m/%n/%n_3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2.debian.tar.xz #Source2-MD5: bd2774320962d7837d0f0d779ba8056c BuildDepends: << boost1.78-nopython, cheetah3-py310, fink (>= 0.32), fink-package-precedence, libcurl4, libpcap1, libpcre1, libsnappy1-dev, libyaml-cpp0.6-dev, libzstd1-dev, openssl300-dev, psutil-py310, python310, scons (>= 3.1.1), setuptools-tng-py310, sqlite3-dev, yaml-py310 << Depends: << boost1.78-nopython-shlibs, libcurl4-shlibs, libpcap1-shlibs, libpcre1-shlibs, libsnappy1-shlibs, libyaml-cpp0.6-shlibs, libzstd1-shlibs, openssl300-shlibs, sqlite3-shlibs << #RuntimeDepends: passwd-mongodb Recommends: mongo-tools PatchFile: %n.patch PatchFile-MD5: cdb7bdaeb07869bab1f08942c4c57300 PatchScript: << sed 's|@FINK_PREFIX@|%p|g' < %{PatchFile} | patch -p1 #patch -p1 < ../debian/patches/CVE-2016-6494.patch # -O3 from hardening patch causes build failures #patch -p1 < ../debian/patches/hardened-build.patch << GCC: 4.0 NoSetMAKEFLAGS: true CompileScript: << # otherwise things get built twice echo "Build and install all happen in InstallScript" << #InfoTest: << # TestScript: << # #!/bin/sh -ev # # The default of 2560 files is too small # ulimit -n 4096 # ./dbtest --dbpath %b/unittest || exit 2 # << #<< InstallScript: << #!/bin/sh -ev # see DescPackaging for which 3rd party libraries can't be used. %p/bin/python3.10 buildscripts/scons.py \ --prefix=%i \ --ssl \ --libc++ \ --release \ --use-system-boost \ --use-system-pcre \ --use-system-snappy \ --use-system-sqlite \ --use-system-yaml \ --use-system-zlib \ --use-system-zstd \ --disable-warnings-as-errors \ install \ $MAKEFLAGS \ CCFLAGS=-MD \ CPPPATH="%p/include %p/opt/boost-1_78/include" \ LIBPATH="%p/lib %p/opt/boost-1_78/lib" \ VERBOSE=on fink-package-precedence --depfile-ext='\.d' . # Create path for databases and logs install -d -m 755 %i/var/db/mongodb %i/var/log/mongodb # install files from Debian install -d -m 755 %i/share/man/man1 cp -p debian/*.1 %i/share/man/man1 install -d -m 755 %i/etc cp -p debian/mongod.conf %i/etc/mongod.conf.example << #PostInstScript: << ## Set u:g for db_home and logdir. These should match %p/etc/mongod.conf #if ! -d %p/var/db/mongodb; then # chown -R mongodb:mongodb %p/var/db/mongodb #fi #if ! -d %p/var/log/mongodb; then # chown -R mongodb:mongodb %p/var/log/mongodb #fi #<< DocFiles: APACHE-2.0.txt CONTRIBUTING.rst README DescDetail: << MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling. << DescUsage: << By default, mongod uses the folder '/data/db' for its storage. If you wish to place the database in an alternate directory, specify it with the following command when starting mongod: mongod --dbpath --logpath \ --logappend %p/var/db/mongodb is the Fink preferred location for the database. %p/var/log/mongodb/mongod.log is the Fink preferred location for the logfile. An example mongodb.conf file is stored at %p/etc/mongodb.conf.example. Rename it to %p/etc/mongodb.conf and edit as needed. << DescPackaging: << Former maintainer: Sjors Gielen system-icu needs at least %v=57.1; %v=72 has lots of errors. system-boost needs c++14 support in boost. system-fmt needs v5. DESTDIR and PREFIX are not supported until about %v=5 <<