Github messages for voidlinux
 help / color / mirror / Atom feed
From: nsudsgaard <nsudsgaard@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: WIP: clamav: update to 1.2.0.
Date: Thu, 14 Sep 2023 16:46:38 +0200	[thread overview]
Message-ID: <20230914144638.KDMt98JA_AAIDIq4yaGU0bG-FzoEvSMz9TfgsZC9L6M@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46041@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 3418 bytes --]

New comment by nsudsgaard on void-packages repository

https://github.com/void-linux/void-packages/pull/46041#issuecomment-1719601295

Comment:
WIP: 1.2.0 patch

```patch
--- a/common/shlibs	2023-09-14 14:00:08.268535424 +0900
+++ b/common/shlibs	2023-09-14 21:32:26.745618939 +0900
@@ -2256,11 +2256,11 @@
 libsfml-window.so.2.5 SFML-2.5.0_1
 libsfml-audio.so.2.5 SFML-2.5.0_1
 libsfml-graphics.so.2.5 SFML-2.5.0_1
-libclamav.so.11 clamav-1.0.3_1
-libclamunrar.so.11 clamav-1.0.3_1
-libclamunrar_iface.so.11 clamav-1.0.3_1
-libclammspack.so.0 clamav-1.0.3_1
-libfreshclam.so.2 clamav-0.103.1_2
+libclamav.so.12 clamav-1.2.0_1
+libclamunrar.so.12 clamav-1.2.0_1
+libclamunrar_iface.so.12 clamav-1.2.0_1
+libclammspack.so.0 clamav-1.2.0_1
+libfreshclam.so.3 clamav-1.2.0_1
 libqca-qt5.so.2 qca-qt5-2.1.3_1
 libqt5keychain.so.1 qtkeychain-qt5-0.7.0_1
 libphonon4qt5.so.4 phonon-qt5-4.8.3_1
--- a/srcpkgs/clamav/template	2023-09-14 23:44:26.619590292 +0900
+++ b/srcpkgs/clamav/template	2023-09-14 22:15:10.006635765 +0900
@@ -1,6 +1,6 @@
 # Template file for 'clamav'
 pkgname=clamav
-version=1.0.3
+version=1.2.0
 revision=1
 build_style=cmake
 cmake_builddir=build
@@ -10,9 +10,9 @@
  -D CMAKE_BUILD_TYPE=Release
  -D CMAKE_INSTALL_PREFIX=/usr
  -D APP_CONFIG_DIRECTORY=/etc
- -D DATABASE_DIRECTORY=/var/lib/_${pkgname}
- -D CLAMAV_USER=_${pkgname}
- -D CLAMAV_GROUP=_${pkgname}
+ -D DATABASE_DIRECTORY=/var/lib/_clamav
+ -D CLAMAV_USER=_clamav
+ -D CLAMAV_GROUP=_clamav
  -D ENABLE_JSON_SHARED=OFF"
 hostmakedepends="rust cargo python3"
 makedepends="bzip2-devel check-devel libcurl-devel json-c-devel libmilter-devel
@@ -21,17 +21,19 @@
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-only"
 homepage="https://www.clamav.net/"
+changelog="https://raw.githubusercontent.com/Cisco-Talos/clamav/main/NEWS.md"
 distfiles="https://www.clamav.net/downloads/production/clamav-${version}.tar.gz"
-checksum=8779458dc31fdee1232eb8986f092d25568b39f5d337c0cbcd9c1abb5dc2886b
-system_accounts="_${pkgname}"
-_clamav_descr="ClamAV user"
-_clamav_homedir="/var/lib/_${pkgname}"
+checksum=97a192dffe141480b56cabf1063d79a9fc55cd59203241fa41bfc7a98a548020
+system_accounts="_clamav"
+_clamav_homedir="/var/lib/_clamav"
 conf_files="/etc/clamd.conf /etc/freshclam.conf /etc/clamav-milter.conf"
 
 if [ "$CROSS_BUILD" ]; then
 	build_helper="qemu"
 	makedepends+=" rust-std"
-	configure_args+=" -D RUST_COMPILER_TARGET:STRING=${XBPS_CROSS_RUST_TARGET}"
+	configure_args+="
+	-D RUST_COMPILER_TARGET:STRING=${XBPS_CROSS_RUST_TARGET}
+	-D RUSTFLAGS=${XBPS_CROSS_RUSTFLAGS}"
 fi
 
 if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
@@ -39,15 +41,6 @@
 	configure_args+=" -D CMAKE_EXE_LINKER_FLAGS=-lfts"
 fi
 
-pre_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		path=${XBPS_CROSS_BASE}/lib/rustlib/${XBPS_CROSS_RUST_TARGET}/lib
-
-		sed -i cmake/FindRust.cmake \
-		   -e "s:^set(RUSTFLAGS \"\")$:set(RUSTFLAGS \"-L${path}\"):g"
-	fi
-}
-
 post_install() {
 	vmkdir /etc 755
 	for path in ${conf_files}; do
@@ -57,7 +50,7 @@
 		vsconf ${PKGDESTDIR}/${path} ${name}.sample
 		sed -i ${PKGDESTDIR}/${path}        \
 			-e "s;^Example$;# Example;" \
-			-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/_${pkgname};"
+			-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/_clamav;"
 	done
 	vdoc ${FILESDIR}/README.voidlinux
 
```

  parent reply	other threads:[~2023-09-14 14:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  9:39 [PR PATCH] clamav: update to 1.0.3, adopt nsudsgaard
2023-09-13  9:42 ` [PR PATCH] [Updated] " nsudsgaard
2023-09-13 20:54 ` r-ricci
2023-09-14  2:26 ` nsudsgaard
2023-09-14  3:47 ` classabbyamp
2023-09-14  3:53 ` [PR PATCH] [Updated] " nsudsgaard
2023-09-14  3:54 ` clamav: update to 1.0.3 nsudsgaard
2023-09-14  7:02 ` r-ricci
2023-09-14  7:04 ` r-ricci
2023-09-14  7:05 ` r-ricci
2023-09-14 10:55 ` nsudsgaard
2023-09-14 14:46 ` nsudsgaard [this message]
2023-09-17  6:22 ` [PR PATCH] [Updated] WIP: clamav: update to 1.2.0 nsudsgaard
2023-09-17  6:25 ` [PR PATCH] [Merged]: " Johnnynator
2023-09-18  9:20 ` jcgruenhage
2023-09-18 12:39 ` nsudsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230914144638.KDMt98JA_AAIDIq4yaGU0bG-FzoEvSMz9TfgsZC9L6M@z \
    --to=nsudsgaard@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).