[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: 7468ab8225c0334ad8f726a749153c137733a47e
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 03:09:14 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 03:14:40 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7468ab82

app-crypt/sac-core: add QA_FLAGS_IGNORED

ae10815e7fbf11a9903e4737c9d36188a7cc6d30 adds the incorrect QA_*
variable to close the bugs.

Closes: https://bugs.gentoo.org/931340
Closes: https://bugs.gentoo.org/931339
Signed-off-by: Lucio Sauer  posteo.net>

 app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index 5a0d7970c5..621f86281a 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -29,10 +29,11 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="app-arch/unzip"
 
-QA_PREBUILT="
+QA_FLAGS_IGNORED="
usr/bin/SACSrv
usr/lib64/.*
 "
+QA_PREBUILT="${QA_FLAGS_IGNORED}"
 
 src_unpack() {
default



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: ae10815e7fbf11a9903e4737c9d36188a7cc6d30
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 01:34:23 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 01:34:23 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ae10815e

app-crypt/sac-core: add QA_PREBUILT

Closes: https://bugs.gentoo.org/931340
Closes: https://bugs.gentoo.org/931339
Signed-off-by: Lucio Sauer  posteo.net>

 app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 5 +
 1 file changed, 5 insertions(+)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index 26f76629ee..00df9ea8e2 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -29,6 +29,11 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="app-arch/unzip"
 
+QA_PREBUILT="
+   usr/bin/SACSrv
+   usr/lib64/.*
+"
+
 src_unpack() {
default
unpacker "SAC Linux ${PV} R1 
GA/Installation/withoutUI/Ubuntu-2204/safenetauthenticationclient-core_${PV}_amd64.deb"



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: 9b86eb6576329c8eba4eec21c582447337155ebd
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 01:51:01 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 01:56:14 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9b86eb65

app-crypt/sac-core: redo src_install with PMS commands

Remove upstream's documentation compression
https://cmpct.info/~sam/blog/posts/automatic-manpage-compression/

Signed-off-by: Lucio Sauer  posteo.net>

 app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 34 +++--
 1 file changed, 15 insertions(+), 19 deletions(-)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index cc84632e55..5a0d7970c5 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -40,29 +40,25 @@ src_unpack() {
 }
 
 src_install() {
-   # v10.8 is 64bit only, so move to the proper libdir
-   mv usr/lib usr/$(get_libdir) || die
+   dobin usr/bin/SACSrv
 
-   # libs are not marked as executable
-   chmod 755 usr/$(get_libdir)/lib*.${PV} || die
+   find usr/lib -maxdepth 1 -name "*.so*" -exec dolib.so {} + || die
+   dodir /usr/$(get_libdir)/pkcs11
+   insinto /usr/$(get_libdir)
+   doins -r usr/lib/pkcs11
 
-   # move docs to proper location
-   mkdir -p "usr/share/doc/${PF}" || die
-   mv usr/share/doc/safenetauthenticationclient-core 
"usr/share/doc/${PF}/" || die
+   # Create missing SONAME symlinks
+   for libname in eTokenHID 
ID{{Prime,Classic}SISTokenEngine,Prime{PKCS11,TokenEngine}} SACLog
+   do
+   dosym -r /usr/$(get_libdir)/lib${libname}.so.{${PV},10}
+   done
 
-   # exclude already compressed file from compression
-   docompress -x 
"/usr/share/doc/${PF}/safenetauthenticationclient-core/changelog.gz" || die
+   # compress documentation with $PORTAGE_COMPRESS
+   gunzip usr/share/doc/safenetauthenticationclient-core/changelog.gz || 
die
+   dodoc usr/share/doc/safenetauthenticationclient-core/changelog
 
-   # Create missing SONAME symlinks
-   ln -s libSACLog.so.${PV} "usr/$(get_libdir)/libSACLog.so.10" || die
-   ln -s libeTokenHID.so.${PV} "usr/$(get_libdir)/libeTokenHID.so.10" || 
die
-   ln -s libIDPrimePKCS11.so.${PV} 
"usr/$(get_libdir)/libIDPrimePKCS11.so.10" || die
-   ln -s libIDPrimeTokenEngine.so.${PV} 
"usr/$(get_libdir)/libIDPrimeTokenEngine.so.10" || die
-   ln -s libIDClassicSISTokenEngine.so.${PV} 
"usr/$(get_libdir)/libIDClassicSISTokenEngine.so.10" || die
-   ln -s libIDPrimeSISTokenEngine.so.${PV} 
"usr/$(get_libdir)/libIDPrimeSISTokenEngine.so.10" || die
-
-   mv usr/ "${D}/" || die
-   mv etc/ "${D}/" || die
+   insinto /etc
+   doins -r etc/*
 
systemd_dounit "${FILESDIR}/safenetauthenticationclient.service"
 }



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: 04f831f1d7fde905d66201cfdf65162633715e75
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 01:36:55 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 01:36:55 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=04f831f1

app-crypt/sac-core: shorten verbose DESCRIPTION

Signed-off-by: Lucio Sauer  posteo.net>

 app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index 00df9ea8e2..cc84632e55 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 inherit systemd unpacker
 
-DESCRIPTION="Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 
& IDPrime (core PKCS#11 modules)"
+DESCRIPTION="Thales/Gemalto SafeNet Authentication Client"
 
HOMEPAGE="https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management;
 SRC_URI="https://nullroute.lt/tmp/2023/pkg/SAC_Linux_10.8.105_R1_GA.zip;
 



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: b462f0d57c3f184aab74fd154db6e24ea8c69d8c
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 01:30:21 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 01:31:20 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b462f0d5

app-crypt/sac-core: use unpacker eclass for deb archive

Add missing unzip build-time dependency
Fix variable order

Closes: https://bugs.gentoo.org/931337
Signed-off-by: Lucio Sauer  posteo.net>

 app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 18 +++---
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index 5d3627cdcb..26f76629ee 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -3,11 +3,14 @@
 
 EAPI=8
 
-DESCRIPTION="Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 
& IDPrime (core PKCS#11 modules)"
+inherit systemd unpacker
 
+DESCRIPTION="Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 
& IDPrime (core PKCS#11 modules)"
+HOMEPAGE="https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management;
 SRC_URI="https://nullroute.lt/tmp/2023/pkg/SAC_Linux_10.8.105_R1_GA.zip;
 
-HOMEPAGE="https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management;
+S="${WORKDIR}"
+
 LICENSE="sac-core-10.8.1050-terms LGPL-2.1 ZLIB"
 SLOT="0"
 KEYWORDS="~amd64"
@@ -16,8 +19,6 @@ IUSE="+ssl"
 # binaries are already stripped
 RESTRICT="bindist mirror strip"
 
-inherit systemd
-
 RDEPEND="
dev-libs/openssl
sys-apps/pcsc-lite
@@ -26,16 +27,11 @@ RDEPEND="
ssl? ( dev-libs/libp11 )
 "
 DEPEND="${RDEPEND}"
-
-S="${WORKDIR}"
+BDEPEND="app-arch/unzip"
 
 src_unpack() {
default
-
-   cd "$S" || die
-
-   unpack "SAC Linux ${PV} R1 
GA/Installation/withoutUI/Ubuntu-2204/safenetauthenticationclient-core_${PV}_amd64.deb"
 || die
-   unpack "./data.tar.gz" || die
+   unpacker "SAC Linux ${PV} R1 
GA/Installation/withoutUI/Ubuntu-2204/safenetauthenticationclient-core_${PV}_amd64.deb"
 }
 
 src_install() {



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/

2024-05-07 Thread Lucio Sauer
commit: d017b095433f08957e9d236ed05dfc96efd8eed7
Author: Lucio Sauer  posteo  net>
AuthorDate: Wed May  8 01:24:14 2024 +
Commit: Lucio Sauer  posteo  net>
CommitDate: Wed May  8 01:28:18 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d017b095

app-crypt/sac-core: update LICENSE

Signed-off-by: Lucio Sauer  posteo.net>

 .../{sac-core-10.8.1050.ebuild => sac-core-10.8.1050-r1.ebuild}  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/app-crypt/sac-core/sac-core-10.8.1050.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
similarity index 96%
rename from app-crypt/sac-core/sac-core-10.8.1050.ebuild
rename to app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
index 65c5d5cb20..5d3627cdcb 100644
--- a/app-crypt/sac-core/sac-core-10.8.1050.ebuild
+++ b/app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild
@@ -8,14 +8,13 @@ DESCRIPTION="Thales/Gemalto SafeNet Authentication Client for 
eToken 5110/5300 &
 SRC_URI="https://nullroute.lt/tmp/2023/pkg/SAC_Linux_10.8.105_R1_GA.zip;
 
 
HOMEPAGE="https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management;
-# see usr/share/doc copyright file
-LICENSE="no-source-code EULA"
+LICENSE="sac-core-10.8.1050-terms LGPL-2.1 ZLIB"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="+ssl"
 
 # binaries are already stripped
-RESTRICT="strip"
+RESTRICT="bindist mirror strip"
 
 inherit systemd
 



[gentoo-commits] repo/proj/guru:dev commit in: app-crypt/sac-core/files/, app-crypt/sac-core/

2024-05-05 Thread Adrian Ratiu
commit: 30b5af1d5bca756332361ed9a58a8ff8b852ea4b
Author: Adrian Ratiu  collabora  com>
AuthorDate: Sun May  5 22:58:04 2024 +
Commit: Adrian Ratiu  collabora  com>
CommitDate: Sun May  5 23:06:41 2024 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30b5af1d

app-crypt/sac-core: add new ebuild

SafeNet Authentication Client is a widely used middleware for
qualified digital certificates and other auth mechanisms for
EU government services.

Unfortunately it is not open source, however it integrates
well with pcslite and ccid and is useable for proving gov id
for various services.

Signed-off-by: Adrian Ratiu  collabora.com>

 app-crypt/sac-core/Manifest|  1 +
 .../files/safenetauthenticationclient.service  |  8 +++
 app-crypt/sac-core/metadata.xml| 17 +
 app-crypt/sac-core/sac-core-10.8.1050.ebuild   | 73 ++
 4 files changed, 99 insertions(+)

diff --git a/app-crypt/sac-core/Manifest b/app-crypt/sac-core/Manifest
new file mode 100644
index 00..f27558e4ee
--- /dev/null
+++ b/app-crypt/sac-core/Manifest
@@ -0,0 +1 @@
+DIST SAC_Linux_10.8.105_R1_GA.zip 118355633 BLAKE2B 
19040c84e10290f64b9225a7e093ff86f4b2e6dbf0dae2798526fecf754daf39c74db6dc257a4d90b4fac8a536c1707cde4458b4905f826d84ad2e03f3583f8e
 SHA512 
6f3fac16a73f0d1074abf59039e4efea7dfb07193b24e24bf3944a7b2779c00d74c4e9471fa39571701c3694c2e4260ff9d7792ddfdbae8b6a5337dcf3ac7634

diff --git a/app-crypt/sac-core/files/safenetauthenticationclient.service 
b/app-crypt/sac-core/files/safenetauthenticationclient.service
new file mode 100644
index 00..1bbed78053
--- /dev/null
+++ b/app-crypt/sac-core/files/safenetauthenticationclient.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Thales eToken SACSrv daemon
+
+[Service]
+ExecStart=/usr/bin/SACSrv
+
+[Install]
+WantedBy=multi-user.target

diff --git a/app-crypt/sac-core/metadata.xml b/app-crypt/sac-core/metadata.xml
new file mode 100644
index 00..2fc7dcd221
--- /dev/null
+++ b/app-crypt/sac-core/metadata.xml
@@ -0,0 +1,17 @@
+
+https://www.gentoo.org/dtd/metadata.dtd;>
+
+  
+SAC is a Public Key Infrastructure (PKI) middleware that provides a secure
+method for exchanging information based on public key cryptography, 
enabling
+trusted third-party verification of user identities.
+
+It utilizes a system of digital certificates, Certificate Authorities, and
+other registration authorities that verify and authenticate the validity of
+each party involved in an internet transaction.
+  
+  
+Adrian Ratiu
+adrian.ra...@collabora.com
+  
+

diff --git a/app-crypt/sac-core/sac-core-10.8.1050.ebuild 
b/app-crypt/sac-core/sac-core-10.8.1050.ebuild
new file mode 100644
index 00..65c5d5cb20
--- /dev/null
+++ b/app-crypt/sac-core/sac-core-10.8.1050.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 
& IDPrime (core PKCS#11 modules)"
+
+SRC_URI="https://nullroute.lt/tmp/2023/pkg/SAC_Linux_10.8.105_R1_GA.zip;
+
+HOMEPAGE="https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management;
+# see usr/share/doc copyright file
+LICENSE="no-source-code EULA"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+ssl"
+
+# binaries are already stripped
+RESTRICT="strip"
+
+inherit systemd
+
+RDEPEND="
+   dev-libs/openssl
+   sys-apps/pcsc-lite
+   app-crypt/ccid
+   virtual/libusb:0
+   ssl? ( dev-libs/libp11 )
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+   default
+
+   cd "$S" || die
+
+   unpack "SAC Linux ${PV} R1 
GA/Installation/withoutUI/Ubuntu-2204/safenetauthenticationclient-core_${PV}_amd64.deb"
 || die
+   unpack "./data.tar.gz" || die
+}
+
+src_install() {
+   # v10.8 is 64bit only, so move to the proper libdir
+   mv usr/lib usr/$(get_libdir) || die
+
+   # libs are not marked as executable
+   chmod 755 usr/$(get_libdir)/lib*.${PV} || die
+
+   # move docs to proper location
+   mkdir -p "usr/share/doc/${PF}" || die
+   mv usr/share/doc/safenetauthenticationclient-core 
"usr/share/doc/${PF}/" || die
+
+   # exclude already compressed file from compression
+   docompress -x 
"/usr/share/doc/${PF}/safenetauthenticationclient-core/changelog.gz" || die
+
+   # Create missing SONAME symlinks
+   ln -s libSACLog.so.${PV} "usr/$(get_libdir)/libSACLog.so.10" || die
+   ln -s libeTokenHID.so.${PV} "usr/$(get_libdir)/libeTokenHID.so.10" || 
die
+   ln -s libIDPrimePKCS11.so.${PV} 
"usr/$(get_libdir)/libIDPrimePKCS11.so.10" || die
+   ln -s libIDPrimeTokenEngine.so.${PV} 
"usr/$(get_libdir)/libIDPrimeTokenEngine.so.10" || die
+   ln -s libIDClassicSISTokenEngine.so.${PV} 
"usr/$(get_libdir)/libIDClassicSISTokenEngine.so.10" || die
+   ln -s