- Update to release 1.3

OBS-URL: https://build.opensuse.org/package/show/server:mail/grommunio-index?expand=0&rev=8
This commit is contained in:
Jan Engelhardt 2025-02-05 16:26:36 +00:00 committed by Git OBS Bridge
commit e65bffdf4c
12 changed files with 257 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
1.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:218fd64827fb47f3854b1c195f45679fade40f63d6390bc5f254dfe3d21f4912
size 27173

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/grommunio/grommunio-index</param>
<param name="filename">grommunio-index</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.%h</param>
</service>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="manual"/>
</services>

5
debian.changelog Normal file
View File

@ -0,0 +1,5 @@
grommunio-index (1) unstable; urgency=low
* Initial package.
-- grommunio <support@grommunio.com> Mon, 25 Jan 2021 10:00:00 +0100

16
debian.control Normal file
View File

@ -0,0 +1,16 @@
Source: grommunio-index
Section: python
Priority: optional
Maintainer: Grommunio <null@grommunio.com>
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
.

View File

@ -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 {} + || :

3
debian.rules Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:809b060d222309c6c5be5abe539f2765dc26a4ac011271f084f03087829a55b8
size 22748

32
grommunio-index.changes Normal file
View File

@ -0,0 +1,32 @@
-------------------------------------------------------------------
Wed Feb 5 12:53:00 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- 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 <jengelh@inai.de>
- Enable building with %optflags
-------------------------------------------------------------------
Fri Jun 7 12:32:59 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to snapshot 1.0.6
* Switch to user identity groindex/groweb+gromoxcf
-------------------------------------------------------------------
Tue Jan 17 12:59:53 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Update to release 0.1.18
* Run index service in unprivileged mode [boo#1207199]
-------------------------------------------------------------------
Fri Jan 13 23:47:32 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Initial package (version 0.1.16.e01e06c) for build.opensuse.org

14
grommunio-index.dsc Normal file
View File

@ -0,0 +1,14 @@
Format: 1.0
Source: grommunio-index
Architecture: any
Version: 1.3
DEBTRANSFORM-RELEASE: 1
Maintainer: Grommunio <null@grommunio.com>
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:

140
grommunio-index.spec Normal file
View File

@ -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