summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Konarev2022-05-31 08:46:12 +0300
committerAlexander Konarev2022-05-31 08:46:12 +0300
commit953084323daada5695a1ac7cd3d45bfc3dd921dc (patch)
treeb0a5dee70af08650c109e21d9828d126d2e388eb
parentf4624e83052abe4824caa122bd1a10cbcf440790 (diff)
downloadaur-953084323daada5695a1ac7cd3d45bfc3dd921dc.tar.gz
added autostart/autostop services
-rw-r--r--.SRCINFO3
-rwxr-xr-xPKGBUILD3
-rw-r--r--package.install37
3 files changed, 41 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c6cbc2253dd..c9457d4b0718 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = aksusbd-bin
pkgdesc = Sentinel AKSUSB daemon supporting Sentinel HASP, HASP HL, HASP4 and Hardlock keys.
pkgver = 8.41
- pkgrel = 2
+ pkgrel = 3
url = https://supportportal.thalesgroup.com
+ install = package.install
arch = i686
arch = x86_64
license = custom
diff --git a/PKGBUILD b/PKGBUILD
index 561b1dab8e61..6c4eb979d4d2 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=aksusbd-bin
pkgver=8.41
-pkgrel=2
+pkgrel=3
pkgdesc="Sentinel AKSUSB daemon supporting Sentinel HASP, HASP HL, HASP4 and Hardlock keys."
arch=('i686' 'x86_64')
url="https://supportportal.thalesgroup.com"
@@ -27,6 +27,7 @@ makedepends=('libarchive'
conflicts=('ehaspd' 'aksusbd')
options=('!strip')
+install=package.install
pkgver() {
cd $srcdir
diff --git a/package.install b/package.install
new file mode 100644
index 000000000000..429b0d8dc846
--- /dev/null
+++ b/package.install
@@ -0,0 +1,37 @@
+# This is a default template for a post-install scriptlet.
+# Uncomment only required functions and remove any functions
+# you don't need (and this header).
+
+## arg 1: the new package version
+#pre_install() {
+ # do something here
+#}
+
+## arg 1: the new package version
+post_install() {
+ # do something here
+ usr/bin/systemctl enable --now aksusbd
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+#pre_upgrade() {
+ # do something here
+#}
+
+## arg 1: the new package version
+## arg 2: the old package version
+#post_upgrade() {
+ # do something here
+#}
+
+## arg 1: the old package version
+pre_remove() {
+ # do something here
+ usr/bin/systemctl disable --now aksusbd
+}
+
+## arg 1: the old package version
+#post_remove() {
+ # do something here
+#}