fix(nexus): patch spifly jar

This commit is contained in:
nyyu 2024-04-06 11:11:17 +02:00
parent 28f1043771
commit 99bd3f9dd9
2 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = nexus-oss pkgbase = nexus-oss
pkgdesc = Nexus 3 Repository OSS pkgdesc = Nexus 3 Repository OSS
pkgver = 3.67.0.03 pkgver = 3.67.0.03
pkgrel = 1 pkgrel = 2
url = http://nexus.sonatype.org url = http://nexus.sonatype.org
arch = any arch = any
license = custom:nexus-oss license = custom:nexus-oss
@ -20,6 +20,7 @@ pkgbase = nexus-oss
source = nexus-oss.vmoptions source = nexus-oss.vmoptions
source = pref_jre.cfg source = pref_jre.cfg
source = DefaultProductLicenseManager.class source = DefaultProductLicenseManager.class
source = https://repo1.maven.org/maven2/org/apache/aries/spifly/org.apache.aries.spifly.dynamic.framework.extension/1.3.7/org.apache.aries.spifly.dynamic.framework.extension-1.3.7.jar
sha256sums = 840bc261b9bb5c3dbfc38bf15f45524b112351c135ec8ad9ddf7de227783c3db sha256sums = 840bc261b9bb5c3dbfc38bf15f45524b112351c135ec8ad9ddf7de227783c3db
sha256sums = 3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d sha256sums = 3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d
sha256sums = dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b sha256sums = dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b
@ -29,5 +30,6 @@ pkgbase = nexus-oss
sha256sums = 176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4 sha256sums = 176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4
sha256sums = 08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804 sha256sums = 08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804
sha256sums = 4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d sha256sums = 4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d
sha256sums = 944611d53f85dec763298a92fbdedba63937ec87f591d44f122d502dbe30fdeb
pkgname = nexus-oss pkgname = nexus-oss

View File

@ -3,7 +3,7 @@ _patch=03
pkgname=nexus-oss pkgname=nexus-oss
pkgver=${_version}.${_patch} pkgver=${_version}.${_patch}
pkgrel=1 pkgrel=2
pkgdesc='Nexus 3 Repository OSS' pkgdesc='Nexus 3 Repository OSS'
arch=('any') arch=('any')
url='http://nexus.sonatype.org' url='http://nexus.sonatype.org'
@ -24,6 +24,7 @@ source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.
"$pkgname.vmoptions" "$pkgname.vmoptions"
"pref_jre.cfg" "pref_jre.cfg"
"DefaultProductLicenseManager.class" "DefaultProductLicenseManager.class"
"https://repo1.maven.org/maven2/org/apache/aries/spifly/org.apache.aries.spifly.dynamic.framework.extension/1.3.7/org.apache.aries.spifly.dynamic.framework.extension-1.3.7.jar"
) )
sha256sums=('840bc261b9bb5c3dbfc38bf15f45524b112351c135ec8ad9ddf7de227783c3db' sha256sums=('840bc261b9bb5c3dbfc38bf15f45524b112351c135ec8ad9ddf7de227783c3db'
'3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d' '3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d'
@ -33,7 +34,8 @@ sha256sums=('840bc261b9bb5c3dbfc38bf15f45524b112351c135ec8ad9ddf7de227783c3db'
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c' '939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
'176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4' '176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4'
'08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804' '08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804'
'4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d') '4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d'
'944611d53f85dec763298a92fbdedba63937ec87f591d44f122d502dbe30fdeb')
prepare() { prepare() {
sed -i '/eecap-16/i eecap-22 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\ sed -i '/eecap-16/i eecap-22 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\
@ -62,6 +64,9 @@ prepare() {
folder=org/sonatype/licensing/product/internal folder=org/sonatype/licensing/product/internal
mkdir -p $folder && cp DefaultProductLicenseManager.class $folder mkdir -p $folder && cp DefaultProductLicenseManager.class $folder
zip -ur $srcdir/nexus-$_version-$_patch/system/com/sonatype/licensing/license-bundle/1.6.0/license-bundle-1.6.0.jar $folder/DefaultProductLicenseManager.class zip -ur $srcdir/nexus-$_version-$_patch/system/com/sonatype/licensing/license-bundle/1.6.0/license-bundle-1.6.0.jar $folder/DefaultProductLicenseManager.class
rm -f $srcdir/nexus-$_version-$_patch/system/org/apache/aries/spifly/org.apache.aries.spifly.dynamic.framework.extension/1.3.6/*.jar
cp $srcdir/org.apache.aries.spifly.dynamic.framework.extension-1.3.7.jar $srcdir/nexus-$_version-$_patch/system/org/apache/aries/spifly/org.apache.aries.spifly.dynamic.framework.extension/1.3.6/org.apache.aries.spifly.dynamic.framework.extension-1.3.6.jar
} }
package() { package() {