From 96521445d6b1c1ed4b96510151a6cb3af2886647 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 15 Aug 2021 21:37:32 +0200 Subject: [PATCH] use javax activation bundled --- nexus-oss/PKGBUILD | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/nexus-oss/PKGBUILD b/nexus-oss/PKGBUILD index 5c41b62..4040477 100644 --- a/nexus-oss/PKGBUILD +++ b/nexus-oss/PKGBUILD @@ -1,5 +1,3 @@ -# Maintainer: PAPPY - _version=3.33.0 _patch=01 @@ -14,23 +12,19 @@ depends=('java-runtime') replaces=('nexus3') 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') + "usr/lib/$pkgname/bin/nexus.vmoptions" +) 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" - "$pkgname.service" - "$pkgname.sysusers" - "$pkgname.tmpfiles" - "$pkgname.vmoptions" - "pref_jre.cfg" - ) + "$pkgname" + "$pkgname.install" + "$pkgname.properties" + "$pkgname.service" + "$pkgname.sysusers" + "$pkgname.tmpfiles" + "$pkgname.vmoptions" + "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 } -