feat(nexus): license hack
This commit is contained in:
parent
1b1231d449
commit
883f61cdd9
@ -1,10 +1,11 @@
|
||||
pkgbase = nexus-oss
|
||||
pkgdesc = Nexus 3 Repository OSS
|
||||
pkgver = 3.64.0.01
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = http://nexus.sonatype.org
|
||||
arch = any
|
||||
license = custom:nexus-oss
|
||||
makedepends = zip
|
||||
depends = java-runtime=21
|
||||
provides = nexus3
|
||||
replaces = nexus3
|
||||
@ -18,6 +19,7 @@ pkgbase = nexus-oss
|
||||
source = nexus-oss.tmpfiles
|
||||
source = nexus-oss.vmoptions
|
||||
source = pref_jre.cfg
|
||||
source = DefaultProductLicenseManager.class
|
||||
sha256sums = 50f38502a3ce3bbbb6dff3e1004ef6c3739af5c2b24c3df28b12ae484b221329
|
||||
sha256sums = 3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d
|
||||
sha256sums = dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b
|
||||
@ -26,5 +28,6 @@ pkgbase = nexus-oss
|
||||
sha256sums = 939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c
|
||||
sha256sums = 176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4
|
||||
sha256sums = 08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804
|
||||
sha256sums = 4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d
|
||||
|
||||
pkgname = nexus-oss
|
||||
|
@ -3,12 +3,13 @@ _patch=01
|
||||
|
||||
pkgname=nexus-oss
|
||||
pkgver=${_version}.${_patch}
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc='Nexus 3 Repository OSS'
|
||||
arch=('any')
|
||||
url='http://nexus.sonatype.org'
|
||||
license=("custom:$pkgname")
|
||||
depends=('java-runtime=21')
|
||||
makedepends=('zip')
|
||||
replaces=('nexus3')
|
||||
provides=('nexus3')
|
||||
backup=("var/lib/$pkgname/etc/nexus.properties"
|
||||
@ -22,6 +23,7 @@ source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.
|
||||
"$pkgname.tmpfiles"
|
||||
"$pkgname.vmoptions"
|
||||
"pref_jre.cfg"
|
||||
"DefaultProductLicenseManager.class"
|
||||
)
|
||||
sha256sums=('50f38502a3ce3bbbb6dff3e1004ef6c3739af5c2b24c3df28b12ae484b221329'
|
||||
'3f34cf42929303219398c1e9f4e690579dcf0a7e176cf031e0f5173203eb802d'
|
||||
@ -30,7 +32,8 @@ sha256sums=('50f38502a3ce3bbbb6dff3e1004ef6c3739af5c2b24c3df28b12ae484b221329'
|
||||
'29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6'
|
||||
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
|
||||
'176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4'
|
||||
'08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804')
|
||||
'08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804'
|
||||
'4b5d4b116102cdc8b54e5921b1970195789a51750344aee4f070077d96cabd7d')
|
||||
prepare() {
|
||||
|
||||
sed -i '/eecap-16/i eecap-21 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\
|
||||
@ -49,6 +52,9 @@ prepare() {
|
||||
|
||||
sed -i '/jre-19 = ${jre-18}/a jre-20 = ${jre-19}\njre-21 = ${jre-20}' $srcdir/nexus-$_version-$_patch/etc/karaf/jre.properties
|
||||
|
||||
folder=org/sonatype/licensing/product/internal
|
||||
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
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
Reference in New Issue
Block a user