commit e65bffdf4c118e43e6fe74f8f1fe54b6edf9426b5e1a006c8e4416f4c95adb03 Author: Jan Engelhardt Date: Wed Feb 5 16:26:36 2025 +0000 - Update to release 1.3 OBS-URL: https://build.opensuse.org/package/show/server:mail/grommunio-index?expand=0&rev=8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.3.tar.gz b/1.3.tar.gz new file mode 100644 index 0000000..cce183d --- /dev/null +++ b/1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:218fd64827fb47f3854b1c195f45679fade40f63d6390bc5f254dfe3d21f4912 +size 27173 diff --git a/_service b/_service new file mode 100644 index 0000000..1d9cf63 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + git + https://github.com/grommunio/grommunio-index + grommunio-index + master + @PARENT_TAG@.@TAG_OFFSET@.%h + + + *.tar + xz + + + diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..2c34ecf --- /dev/null +++ b/debian.changelog @@ -0,0 +1,5 @@ +grommunio-index (1) unstable; urgency=low + + * Initial package. + + -- grommunio Mon, 25 Jan 2021 10:00:00 +0100 diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..359bdc9 --- /dev/null +++ b/debian.control @@ -0,0 +1,16 @@ +Source: grommunio-index +Section: python +Priority: optional +Maintainer: Grommunio +Build-Depends: debhelper-compat (= 12), cmake, g++ (>= 10), + libexmdbpp-dev (>= 1.8), libsqlite3-dev, pkg-config, systemd +Rules-Requires-Root: no +Standards-Version: 4.5.1 + +Package: grommunio-index +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Requires: system-user-groindex, + system-group-groweb, system-group-gromoxcf +Description: Generator for grommunio-web search indexes + . diff --git a/debian.grommunio-index.postinst b/debian.grommunio-index.postinst new file mode 100644 index 0000000..c2d3424 --- /dev/null +++ b/debian.grommunio-index.postinst @@ -0,0 +1,3 @@ +usermod grommunio -aG groweb || : +find /var/lib/grommunio-web/sqlite-index/ -mindepth 1 "(" -type d -o -type f ")" -exec chmod g+w,o-w {} + || : +find /var/lib/grommunio-web/sqlite-index/ -mindepth 1 "(" -type d -o -type f ")" -exec chgrp -h groweb {} + || : diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..a0d807a --- /dev/null +++ b/debian.rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ diff --git a/grommunio-index-1.0.6.f40d25b.tar.xz b/grommunio-index-1.0.6.f40d25b.tar.xz new file mode 100644 index 0000000..27a3960 --- /dev/null +++ b/grommunio-index-1.0.6.f40d25b.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:809b060d222309c6c5be5abe539f2765dc26a4ac011271f084f03087829a55b8 +size 22748 diff --git a/grommunio-index.changes b/grommunio-index.changes new file mode 100644 index 0000000..5840583 --- /dev/null +++ b/grommunio-index.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Wed Feb 5 12:53:00 UTC 2025 - Jan Engelhardt + +- Update to release 1.3 + * Prevent indexing of users without mailbox + * Index HTML body + * Evaluate PR_MESSAGE_DELIVERY_TIME before + PR_LAST_MODIFICATION_TIME + * Stop considering inline attachments + * Add trace logging for message updates + +------------------------------------------------------------------- +Wed Sep 4 08:16:24 UTC 2024 - Jan Engelhardt + +- Enable building with %optflags + +------------------------------------------------------------------- +Fri Jun 7 12:32:59 UTC 2024 - Jan Engelhardt + +- Update to snapshot 1.0.6 + * Switch to user identity groindex/groweb+gromoxcf + +------------------------------------------------------------------- +Tue Jan 17 12:59:53 UTC 2023 - Jan Engelhardt + +- Update to release 0.1.18 + * Run index service in unprivileged mode [boo#1207199] + +------------------------------------------------------------------- +Fri Jan 13 23:47:32 UTC 2023 - Jan Engelhardt + +- Initial package (version 0.1.16.e01e06c) for build.opensuse.org diff --git a/grommunio-index.dsc b/grommunio-index.dsc new file mode 100644 index 0000000..f0cc674 --- /dev/null +++ b/grommunio-index.dsc @@ -0,0 +1,14 @@ +Format: 1.0 +Source: grommunio-index +Architecture: any +Version: 1.3 +DEBTRANSFORM-RELEASE: 1 +Maintainer: Grommunio +Homepage: https://grommunio.com/ +Standards-Version: 4.5.0 +Build-Depends: debhelper-compat (= 12), cmake, g++ (>= 10), + libexmdbpp-dev (>= 1.8), libhx-dev (>= 3.27), + libmariadbclient-dev | libmysqlclient-dev | libmariadb-dev, + libsqlite3-dev, libxml2-dev, pkg-config, systemd +Depends: libsqlite3-0 (>= 3.42) +Files: diff --git a/grommunio-index.spec b/grommunio-index.spec new file mode 100644 index 0000000..c80ef8e --- /dev/null +++ b/grommunio-index.spec @@ -0,0 +1,140 @@ +# +# spec file for package grommunio-index +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: grommunio-index +Version: 1.3 +Release: 0 +Summary: Generator for grommunio-web search indexes +License: AGPL-3.0-or-later +Group: Productivity/Networking/Email/Servers +URL: https://grommunio.com/ +Source: https://github.com/grommunio/grommunio-index/archive/refs/tags/%version.tar.gz +BuildRequires: cmake +%if 0%{?suse_version} && 0%{?suse_version} < 1600 +BuildRequires: gcc12-c++ +%else +BuildRequires: gcc-c++ +%endif +%if 0%{?suse_version} +BuildRequires: libmysqlclient-devel >= 5.6 +%else +BuildRequires: mariadb-devel >= 5.6 +%endif +BuildRequires: libexmdbpp-devel >= 1.8.0 +BuildRequires: libexmdbpp0 >= 1.8.0 +BuildRequires: pkgconfig(libHX) >= 3.27 +BuildRequires: pkgconfig(libxml-2.0) +BuildRequires: pkgconfig(sqlite3) +BuildRequires: pkgconfig(systemd) +Requires: libexmdbpp0 >= 1.8.0 +%if 0%{?suse_version} >= 1500 +BuildRequires: sysuser-tools +%sysusers_requires +%else +Requires(pre): %_sbindir/groupadd +Requires(pre): %_sbindir/useradd +%endif +Requires(pre): group(groweb) +Requires(pre): group(gromoxcf) +Requires: group(gromoxcf) +Requires: group(groweb) +Requires: user(groindex) +%if 0%{?rhel} || 0%{?fedora_version} +Requires: gr-sqlite-libs >= 3.42 +%else +Requires: libsqlite3-0 >= 3.42 +%endif +%define services grommunio-index.service grommunio-index.timer + +%description +A C++17 program for the generation of grommunio-web fulltext search indexes. + +%prep +%autosetup -p1 + +%build +>user.pre +%if 0%{?suse_version} >= 1500 +%sysusers_generate_pre %_sourcedir/system-user-groindex.conf user system-user-groindex.conf +%endif + +pushd . +wl="%optflags -DENABLE_TRACE" +%if 0%{?rhel} || 0%{?fedora_version} +wl="-Wl,-rpath,/usr/lib/gr-sqlite/%_lib" +%endif +%cmake \ +%if 0%{?suse_version} && 0%{?suse_version} < 1600 + -DCMAKE_CXX_COMPILER=%_bindir/g++-12 \ +%endif + -DCMAKE_C_FLAGS="%optflags $wl" \ + -DCMAKE_CXX_FLAGS="%optflags $wl" \ + -DCMAKE_C_FLAGS_RELWITHDEBINFO="$wl" \ + -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$wl" +%cmake_build +popd + +%install +pushd . +%cmake_install +popd +mkdir -p "%buildroot/%_datadir/%name" + +%pre -f user.pre +%if 0%{?rhel} || 0%{?fedora_version} +getent group groindex >/dev/null || %_sbindir/groupadd -r groindex +getent group groweb >/dev/null || %_sbindir/groupadd -r groweb +getent group gromoxcf >/dev/null || %_sbindir/groupadd -r gromoxcf +getent passwd groindex >/dev/null || %_sbindir/useradd -g groindex -s /bin/false \ + -r -c "user for %name" -d / groindex +usermod groindex -aG groweb +usermod groindex -aG gromoxcf +%endif +%if 0%{?service_add_pre:1} +%service_add_pre %services +%endif + +%post +%if 0%{?service_add_post:1} +%service_add_post %services +%else +%systemd_post %services +%endif + +%preun +%if 0%{?service_del_preun:1} +%service_del_preun %services +%else +%systemd_preun %services +%endif + +%postun +%if 0%{?service_del_postun:1} +%service_del_postun %services +%else +%systemd_postun_with_restart %services +%endif + +%files +%_bindir/grommunio-index* +%_datadir/%name/ +%_sysusersdir/*.conf +%_unitdir/* +%license LICENSE.txt + +%changelog