use javax activation bundled
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-08-15 21:37:32 +02:00
parent a028f89c60
commit 96521445d6

View file

@ -1,5 +1,3 @@
# Maintainer: PAPPY <pappy _AT_ a s c e l i o n _DOT_ com>
_version=3.33.0
_patch=01
@ -16,10 +14,7 @@ provides=($pkgname)
backup=("var/lib/$pkgname/etc/nexus.properties"
"usr/lib/$pkgname/bin/nexus.vmoptions"
)
#source=("https://sonatype-download.global.ssl.fastly.net/repository/repositoryManager/3/nexus-$_version-$_patch-unix.tar.gz"
noextract=('javax.activation-api-1.2.0.jar')
source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.gz"
"https://repo1.maven.org/maven2/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar"
"$pkgname"
"$pkgname.install"
"$pkgname.properties"
@ -30,7 +25,6 @@ source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.
"pref_jre.cfg"
)
sha256sums=('6c960baea9a78d80b07412529f6f7b59baeff82db8cda976b141e87aa7566ee8'
'43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393'
'3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff'
'f03a4a2a454ab15bbe7b6d479ec4b6a86055a4ffb77704dc44fe11a19382278b'
'dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b'
@ -46,15 +40,13 @@ package() {
install -dm755 $pkgdir/usr/lib
install -dm750 $pkgdir/var/lib/$pkgname
sed -i '448iadd_class_path "$app_home/lib/boot/javax.activation-api-1.2.0.jar"' $srcdir/nexus-$_version-$_patch/bin/nexus
sed -i '448iadd_class_path "$app_home/lib/boot/activation-1.1.jar"' $srcdir/nexus-$_version-$_patch/bin/nexus
sed -i '459iadd_class_path "$app_home/lib/endorsed/org.apache.karaf.specs.locator-4.2.9.jar"' $srcdir/nexus-$_version-$_patch/bin/nexus
sed -i '146,166d' $srcdir/nexus-$_version-$_patch/bin/nexus
cp -a $srcdir/nexus-$_version-$_patch $pkgdir/usr/lib/$pkgname
cp -a $srcdir/sonatype-work/nexus3/orient $pkgdir/var/lib/$pkgname
cp $srcdir/javax.activation-api-1.2.0.jar $pkgdir/usr/lib/$pkgname/lib/boot
pushd $pkgdir/usr/lib/$pkgname
rm -rf bin/nexus.rc \
bin/contrib \
@ -73,4 +65,3 @@ package() {
chmod -R o-rwx $pkgdir/var/lib/$pkgname
}