summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikulėnas2016-09-22 14:57:26 +0300
committerMantas Mikulėnas2016-09-22 14:57:26 +0300
commit0353588ceb4fbc1a71588d70ba70f548d013073d (patch)
treefdd0298cc772b87b85e290170abb09dabb7748ef
parentabfabca311d8292fb44b47099efdf850ffae2131 (diff)
downloadaur-0353588ceb4fbc1a71588d70ba70f548d013073d.tar.gz
add systemd units
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD26
-rw-r--r--lmgrd.service9
3 files changed, 30 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c5219412625..991ac7ae05c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Sep 22 11:52:44 UTC 2016
+# Thu Sep 22 11:57:13 UTC 2016
pkgbase = autodesk-nlm
pkgdesc = FLEXnet License Manager + Autodesk® vendor daemon
pkgver = 11.13.1.2
@@ -10,8 +10,11 @@ pkgbase = autodesk-nlm
depends = gcc-libs
depends = ld-lsb
source = http://download.autodesk.com/us/support/files/network_license_manager/11_13_1_2_v2/Linux/nlm11.13.1.2_ipv4_ipv6_linux64.tar.gz
+ source = lmgrd.service
md5sums = 2a531d68bda033f907e6c85e81e5b160
+ md5sums = 6c3e1e09dc14b42eac9c5a83d91174ba
sha256sums = f2770d6acbfa24495e7375b8c5b348066c4063df54c0c96c87103c0f0b9b9779
+ sha256sums = 10fdaa80006dabba99cdd1ea754043812fb66f8f6ea9ce08998932e1ea6a5086
pkgname = autodesk-nlm
diff --git a/PKGBUILD b/PKGBUILD
index 0f419ba5336..07810f3cf65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,23 +7,31 @@ arch=(x86_64)
url="https://knowledge.autodesk.com/customer-service/network-license-administration"
license=(custom:'¯\_(ツ)_/¯')
depends=('gcc-libs' 'ld-lsb')
-source=("http://download.autodesk.com/us/support/files/network_license_manager/11_13_1_2_v2/Linux/nlm11.13.1.2_ipv4_ipv6_linux64.tar.gz")
-md5sums=('2a531d68bda033f907e6c85e81e5b160')
-sha256sums=('f2770d6acbfa24495e7375b8c5b348066c4063df54c0c96c87103c0f0b9b9779')
+source=("http://download.autodesk.com/us/support/files/network_license_manager/11_13_1_2_v2/Linux/nlm11.13.1.2_ipv4_ipv6_linux64.tar.gz"
+ "lmgrd.service")
+md5sums=('2a531d68bda033f907e6c85e81e5b160'
+ '6c3e1e09dc14b42eac9c5a83d91174ba')
+sha256sums=('f2770d6acbfa24495e7375b8c5b348066c4063df54c0c96c87103c0f0b9b9779'
+ '10fdaa80006dabba99cdd1ea754043812fb66f8f6ea9ce08998932e1ea6a5086')
prepare() {
bsdtar xvf "nlm${pkgver}_ipv4_ipv6_linux64.rpm"
}
package() {
- mkdir -p "$pkgdir/usr/lib"
- cp -a opt/flexnetserver "$pkgdir/usr/lib/flexnetserver"
+ mkdir -p "$pkgdir"/usr/lib
+ cp -a opt/flexnetserver "$pkgdir"/usr/lib/flexnetserver
- mkdir -p "$pkgdir/usr/bin"
- ln -s ../lib/flexnetserver/lmutil "$pkgdir/usr/bin/lmutil"
- for bin in lm{borrow,diag,hostid,stat}; do
- ln -s lmutil "$pkgdir/usr/bin/$bin"
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s ../lib/flexnetserver/lmutil "$pkgdir"/usr/bin/lmutil
+ utils=(lmborrow lmdiag lmdown lmhostid lminstall lmnewlog lmpath
+ lmremove lmreread lmswitchr lmstat lmswitch lmver lmvminfo)
+ for bin in ${utils[@]}; do
+ ln -s lmutil "$pkgdir"/usr/bin/$bin
done
+
+ mkdir -p "$pkgdir"/usr/lib/systemd/system
+ install -m 644 lmgrd.service "$pkgdir"/usr/lib/systemd/system/lmgrd.service
}
# vim: ts=2:sw=2:et:
diff --git a/lmgrd.service b/lmgrd.service
new file mode 100644
index 00000000000..e3be68d2e39
--- /dev/null
+++ b/lmgrd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=FLEXnet License Manager Daemon (from Autodesk)
+
+[Service]
+Type=forking
+ExecStart=/usr/lib/flexnetserver/lmgrd
+
+[Install]
+WantedBy=multi-user.target