Change the licence rehostable directory
This commit is contained in:
1 parent
d1f33be93f
commit
70161dd040
3 files changed
+24
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
pkgbase = agisoft-metashape-pro
|
||||
pkgdesc = Photogrammetric processing of digital images and 3D spatial data generation software. Professional edition
|
||||
pkgver = 1.7.4
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://www.agisoft.com/
|
||||
install = agisoft-metashape-pro.install
|
||||
arch = x86_64
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
_pkgname=metashape-pro
|
||||
pkgname=agisoft-${_pkgname}
|
||||
pkgver=1.7.4
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Photogrammetric processing of digital images and 3D spatial data generation software. Professional edition"
|
||||
arch=('x86_64')
|
||||
url="https://www.agisoft.com/"
|
||||
@@ -154,6 +154,12 @@ package() {
|
||||
install -Dm755 "$srcdir/agisoft-network-monitor" "$pkgdir/usr/bin/agisoft-network-monitor"
|
||||
install -Dm755 "$srcdir/agisoft-viewer" "$pkgdir/usr/bin/agisoft-viewer"
|
||||
|
||||
# Set the rehostable directory and environment variables in executables for activation
|
||||
mkdir -p "${pkgdir}/opt/agisoft/${_pkgname}/rehostable"
|
||||
sed -i '/export LD_LIBRARY_PATH/a\\nAGISOFT_REHOST_PATH=\$dirname/rehostable\nexport AGISOFT_REHOST_PATH' "${pkgdir}/opt/agisoft/${_pkgname}/metashape.sh"
|
||||
sed -i '/export LD_LIBRARY_PATH/a\\nAGISOFT_REHOST_PATH=\$dirname/rehostable\nexport AGISOFT_REHOST_PATH' "${pkgdir}/opt/agisoft/${_pkgname}/viewer.sh"
|
||||
sed -i '/export LD_LIBRARY_PATH/a\\nAGISOFT_REHOST_PATH=\$dirname/rehostable\nexport AGISOFT_REHOST_PATH' "${pkgdir}/opt/agisoft/${_pkgname}/monitor.sh"
|
||||
|
||||
# Set correct permission
|
||||
chmod -R g=u "$pkgdir/opt/agisoft/${_pkgname}"
|
||||
chmod -R o=u "$pkgdir/opt/agisoft/${_pkgname}"
|
||||
|
||||
@@ -11,6 +11,22 @@ post_install() {
|
||||
echo
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
echo "Deactivating the product..."
|
||||
agisoft-metashape-pro --deactivate 2>/dev/null
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo
|
||||
echo "This upgrade change the rehostable directory for activation"
|
||||
echo
|
||||
echo "Therefore, we deactivated the licence to avoid it becomes invalid"
|
||||
echo
|
||||
echo "Please use sudo agisoft-metashape-pro --activate to reactivate your licence"
|
||||
echo
|
||||
echo "This behaviour will be removed in the next release"
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
echo "Deactivating the product..."
|
||||
agisoft-metashape-pro --deactivate 2>/dev/null
|
||||
|
||||
Reference in new issue
Block a user