diff options
author | Alexander Konarev | 2015-06-09 20:53:03 +0300 |
---|---|---|
committer | Alexander Konarev | 2015-06-09 20:53:03 +0300 |
commit | 7f7e3f4e1934f46a0064fb9ba4d2eb08090f2e89 (patch) | |
tree | a1bf4b6fef4ab7e31ad84201719e168f1d2a9a77 | |
download | aur-7f7e3f4e1934f46a0064fb9ba4d2eb08090f2e89.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 45 | ||||
-rw-r--r-- | ehaspd.install | 13 | ||||
-rw-r--r-- | ehaspd.service | 19 |
4 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..904402050288 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = ehaspd + pkgdesc = Etersoft daemon supporting Sentinel HASP, HASP HL, HASP4 and Hardlock keys. + pkgver = 3.3.5 + pkgrel = 1 + url = http://etersoft.ru + install = ehaspd.install + arch = i686 + arch = x86_64 + license = custom + depends = systemd + depends = lib32-ncurses + conflicts = aksusbd + source = http://ftp.etersoft.ru/pub/Etersoft/HASP/last/ArchLinux/CUR/haspd-3.3-5-i686.pkg.tar.xz + source = ehaspd.service + md5sums = 91cb772f0973a48535263594c32bc643 + md5sums = 49ffda07eaf5c034bb9409ea56f26fea + +pkgname = ehaspd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b93babd892d4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Konarev Alexander <avkonarev@gmail.com> + +pkgname=ehaspd +pkgver=3.3.5 +pkgrel=1 +pkgdesc="Etersoft daemon supporting Sentinel HASP, HASP HL, HASP4 and Hardlock keys." +arch=('i686' 'x86_64') +url="http://etersoft.ru" +license=('custom') +source=( + "http://ftp.etersoft.ru/pub/Etersoft/HASP/last/ArchLinux/CUR/haspd-3.3-5-i686.pkg.tar.xz" + "$pkgname.service" + ) + +install=$pkgname.install + +if test "$CARCH" == x86_64; then + depends=("lib32-glibc") +else + depends=() +fi + +conflicts=('aksusbd') + +depends=('systemd' 'lib32-ncurses') +optdepens=('java-environment-common: is required to view the documentation html') + +prepare(){ + cd $srcdir + mv $srcdir/usr/sbin $srcdir/usr/bin +} + +package() { + cd $srcdir + + cp -r $srcdir/usr $pkgdir/usr + cp -r $srcdir/etc $pkgdir/etc + + install -Dm644 ${srcdir}/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service +} + +md5sums=('91cb772f0973a48535263594c32bc643' + '49ffda07eaf5c034bb9409ea56f26fea') + +# vim: set noet ci pi sts=0 sw=4 ts=4: diff --git a/ehaspd.install b/ehaspd.install new file mode 100644 index 000000000000..64c840ec11d1 --- /dev/null +++ b/ehaspd.install @@ -0,0 +1,13 @@ +post_install() { + echo "Do not forget to enable and start the service as root:" + echo "systemctrl enable ehaspd" + echo "systemctrl start ehaspd" +} + +post_upgrade() { + echo +} + +post_remove() { + echo +} diff --git a/ehaspd.service b/ehaspd.service new file mode 100644 index 000000000000..11c96c934c49 --- /dev/null +++ b/ehaspd.service @@ -0,0 +1,19 @@ + +[Unit] +Description=/etc/rc.d/haspd compatibility +ConditionPathExists=/etc/rc.d/haspd +After=syslog.target + +[Service] +Type=forking +ExecStart=/etc/rc.d/haspd start +TimeoutSec=0 +StandardOutput=tty +RemainAfterExit=yes + +ExecReload=/etc/rc.d/haspd restart + +ExecStop=/etc/rc.d/haspd stop + +[Install] +WantedBy=multi-user.target |