summarylogtreecommitdiffstats
path: root/PKGBUILD
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 /PKGBUILD
parentabfabca311d8292fb44b47099efdf850ffae2131 (diff)
downloadaur-0353588ceb4fbc1a71588d70ba70f548d013073d.tar.gz
add systemd units
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 17 insertions, 9 deletions
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: