diff options
author | Lucio Sauer <watermanpaint@posteo.net> | 2024-05-08 03:51:01 +0200 |
---|---|---|
committer | Lucio Sauer <watermanpaint@posteo.net> | 2024-05-08 03:56:14 +0200 |
commit | 9b86eb6576329c8eba4eec21c582447337155ebd (patch) | |
tree | a9736f48a4a7f966271349fa6b8b392fa2ceaa81 /app-crypt | |
parent | app-crypt/sac-core: shorten verbose DESCRIPTION (diff) | |
download | guru-9b86eb6576329c8eba4eec21c582447337155ebd.tar.gz guru-9b86eb6576329c8eba4eec21c582447337155ebd.tar.bz2 guru-9b86eb6576329c8eba4eec21c582447337155ebd.zip |
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 <watermanpaint@posteo.net>
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/sac-core/sac-core-10.8.1050-r1.ebuild | 34 |
1 files 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 cc84632e5..5a0d7970c 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" } |