diff --git a/databases/qdrant/Makefile b/databases/qdrant/Makefile index 43d87da1d54d..8219397f1a4b 100644 --- a/databases/qdrant/Makefile +++ b/databases/qdrant/Makefile @@ -1,626 +1,626 @@ PORTNAME= qdrant DISTVERSIONPREFIX= v DISTVERSION= 1.7.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases MAINTAINER= yuri@FreeBSD.org COMMENT= Vector search engine and database for the next gen AI applications WWW= https://qdrant.tech LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_i386= compilation breaks with fatal warning: implicit conversion from 'std::numeric_limits::type' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') changes value from 18446744073709551615 to 4294967295 BROKEN_powerpc64le= compilation failure: called `Option::unwrap()` on a `None` value in ring-0.16.20/build.rs: # see https://github.com/qdrant/qdrant/issues/3392 BUILD_DEPENDS= protoc:devel/protobuf USES= cargo gmake llvm:min=13 perl5 pkgconfig USE_GITHUB= yes USE_PERL5= build USE_RC_SUBR= qdrant CARGO_CRATES= actix-codec-0.5.0 \ actix-cors-0.6.5 \ actix-files-0.6.2 \ actix-http-3.4.0 \ actix-macros-0.2.3 \ actix-multipart-0.6.1 \ actix-multipart-derive-0.6.1 \ actix-router-0.5.1 \ actix-rt-2.7.0 \ actix-server-2.1.1 \ actix-service-2.0.2 \ actix-tls-3.1.0 \ actix-utils-3.0.1 \ actix-web-4.4.0 \ actix-web-codegen-4.2.0 \ actix-web-httpauth-0.8.1 \ actix-web-validator-5.0.1 \ addr2line-0.19.0 \ adler-1.0.2 \ aes-0.8.3 \ ahash-0.7.7 \ ahash-0.8.5 \ aho-corasick-1.0.2 \ alloc-no-stdlib-2.0.4 \ alloc-stdlib-0.2.2 \ allocator-api2-0.2.16 \ android-tzdata-0.1.1 \ android_system_properties-0.1.5 \ anes-0.1.6 \ anstream-0.6.4 \ anstyle-1.0.0 \ anstyle-parse-0.2.0 \ anstyle-query-1.0.0 \ anstyle-wincon-3.0.1 \ antidote-1.0.0 \ anyhow-1.0.75 \ approx-0.5.1 \ arc-swap-1.6.0 \ arrayvec-0.4.12 \ arrayvec-0.7.2 \ askama_escape-0.10.3 \ async-stream-0.3.3 \ async-stream-impl-0.3.3 \ async-trait-0.1.74 \ atomic-polyfill-0.1.11 \ atomic_refcell-0.1.13 \ atomicwrites-0.4.2 \ autocfg-1.1.0 \ axum-0.6.12 \ axum-core-0.3.3 \ backtrace-0.3.67 \ base64-0.13.1 \ base64-0.21.0 \ base64ct-1.6.0 \ bincode-1.3.3 \ bindgen-0.65.1 \ bit-set-0.5.3 \ bit-vec-0.6.3 \ bitflags-1.3.2 \ bitflags-2.4.1 \ bitvec-1.0.1 \ blake2-rfc-0.2.18 \ block-buffer-0.10.3 \ brotli-3.3.4 \ brotli-decompressor-2.3.2 \ bumpalo-3.11.1 \ bytemuck-1.12.3 \ byteorder-1.4.3 \ bytes-1.3.0 \ bytestring-1.2.0 \ bzip2-0.4.4 \ bzip2-sys-0.1.11+1.0.8 \ cast-0.3.0 \ cc-1.0.83 \ cedarwood-0.4.6 \ cexpr-0.6.0 \ cfg-if-1.0.0 \ cgroups-rs-0.3.4 \ charabia-0.8.5 \ chrono-0.4.31 \ ci_info-0.10.2 \ ciborium-0.2.0 \ ciborium-io-0.2.0 \ ciborium-ll-0.2.0 \ cipher-0.4.4 \ clang-sys-1.4.0 \ clap-4.4.11 \ clap_builder-4.4.11 \ clap_derive-4.4.7 \ clap_lex-0.6.0 \ codespan-reporting-0.11.1 \ colorchoice-1.0.0 \ colored-2.1.0 \ config-0.13.4 \ console-0.15.2 \ console-api-0.5.0 \ console-subscriber-0.1.10 \ constant_time_eq-0.1.5 \ constant_time_eq-0.3.0 \ convert_case-0.4.0 \ cookie-0.16.2 \ core-foundation-0.9.4 \ core-foundation-sys-0.8.6 \ cow-utils-0.1.2 \ cpp_demangle-0.4.2 \ cpufeatures-0.2.5 \ crc32c-0.6.4 \ crc32fast-1.3.2 \ criterion-0.5.1 \ criterion-plot-0.5.0 \ critical-section-1.1.1 \ crossbeam-channel-0.5.8 \ crossbeam-deque-0.8.2 \ crossbeam-epoch-0.9.13 \ crossbeam-utils-0.8.14 \ crypto-common-0.1.6 \ csv-1.2.2 \ csv-core-0.1.10 \ cxx-1.0.85 \ cxx-build-1.0.85 \ cxxbridge-flags-1.0.85 \ cxxbridge-macro-1.0.85 \ darling-0.20.3 \ darling_core-0.20.3 \ darling_macro-0.20.3 \ debugid-0.8.0 \ derive_more-0.99.17 \ deunicode-1.3.3 \ digest-0.10.6 \ dlv-list-0.3.0 \ docopt-1.1.1 \ dyn-clone-1.0.10 \ earcutr-0.4.2 \ either-1.8.1 \ encode_unicode-0.3.6 \ encoding-0.2.33 \ encoding-index-japanese-1.20141219.5 \ encoding-index-korean-1.20141219.5 \ encoding-index-simpchinese-1.20141219.5 \ encoding-index-singlebyte-1.20141219.5 \ encoding-index-tradchinese-1.20141219.5 \ encoding_index_tests-0.1.4 \ encoding_rs-0.8.32 \ encoding_rs_io-0.1.7 \ env_logger-0.10.1 \ envmnt-0.8.4 \ equivalent-1.0.1 \ errno-0.3.1 \ errno-dragonfly-0.1.2 \ fastrand-2.0.0 \ filetime-0.2.19 \ findshlibs-0.10.2 \ fixedbitset-0.4.2 \ flate2-1.0.26 \ float_next_after-1.0.0 \ fnv-1.0.7 \ foreign-types-0.5.0 \ foreign-types-macros-0.2.3 \ foreign-types-shared-0.3.1 \ form_urlencoded-1.2.1 \ fs4-0.7.0 \ fs_extra-1.3.0 \ fsio-0.1.3 \ fst-0.4.7 \ funty-2.0.0 \ futures-0.3.29 \ futures-channel-0.3.29 \ futures-core-0.3.29 \ futures-executor-0.3.29 \ futures-io-0.3.29 \ futures-macro-0.3.29 \ futures-sink-0.3.29 \ futures-task-0.3.29 \ futures-timer-3.0.2 \ futures-util-0.3.29 \ fxhash-0.2.1 \ generator-0.7.4 \ generic-array-0.14.6 \ geo-0.27.0 \ geo-types-0.7.12 \ geographiclib-rs-0.2.3 \ geohash-0.13.0 \ getopts-0.2.21 \ getrandom-0.1.16 \ getrandom-0.2.11 \ getset-0.1.2 \ gimli-0.27.0 \ glob-0.3.1 \ h2-0.3.21 \ half-1.8.2 \ hash32-0.2.1 \ hashbrown-0.12.3 \ hashbrown-0.14.2 \ hashring-0.3.3 \ hdrhistogram-7.5.2 \ heapless-0.7.16 \ heck-0.4.0 \ hermit-abi-0.3.3 \ hex-0.4.3 \ hmac-0.12.1 \ http-0.2.9 \ http-body-0.4.5 \ http-range-0.1.5 \ httparse-1.8.0 \ httpdate-1.0.2 \ humantime-2.1.0 \ hyper-0.14.26 \ hyper-rustls-0.24.0 \ hyper-timeout-0.4.1 \ iana-time-zone-0.1.53 \ iana-time-zone-haiku-0.1.1 \ ident_case-1.0.1 \ idna-0.4.0 \ idna-0.5.0 \ if_chain-1.0.2 \ impl-more-0.1.6 \ indexmap-1.9.2 \ indexmap-2.0.1 \ indicatif-0.17.6 \ inferno-0.11.18 \ inout-0.1.3 \ instant-0.1.12 \ io-lifetimes-1.0.11 \ io-uring-0.6.2 \ ipnet-2.7.0 \ irg-kvariants-0.1.0 \ is-terminal-0.4.6 \ itertools-0.10.5 \ itertools-0.12.0 \ itoa-1.0.5 \ jieba-rs-0.6.8 \ jobserver-0.1.25 \ js-sys-0.3.60 \ json5-0.4.1 \ language-tags-0.3.2 \ lazy_static-1.4.0 \ lazycell-1.3.0 \ libc-0.2.150 \ libloading-0.7.4 \ libm-0.2.6 \ librocksdb-sys-0.11.0+8.1.1 \ libz-sys-1.1.8 \ lindera-cc-cedict-builder-0.27.1 \ lindera-compress-0.27.1 \ lindera-core-0.27.1 \ lindera-decompress-0.27.1 \ lindera-dictionary-0.27.1 \ lindera-ipadic-builder-0.27.1 \ lindera-ipadic-neologd-builder-0.27.1 \ lindera-ko-dic-0.27.1 \ lindera-ko-dic-builder-0.27.1 \ lindera-tokenizer-0.27.1 \ lindera-unidic-0.27.1 \ lindera-unidic-builder-0.27.1 \ link-cplusplus-1.0.8 \ linked-hash-map-0.5.6 \ linux-raw-sys-0.3.8 \ linux-raw-sys-0.4.11 \ litemap-0.6.1 \ local-channel-0.1.3 \ local-waker-0.1.3 \ lock_api-0.4.9 \ log-0.4.20 \ loom-0.5.6 \ matchers-0.1.0 \ matchit-0.7.0 \ memchr-2.5.0 \ memmap2-0.5.10 \ memmap2-0.9.2 \ memoffset-0.7.1 \ merge-0.1.0 \ merge_derive-0.1.0 \ mime-0.3.16 \ mime_guess-2.0.4 \ minimal-lexical-0.2.1 \ miniz_oxide-0.6.2 \ miniz_oxide-0.7.1 \ mio-0.8.9 \ multimap-0.8.3 \ nias-0.5.0 \ nix-0.25.1 \ nix-0.26.2 \ nodrop-0.1.14 \ nom-7.1.1 \ ntapi-0.4.1 \ nu-ansi-term-0.46.0 \ num-derive-0.4.1 \ num-format-0.4.4 \ num-traits-0.2.16 \ num_cpus-1.16.0 \ number_prefix-0.4.0 \ object-0.30.0 \ once_cell-1.18.0 \ oorandom-11.1.3 \ ordered-float-2.10.1 \ ordered-float-4.2.0 \ ordered-multimap-0.4.3 \ overload-0.1.1 \ parking_lot-0.12.1 \ parking_lot_core-0.9.5 \ parse-size-1.0.0 \ password-hash-0.4.2 \ paste-1.0.11 \ pathdiff-0.2.1 \ pbkdf2-0.11.0 \ peeking_take_while-0.1.2 \ percent-encoding-2.3.1 \ permutation_iterator-0.1.2 \ pest-2.5.1 \ pest_derive-2.5.1 \ pest_generator-2.5.1 \ pest_meta-2.5.1 \ petgraph-0.6.2 \ phf-0.11.2 \ phf_codegen-0.11.2 \ phf_generator-0.11.2 \ phf_shared-0.11.2 \ pin-project-1.0.12 \ pin-project-internal-1.0.12 \ pin-project-lite-0.2.12 \ pin-utils-0.1.0 \ pinyin-0.9.0 \ pkg-config-0.3.26 \ plotters-0.3.4 \ plotters-backend-0.3.4 \ plotters-svg-0.3.3 \ portable-atomic-1.3.2 \ pprof-0.12.1 \ ppv-lite86-0.2.17 \ prettyplease-0.1.22 \ prettyplease-0.2.4 \ proc-macro-error-1.0.4 \ proc-macro-error-attr-1.0.4 \ proc-macro2-1.0.63 \ procfs-0.16.0 \ procfs-core-0.16.0 \ prometheus-0.13.3 \ proptest-1.4.0 \ prost-0.11.9 \ prost-0.12.0 \ prost-build-0.11.9 \ prost-build-0.12.0 \ prost-derive-0.11.9 \ prost-derive-0.12.0 \ prost-types-0.11.9 \ prost-types-0.12.0 \ protobuf-2.28.0 \ protobuf-build-0.14.0 \ pulldown-cmark-0.9.3 \ pulldown-cmark-to-cmark-10.0.4 \ quick-error-1.2.3 \ quick-xml-0.26.0 \ quote-1.0.29 \ radium-0.7.0 \ raft-0.7.0 \ raft-proto-0.7.0 \ rand-0.7.3 \ rand-0.8.5 \ rand_chacha-0.2.2 \ rand_chacha-0.3.1 \ rand_core-0.5.1 \ rand_core-0.6.4 \ rand_distr-0.4.3 \ rand_hc-0.2.0 \ rand_xorshift-0.3.0 \ rayon-1.8.0 \ rayon-core-1.12.0 \ redox_syscall-0.2.16 \ redox_syscall-0.4.1 \ regex-1.8.4 \ regex-automata-0.1.10 \ regex-syntax-0.6.28 \ regex-syntax-0.7.2 \ regex-syntax-0.8.2 \ relative-path-1.8.0 \ reqwest-0.11.22 \ rgb-0.8.34 \ ring-0.16.20 \ ring-0.17.5 \ rmp-0.8.11 \ rmp-serde-1.1.2 \ robust-1.1.0 \ rocksdb-0.21.0 \ ron-0.7.1 \ rstack-0.3.3 \ rstack-self-0.3.0 \ rstar-0.11.0 \ rstest-0.18.2 \ rstest_macros-0.18.2 \ rust-ini-0.18.0 \ rustc-demangle-0.1.21 \ rustc-hash-1.1.0 \ rustc_version-0.4.0 \ rustix-0.37.27 \ rustix-0.38.21 \ rustls-0.21.10 \ rustls-pemfile-1.0.3 \ rustls-webpki-0.100.2 \ rustls-webpki-0.101.7 \ rustversion-1.0.11 \ rusty-fork-0.3.0 \ rusty-forkfork-0.4.0 \ rusty-hook-0.11.2 \ ryu-1.0.12 \ same-file-1.0.6 \ schemars-0.8.16 \ schemars_derive-0.8.16 \ scoped-tls-1.0.1 \ scopeguard-1.1.0 \ scratch-1.0.3 \ sct-0.7.0 \ seahash-4.1.0 \ sealed_test-1.0.0 \ sealed_test_derive-1.0.0 \ semver-1.0.20 \ serde-1.0.193 \ serde-value-0.7.0 \ serde_cbor-0.11.2 \ serde_derive-1.0.193 \ serde_derive_internals-0.26.0 \ serde_json-1.0.108 \ serde_plain-1.0.1 \ serde_qs-0.10.1 \ serde_urlencoded-0.7.1 \ sha1-0.10.5 \ sha2-0.10.6 \ sharded-slab-0.1.4 \ shlex-1.1.0 \ signal-hook-registry-1.4.0 \ siphasher-0.3.10 \ slab-0.4.7 \ slice-group-by-0.3.1 \ slog-2.7.0 \ slog-scope-4.4.0 \ slog-stdlog-4.1.1 \ smallvec-1.10.0 \ smol_str-0.2.0 \ socket2-0.4.9 \ socket2-0.5.5 \ spade-2.4.1 \ spin-0.5.2 \ spin-0.9.8 \ stable_deref_trait-1.2.0 \ static_assertions-1.1.0 \ str_stack-0.1.0 \ strsim-0.10.0 \ subtle-2.4.1 \ symbolic-common-12.2.0 \ symbolic-demangle-12.2.0 \ syn-1.0.107 \ syn-2.0.32 \ sync_wrapper-0.1.1 \ sys-info-0.9.1 \ sysinfo-0.29.11 \ system-configuration-0.5.1 \ system-configuration-sys-0.5.0 \ tap-1.0.1 \ tar-0.4.40 \ tempfile-3.8.1 \ termcolor-1.1.3 \ terminal_size-0.1.17 \ thiserror-1.0.50 \ thiserror-impl-1.0.50 \ thread-id-4.0.0 \ thread_local-1.1.7 \ tikv-jemalloc-sys-0.5.2+5.3.0-patched \ tikv-jemallocator-0.5.4 \ time-0.3.17 \ time-core-0.1.0 \ time-macros-0.2.6 \ tinytemplate-1.2.1 \ tinyvec-1.6.0 \ tinyvec_macros-0.1.0 \ tokio-1.35.0 \ tokio-io-timeout-1.2.0 \ tokio-macros-2.2.0 \ tokio-rustls-0.24.1 \ tokio-stream-0.1.11 \ tokio-util-0.7.10 \ toml-0.5.10 \ tonic-build-0.10.2 \ tonic-reflection-0.9.2 \ tower-0.4.13 \ tower-layer-0.3.2 \ tower-service-0.3.2 \ tracing-0.1.37 \ tracing-attributes-0.1.23 \ tracing-core-0.1.30 \ tracing-log-0.2.0 \ tracing-subscriber-0.3.18 \ tracing-tracy-0.10.4 \ tracy-client-0.16.2 \ tracy-client-sys-0.21.2 \ try-lock-0.2.3 \ typenum-1.16.0 \ ucd-trie-0.1.5 \ unarray-0.1.4 \ unicase-2.6.0 \ unicode-bidi-0.3.13 \ unicode-ident-1.0.6 \ unicode-normalization-0.1.22 \ unicode-width-0.1.10 \ untrusted-0.7.1 \ untrusted-0.9.0 \ unwind-0.4.1 \ unwind-sys-0.1.3 \ ureq-2.7.1 \ url-2.5.0 \ utf8parse-0.2.1 \ uuid-1.6.1 \ validator-0.16.1 \ validator_derive-0.16.0 \ validator_types-0.16.0 \ valuable-0.1.0 \ vcpkg-0.2.15 \ version_check-0.9.4 \ wait-timeout-0.2.0 \ walkdir-2.4.0 \ want-0.3.0 \ wasi-0.9.0+wasi-snapshot-preview1 \ wasi-0.11.0+wasi-snapshot-preview1 \ wasm-bindgen-0.2.83 \ wasm-bindgen-backend-0.2.83 \ wasm-bindgen-futures-0.4.33 \ wasm-bindgen-macro-0.2.83 \ wasm-bindgen-macro-support-0.2.83 \ wasm-bindgen-shared-0.2.83 \ wasm-streams-0.3.0 \ web-sys-0.3.60 \ webpki-roots-0.23.1 \ webpki-roots-0.25.2 \ whatlang-0.16.2 \ which-4.3.0 \ winapi-0.3.9 \ winapi-i686-pc-windows-gnu-0.4.0 \ winapi-util-0.1.5 \ winapi-x86_64-pc-windows-gnu-0.4.0 \ windows-0.48.0 \ windows-sys-0.42.0 \ windows-sys-0.45.0 \ windows-sys-0.48.0 \ windows-targets-0.42.2 \ windows-targets-0.48.0 \ windows_aarch64_gnullvm-0.42.2 \ windows_aarch64_gnullvm-0.48.0 \ windows_aarch64_msvc-0.42.2 \ windows_aarch64_msvc-0.48.0 \ windows_i686_gnu-0.42.2 \ windows_i686_gnu-0.48.0 \ windows_i686_msvc-0.42.2 \ windows_i686_msvc-0.48.0 \ windows_x86_64_gnu-0.42.2 \ windows_x86_64_gnu-0.48.0 \ windows_x86_64_gnullvm-0.42.2 \ windows_x86_64_gnullvm-0.48.0 \ windows_x86_64_msvc-0.42.2 \ windows_x86_64_msvc-0.48.0 \ winreg-0.50.0 \ wyz-0.5.1 \ xattr-1.0.1 \ yada-0.5.0 \ yaml-rust-0.4.5 \ zerocopy-0.7.31 \ zerocopy-derive-0.7.31 \ zerofrom-0.1.3 \ zerovec-0.9.6 \ zip-0.6.6 \ zstd-0.11.2+zstd.1.5.2 \ zstd-0.12.2+zstd.1.5.2 \ zstd-safe-5.0.2+zstd.1.5.2 \ zstd-safe-6.0.2+zstd.1.5.2 \ zstd-sys-2.0.4+zstd.1.5.2 \ wal@git+https://github.com/qdrant/wal.git?rev=fad0e7c48be58d8e7db4cc739acd9b1cf6735de0\#fad0e7c48be58d8e7db4cc739acd9b1cf6735de0 \ tonic@git+https://github.com/qdrant/tonic?branch=v0.9.2-patched\#060ab88c87955adc59d46a44b4e3b72cb4cc1522 \ quantization@git+https://github.com/qdrant/quantization.git\#939fdb627a8edcf92fd71e3c79017156690850e9 QDRANT_DBDIR?= /var/db/qdrant QDRANT_USER?= nobody QDRANT_GROUP?= nobody SUB_LIST= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX} PLIST_SUB= QDRANT_DBDIR=${QDRANT_DBDIR} \ QDRANT_GROUP=${QDRANT_GROUP} \ QDRANT_USER=${QDRANT_USER} post-patch: ${REINPLACE_CMD} -e "s,%%DBDIR%%,${QDRANT_DBDIR},g; \ s,%%ETCDIR%%,${ETCDIR},g" ${WRKSRC}/config/config.yaml post-install: # install config sample ${MKDIR} ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}${ETCDIR}/tls ${MKDIR} ${STAGEDIR}${QDRANT_DBDIR} ${INSTALL_DATA} ${WRKSRC}/config/config.yaml ${STAGEDIR}${ETCDIR}/config.yaml.sample # strip binaries ${STRIP_CMD} \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin/schema_generator \ ${STAGEDIR}${PREFIX}/bin/wal_inspector .include diff --git a/databases/qdrant/files/qdrant.in b/databases/qdrant/files/qdrant.in index 4b0aecf61408..0f75159650e4 100644 --- a/databases/qdrant/files/qdrant.in +++ b/databases/qdrant/files/qdrant.in @@ -1,129 +1,131 @@ #!/bin/sh # PROVIDE: qdrant # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to run qdrant: # # qdrant_profiles (str): Set to "" by default. # Define your profiles here. # qdrant(_profile)?_enable (bool): Set it to "YES" to enable qdrant. # Default is "NO". # qdrant(_profile)?_config (str): Full name of config file # Default is "%%ETCDIR%%/config.yaml" or # "%%ETCDIR%%/config(.profile)?.yaml # qdrant(_profile)?_flags (flags): Set extra flags here. More options in qdrant(1) # Default is empty "". # qdrant(_profile)?_user (user): Set user to run qdrant. # Default is "nobody". # qdrant(_profile)?_group (group): Set group to run qdrant. # Default is "nobody". # qdrant(_profile)?_post_start (str): Set extra commands that should be executed after qdrant was successfully # started here. # Default is empty "". . /etc/rc.subr name="qdrant" rcvar=qdrant_enable _piddir="/var/run/qdrant" pidfile="${_piddir}/qdrant.pid" : ${qdrant_enable="NO"} : ${qdrant_config="%%ETCDIR%%/config.yaml"} : ${qdrant_user="nobody"} : ${qdrant_group="nobody"} +: ${qdrant_flags=""} load_rc_config ${name} if [ -n "$2" ]; then profile="$2" if [ -n "${qdrant_profiles}" ]; then pidfile="${_piddir}/qdrant.${profile}.pid" eval qdrant_enable="\${qdrant_${profile}_enable:-${qdrant_enable}}" eval qdrant_config="\${qdrant_${profile}_config:-${qdrant_config}}" eval qdrant_user="\${qdrant_${profile}_user:-${qdrant_user}}" eval qdrant_group="\${qdrant_${profile}_group:-${qdrant_group}}" eval qdrant_flags="\${qdrant_${profile}_flags:-${qdrant_flags}}" eval qdrant_post_start="\${qdrant_${profile}_post_start:-${qdrant_post_start}}" else echo "%%PREFIX%%/etc/rc.d/qdrant%%RC_SUBR_SUFFIX%%: extra argument ignored" fi else if [ -n "${qdrant_profiles}" -a -n "$1" ]; then for profile in ${qdrant_profiles}; do eval _enable="\${qdrant_${profile}_enable}" case "${_enable:-${qdrant_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 test -z "$_enable"; then _var=qdrant_enable else _var=qdrant_"${profile}"_enable fi warn "Bad value" \ "'${_enable:-${qdrant_enable}}'" \ "for ${_var}. " \ "Profile ${profile} skipped." continue ;; esac echo "===> qdrant profile: ${profile}" if %%PREFIX%%/etc/rc.d/qdrant%%RC_SUBR_SUFFIX%% $1 ${profile} ; then success="${profile} ${success:-}" else failed="${profile} (${retcode}) ${failed:-}" fi done exit 0 fi fi qdrant_poststart() { if [ -n "$qdrant_post_start" ]; then eval $qdrant_post_start fi } qdrant_poststop() { if [ -n "${profile}" ]; then [ -e "$pidfile" ] && unlink $pidfile else local file for file in ${_piddir}/* ; do case "$file" in *\*) continue ;; esac unlink $file done fi } _profsuffx="" if [ -n "${profile}" ]; then _profsuffx="-${profile}" fi required_files="$qdrant_config" procname=%%PREFIX%%/bin/qdrant command="/usr/sbin/daemon" command_args="-f -S -p ${pidfile} \ -t qdrant${_profsuffx} \ - %%PREFIX%%/bin/qdrant --config-path $qdrant_config" + %%PREFIX%%/bin/qdrant --config-path $qdrant_config \ + $qdrant_flags" start_precmd="install -d -o $qdrant_user -g $qdrant_group -m 755 $_piddir" start_postcmd="${name}_poststart" stop_postcmd="${name}_poststop" run_rc_command "$1"