summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikulėnas2019-09-13 08:12:17 +0300
committerMantas Mikulėnas2019-09-13 08:12:17 +0300
commit6db6a931608344a3789414322afdc93dc03cb377 (patch)
treed342585d0063124402dc0b52f2ed135eafe6fe0a
parent05da5b69d5a6d7a6e485c482031b8972bd64d37f (diff)
downloadaur-autodesk-nlm.tar.gz
split package in case people want to use multiple vendor daemons
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD25
2 files changed, 33 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2fd1d587a7c..5a2cab7da5c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,12 @@
pkgbase = autodesk-nlm
pkgdesc = FLEXnet License Manager (lmgrd) + Autodesk® vendor daemon (adskflex)
pkgver = 11.16.2.0
- pkgrel = 1
+ pkgrel = 2
url = https://knowledge.autodesk.com/customer-service/network-license-administration
arch = x86_64
license = custom:¯\_(ツ)_/¯
depends = gcc-libs
depends = ld-lsb
- provides = flexnet=11.16.2.0
- conflicts = flexnet
source = https://knowledge.autodesk.com/sites/default/files/file_downloads/nlm11.16.2.0_ipv4_ipv6_linux64.tar.gz
source = lmgrd.service
md5sums = b97dafa3a2b748e54951d8ac0f06bd44
@@ -17,4 +15,16 @@ pkgbase = autodesk-nlm
sha256sums = 10fdaa80006dabba99cdd1ea754043812fb66f8f6ea9ce08998932e1ea6a5086
pkgname = autodesk-nlm
+ pkgdesc = Autodesk® vendor daemon (adskflex) for FLEXnet License Manager
+ optdepends = autodesk-lmgrd: FLEXnet License Manager core (lmgrd) distributed by Autodesk
+ optdepends = flexnet: FLEXnet License Manager core (lmgrd) distributed by Arm
+ optdepends = lmgrd: FLEXnet License Manager core (lmgrd) distributed by MATLAB
+
+pkgname = autodesk-lmgrd
+ pkgdesc = FLEXnet License Manager (lmgrd) distributed by Autodesk
+ optdepends = autodesk-nlm: Autodesk licensing vendor daemon (adskflex)
+ provides = flexnet=11.16.2.0
+ provides = lmgrd=11.16.2.0
+ conflicts = flexnet
+ conflicts = lmgrd
diff --git a/PKGBUILD b/PKGBUILD
index e277c013f6f..f8ba9946b9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,13 @@
# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
-pkgname=autodesk-nlm
+pkgbase=autodesk-nlm
+pkgname=(autodesk-nlm autodesk-lmgrd)
pkgver=11.16.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="FLEXnet License Manager (lmgrd) + Autodesk® vendor daemon (adskflex)"
arch=(x86_64)
url="https://knowledge.autodesk.com/customer-service/network-license-administration"
license=(custom:'¯\_(ツ)_/¯')
depends=('gcc-libs' 'ld-lsb')
-provides=("flexnet=$pkgver") # well, not for ARM...
-conflicts=('flexnet')
source=("https://knowledge.autodesk.com/sites/default/files/file_downloads/nlm11.16.2.0_ipv4_ipv6_linux64.tar.gz"
"lmgrd.service")
md5sums=('b97dafa3a2b748e54951d8ac0f06bd44'
@@ -20,9 +19,25 @@ prepare() {
bsdtar xvf "nlm${pkgver}_ipv4_ipv6_linux64.rpm"
}
-package() {
+package_autodesk-nlm() {
+ pkgdesc="Autodesk® vendor daemon (adskflex) for FLEXnet License Manager"
+ optdepends=("autodesk-lmgrd: FLEXnet License Manager core (lmgrd) distributed by Autodesk"
+ "flexnet: FLEXnet License Manager core (lmgrd) distributed by Arm"
+ "lmgrd: FLEXnet License Manager core (lmgrd) distributed by MATLAB")
+
+ mkdir -p "$pkgdir"/usr/lib/flexnetserver
+ cp -a opt/flexnetserver/adskflex "$pkgdir"/usr/lib/flexnetserver/adskflex
+}
+
+package_autodesk-lmgrd() {
+ pkgdesc="FLEXnet License Manager (lmgrd) distributed by Autodesk"
+ provides=("flexnet=$pkgver" "lmgrd=$pkgver") # well, not for ARM...
+ conflicts=("flexnet" "lmgrd")
+ optdepends=("autodesk-nlm: Autodesk licensing vendor daemon (adskflex)")
+
mkdir -p "$pkgdir"/usr/lib
cp -a opt/flexnetserver "$pkgdir"/usr/lib/flexnetserver
+ rm -f "$pkgdir"/usr/lib/flexnetserver/adskflex
mkdir -p "$pkgdir"/usr/bin
ln -s ../lib/flexnetserver/lmutil "$pkgdir"/usr/bin/lmutil