diff options
author | Mantas Mikulėnas | 2022-07-03 22:05:07 +0300 |
---|---|---|
committer | Mantas Mikulėnas | 2022-07-03 22:05:27 +0300 |
commit | aebed148fd770df288c427ddbe487d01c253e2ee (patch) | |
tree | 306143b7eaf679ea3a99f92ddd6b22b409767829 | |
parent | 91f1fcbcde33a2496d37656b54e2578b651552a7 (diff) | |
download | aur-aebed148fd770df288c427ddbe487d01c253e2ee.tar.gz |
include GUI tools (untested)
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 73 | ||||
-rw-r--r-- | safenetauthenticationclient.service | 8 |
3 files changed, 76 insertions, 14 deletions
@@ -1,7 +1,7 @@ pkgbase = sac-core pkgdesc = Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 & IDPrime (core package with no GUI tools) pkgver = 10.8.28 - pkgrel = 1 + pkgrel = 2 url = https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management arch = x86_64 license = custom @@ -10,7 +10,14 @@ pkgbase = sac-core optdepends = sac-core-legacy: Support for eToken 32K/64K (CardOS 4.2) source = https://installer.id.ee/media/etoken/Linux_SAC%2010.8.28%20GA%20Build.zip source = eToken.conf + source = safenetauthenticationclient.service sha256sums = 6e1f9307b6460cc87d1b895c3edbfb99cd1778686609f30caab96ab7218821a0 sha256sums = 85b850b820610e029428e577ca0e48f6fb7b4148ae8d702ca20b191963046c6c + sha256sums = eb8b4e105d8b75f11e4b83ca6c4a605f781f50cc0f0405a5d1deccb5580fd055 pkgname = sac-core + +pkgname = sac-gui + pkgdesc = Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 & IDPrime (core package with no GUI tools) (GUI tools) + depends = gtk3 + depends = sac-core @@ -1,6 +1,7 @@ -pkgname=sac-core +pkgbase=sac-core +pkgname=(sac-core sac-gui) pkgver=10.8.28 -pkgrel=1 +pkgrel=2 pkgdesc='Thales/Gemalto SafeNet Authentication Client for eToken 5110/5300 & IDPrime (core package with no GUI tools)' url='https://cpl.thalesgroup.com/access-management/security-applications/authentication-client-token-management' arch=(x86_64) @@ -8,32 +9,46 @@ depends=(openssl pcsclite) optdepends=('sac-core-legacy: Support for eToken 32K/64K (CardOS 4.2)') license=(custom) source=('https://installer.id.ee/media/etoken/Linux_SAC%2010.8.28%20GA%20Build.zip' - eToken.conf) + eToken.conf + safenetauthenticationclient.service) sha256sums=('6e1f9307b6460cc87d1b895c3edbfb99cd1778686609f30caab96ab7218821a0' - '85b850b820610e029428e577ca0e48f6fb7b4148ae8d702ca20b191963046c6c') + '85b850b820610e029428e577ca0e48f6fb7b4148ae8d702ca20b191963046c6c' + 'eb8b4e105d8b75f11e4b83ca6c4a605f781f50cc0f0405a5d1deccb5580fd055') #validpgpkeys=('B37EBA84D2EB0C786F91EEF77F8AA801285DEE57') _dir="SAC 10.8.28 GA Build" _rn_pdf="007-013841-003-SafeNet Authentication Client_ 10.8_Linux_GA_Release Notes_Rev A.pdf" _ag_pdf="007-013842-002_SafeNet Authentication Client_10.8_Linux_GA_Administrator_Guide_Rev A.pdf" +_ug_pdf="007-013843-002_SafeNet Authentication Client_10.8_Linux_GA_User_Guide_Rev A.pdf" prepare() { - ar x "$_dir/Installation/withoutUI/Ubuntu-2004/safenetauthenticationclient-core_${pkgver}_amd64.deb" + #ar x "$_dir/Installation/withoutUI/Ubuntu-2004/safenetauthenticationclient-core_${pkgver}_amd64.deb" + ar x "$_dir/Installation/Standard/Ubuntu-2004/safenetauthenticationclient_${pkgver}_amd64.deb" bsdtar -xf data.tar.xz } -package() { +_pick() { + local p="$1" f d; shift + for f; do + d="$srcdir/$p/${f#$pkgdir/}" + mkdir -p "$(dirname "$d")" + mv "$f" "$d" + rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" + done +} + +package_sac-core() { # Install libraries - install -dm755 "$pkgdir"/usr - cp -r usr/lib "$pkgdir"/usr/lib + cp -r etc "$pkgdir"/etc + cp -r usr "$pkgdir"/usr # Create missing .so symlinks ldconfig -N -r "$pkgdir" - # PKCS#11 modules - install -dm755 "$pkgdir"/usr/lib/pkcs11 - ln -s ../libeToken.so "$pkgdir"/usr/lib/pkcs11/ - ln -s ../libIDPrimePKCS11.so "$pkgdir"/usr/lib/pkcs11/ + # PKCS#11 modules -- Standard.deb already includes the symlinks + #install -dm755 "$pkgdir"/usr/lib/pkcs11 + #ln -s ../libeToken.so "$pkgdir"/usr/lib/pkcs11/ + #ln -s ../libIDPrimePKCS11.so "$pkgdir"/usr/lib/pkcs11/ # Legacy name for the eToken PKCS#11 module -- not creating it here, since # it's primarily associated with the old Alladin eToken and you should use @@ -41,13 +56,45 @@ package() { #ln -s libeToken.so "$pkgdir"/usr/lib/libeTPkcs11.so #ln -s ../libeToken.so "$pkgdir"/usr/lib/pkcs11/libeTPkcs11.so - # Documentation -- user guide belongs to the GUI package + # But the Standard.deb already includes the symlink, so remove it. + rm "$pkgdir"/usr/lib/libeTPkcs11.so + rm "$pkgdir"/usr/lib/pkcs11/libeTPkcs11.so + + # Documentation install -Dm644 "$_dir/Documentation/$_rn_pdf" \ "$pkgdir"/usr/share/doc/$pkgname/SAC_${pkgver%.*}_Linux_Release_Notes.pdf install -Dm644 "$_dir/Documentation/$_ag_pdf" \ "$pkgdir"/usr/share/doc/$pkgname/SAC_${pkgver%.*}_Linux_Administrator_Guide.pdf + install -Dm644 "$_dir/Documentation/$_ug_pdf" \ + "$pkgdir"/usr/share/doc/$pkgname/SAC_${pkgver%.*}_Linux_User_Guide.pdf + # Disable the predefined 'software' slots that clutter the token list + rm -f "$pkgdir"/etc/eToken.conf #install -Dm644 eToken.conf "$pkgdir"/etc/eToken.conf + + # Replace the SACSrv initscript + # Note: I still don't have any idea what the service does. + rm -rf "$pkgdir"/etc/init.d + install -Dm644 safenetauthenticationclient.service \ + "$pkgdir"/usr/lib/systemd/system/safenetauthenticationclient.service + + # Split out GUI files + cd "$pkgdir" + _pick gui etc/** + _pick gui usr/bin/** + _pick gui usr/lib/SAC/** + _pick gui usr/lib/libIDPVSlotEngine* + _pick gui usr/lib/libSAC* + _pick gui usr/lib/systemd/** + _pick gui usr/share/applications/** + _pick gui usr/share/doc/$pkgname/*User_Guide.pdf + _pick gui usr/share/eToken/** +} + +package_sac-gui() { + pkgdesc+=" (GUI tools)" + depends=(gtk3 sac-core) + mv gui/* "$pkgdir" } # vim: ts=2:sw=2:et: diff --git a/safenetauthenticationclient.service b/safenetauthenticationclient.service new file mode 100644 index 000000000000..1bbed78053f9 --- /dev/null +++ b/safenetauthenticationclient.service @@ -0,0 +1,8 @@ +[Unit] +Description=Thales eToken SACSrv daemon + +[Service] +ExecStart=/usr/bin/SACSrv + +[Install] +WantedBy=multi-user.target |