Sisyphus repository
Last update: 5 april 2020 | SRPMs: 17566 | Visits: 17830833
en ru br
ALT Linux repos

Group :: System/Kernel and hardware
RPM: haspd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# TODO: install 64-bit binaries

# Etersoft (c) 2006, 2007, 2008, 2009, 2010, 2013, 2015, 2016

# Multiplatform spec for autobuild system Korinf

# For build install,

# kernel-headers-modules-XXXX for ALT Linux
# kernel-devel-XXXX for FCx / ASP Linux
# kernel-source-stripped-XXXX for Mandriva 2007
# linux-headers for Debian / Ubuntu
# kernel-source-XXXX for SuSe
# kernel-source-XXXX for Slackware / MOPSLinux

Name: haspd
Version: 7.90
Release: alt2

Summary: Hardware key protection drivers and license managers

Packager: Vitaly Lipatov <lav at>

License: Proprietary
Group: System/Kernel and hardware


# compat needs due distr_vendor using

BuildRequires(pre): rpm-build-intro rpm-build-compat
BuildRequires: kernel-build-tools libusb-devel libncurses-devel

%define module_dir /lib/modules

# disable Fedora's build-id

%global _missing_build_ids_terminate_build 0
# due Empty %files file .../haspd-7.90/debugsourcefiles.list
%global debug_package %{nil}

# forbid future stripping

%global __strip /bin/true

Obsoletes: aksusbd
Provides: aksusbd
Obsoletes: aksparlnx
Provides: aksparlnx
Obsoletes: winehasp
Provides: winehasp

Obsoletes: aksusbd-redhat
Provides: aksusbd-redhat
Obsoletes: aksusbd-suse
Provides: aksusbd-suse


#ifarch x86_64
#BuildPreReq: i586-glibc-core i586-glibc-pthread
# we need 32bit glibc in any caseOC
Provides: sntl-sud = 7.3.0-0

# due propritary library packed

%set_verify_elf_method skip
# find-requires: ERROR: /usr/lib/rpm/lib.req failed
%add_findreq_skiplist /usr/lib/sentinel/*
# find-requires: ERROR: /usr/lib/rpm/lib.req failed
# ldd: ERROR: /tmp/.private/lav/haspd-buildroot/usr/sbin/aksusbd: trace failed
# ldd: exited with unknown exit code (132)
%add_findreq_skiplist /usr/sbin/aksusbd
%add_findreq_skiplist /usr/sbin/*

# disable make debuginfo (due the same ldd problem)

%define __find_debuginfo_files %nil

ExclusiveOS: Linux
%if %_vendor == "alt"
# have no idea how to build package with 32-bit binaries in the hasher
ExclusiveArch:  %ix86
ExclusiveArch: %ix86 x86_64

HASP - Hardware Against Software Piracy

The RPM package contains
* The required software for accessing HASP and Hardlock keys from Aladdin

 Supports parallel HASP keys, Hardlock keys, USB HASP keys.
 It contains kernel module which required when using parallel port keys and
 USB daemon which is general required to access the HASP/Hardlock key.

* The Smartkey key server for Linux (Smartkey 3 USB/LPT keys) from Eutron

* The SafeNet USB key server and license server for keys from SafeNet Sentinel

The RPM package prepared in Etersoft for WINE at Etersoft project.
Please send any comments to hasp at

Copyright 1985-2008 Aladdin Knowledge Systems
Copyright 2006-2007 Eutron SPA
Copyright 2006-2006 SafeNet Sentinel
Copyright 2015-2016 SafeNet
Copyright 2017 Gemalto

%package modules
Summary: Linux kernel modules for HASP LPT keys
Summary(ru_RU.UTF-8): Модули ядра Linux для LPT-ключей HASP
Group: System/Kernel and hardware
Requires: %name >= %version

%if %_vendor == "suse"
# due kernel dependencies
AutoReq: no

%description modules
Linux kernel modules for HASP LPT keys

%setup -q
patch -p0 <etersoft/aksparpub.c.patch
patch -p0 <etersoft/aksparpub.h.patch
# Cleanup deprecated compatibility rules
%__subst '/Compatibility/,$d' aksusbd/udev/rules.d/80-hasp.rules


MODULEVERSION=%version MAN_DIR=%buildroot%_mandir/ INIT_DIR=%buildroot%_initdir/ \
   SBIN_DIR=%buildroot%_sbindir/ INSTALL_MOD_PATH=%buildroot%module_dir \
   LIB_DIR=%buildroot%_libdir/ \
       etersoft/ %_lib
# Install udev rules
install -m0644 -D aksusbd/udev/rules.d/80-hasp.rules %buildroot%_udevrulesdir/80-hasp.rules

%if %_vendor == "alt"
# Make symlink to /lib/ for require i586-libusb in ALT Linux arepo
mkdir -p %buildroot/lib/%name
ln -s /lib/ %buildroot/lib/%name/

%post_service %name
%start_service %name

%preun_service %name

%post modules
%post_service %name

%if %_vendor == "alt"

# Aladdin




%dir %_sysconfdir/haspd/


%doc winehasp/readme.txt
%doc aksparlnx/README.html aksparlnx/INSTALL hasplm/hasplm.txt
%doc doc/NETHASP.INI.example LICENSE.UTF-8.txt doc/README.UTF-8.txt
%doc smartkey-server-11.5/README.smartkey sentinel/licenseagreement.txt sentinel/sntlconfig.xml sentinel/readme.pdf

# Eutron


%ifarch x86_64
# Sentinel


%files modules
#dir %module_dir/haspd/
#ghost %module_dir/haspd/aksparlnx.*


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin