summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 25 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 03ff1c7b3339..0028b71a3f2d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,12 @@
# $Id$
# Maintainer: Ido Rosen (ido) <ido@kernel.org>
+# Maintainer: jakob <grandchild@gmx.net>
# Contributor: Alexander Konarev (kale-ru) <AVKonarev@gmail.com>
# Contributor: Alexander Konarev <avkonarev@gmail.com.cc>
# Contributor: Andre Bartke (andre) <andrew@archlinux.us>
pkgname=aksusbd
-pkgver=7.51
+pkgver=7.80
_pkgrel=1
_tarballname=Sentinel_LDK_RedHat_and_SuSE_RPM_Run-time_Installer
pkgrel=1 # ${_pkgrel}
@@ -13,20 +14,16 @@ pkgdesc="SafeNet Sentinel LDK AKSUSB daemon supporting Sentinel HASP, HASP HL, H
arch=('i686' 'x86_64')
url="https://safenet.gemalto.com/"
license=('custom')
-source=("ftp://ftp.cis-app.com/pub/hasp/Sentinel_HASP/Runtime_(Drivers)/${pkgver}/${_tarballname}.tar.gz"
- "aksusbd.service"
- "winehasp.service"
- "hasplmd.service"
+source=("${_tarballname}-${pkgver}.tar.gz::https://fdsdown.safenet-inc.com/filesSN/Index/7f8dd7b54da0482d910bd461ba0d991e?sid=5aeeaadf4fb59788102400818110c73b"
+ "service-usr-bin-i386.patch"
+ "service-usr-bin-x86_64.patch"
"LICENSE"
- "udev-rules.patch"
"${pkgname}.install")
-sha256sums=('28effa888ffc0aaffd535bd0166770564c82655415fb42bd8a1008f47d1fbfb4'
- '5551253cf3f048f3c1418c8f3e7378651a47807201de98f3e759fa81b38a859f'
- 'd4558107c7c9cf94f4b1e95ca5036e5cb43e59c5bc9ac35e2fbb70a194dc091a'
- 'e3be521db63423519161eb50c5561601fcfeb3341320e4d077b968d0a30d541a'
+sha256sums=('21db58ea3acbb32ce358473dd20b372c4ccafee92739bc6f71b236cc5277ad31'
+ '75c02721799e3f2b498d67265201445c963063b331c61402205db2ad91e72ec3'
+ 'd63548bac27eab7cf4a524830643705bafc63349d2e3c5276a37d3382e5598ec'
'c67d1383c94e2fda4c25a70d5a5d4a90d692586ff7977eb5e9e82139f85e22dd'
- '83145c8323a987572607a4f3a4af5498a84f5974f2d60a698b15fb87f9d64d35'
- '8d5a12de57caf36af433f7c2890969b1a9fbd3ae5ce9d20d5706a5f67125ebd9')
+ 'db96b8b8f1ae5af6bbe6eaa3b4cf635341b8c07d294442cb3bfb1b78a20a54ec')
makedepends=('libarchive')
conflicts=('ehaspd')
install=$pkgname.install
@@ -36,33 +33,37 @@ prepare(){
cd $srcdir
# Extract RPM into $srcdir:
- bsdtar -xvf ${_tarballname}/${pkgname}-${pkgver}-${_pkgrel}.i386.rpm
+ bsdtar -xvf ${_tarballname}/${pkgname}-${pkgver}-${_pkgrel}.${CARCH}.rpm
- # Comment out redundant legacy udev rules:
- patch -p1 < udev-rules.patch
+ # Change /usr/sbin/ to /usr/bin/
+ patch -p1 < service-usr-bin-i386.patch
+ patch -p1 < service-usr-bin-x86_64.patch
}
package() {
cd $srcdir
+ ### x86_64 hasplmd segfaults -- continue to install 32bit-version.
+ ### Uncomment the section below to install x86_64 on such systems anyway.
+ # if [ "${CARCH}" != "i386" ]; then
+ # arch_suffix=_${CARCH}
+ # fi
# Binaries:
install -dm755 ${pkgdir}/usr/bin
- install -Dm755 ${srcdir}/usr/sbin/* \
+ install -Dm755 ${srcdir}/usr/sbin/{aksusbd,hasplmd}${arch_suffix} \
${pkgdir}/usr/bin/
- # (patched) udev rules:
+ # udev rules:
install -dm755 ${pkgdir}/usr/lib/udev/rules.d
install -m644 ${srcdir}/etc/udev/rules.d/* \
${pkgdir}/usr/lib/udev/rules.d/
- # Legacy init scripts (for posterity):
- install -Dm644 ${srcdir}/etc/init.d/${pkgname} \
- ${pkgdir}/usr/share/${pkgname}/${pkgname}.init
-
- # systemd service (based on etc/init.d/aksusbd):
+ # systemd service
install -dm755 ${pkgdir}/usr/lib/systemd/system/
- install -m644 ${srcdir}/{aksusbd,winehasp,hasplmd}.service \
- ${pkgdir}/usr/lib/systemd/system/
+ install -m644 ${srcdir}/var/hasplm/init/aksusbd${arch_suffix}.service \
+ ${pkgdir}/usr/lib/systemd/system/aksusbd.service
+ install -m644 ${srcdir}/var/hasplm/init/hasplmd${arch_suffix}.service \
+ ${pkgdir}/usr/lib/systemd/system/hasplmd.service
# LICENSE and readme.html:
install -Dm644 ${srcdir}/${_tarballname}/readme.html \
@@ -70,4 +71,3 @@ package() {
install -Dm644 ${srcdir}/LICENSE \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
-