aur/nexus-oss/PKGBUILD

77 lines
3.1 KiB
Text
Raw Normal View History

2020-09-06 14:16:54 +02:00
# Maintainer: PAPPY <pappy _AT_ a s c e l i o n _DOT_ com>
2021-01-31 15:20:13 +01:00
_version=3.29.2
2020-12-17 16:01:08 +01:00
_patch=02
2020-09-06 14:16:54 +02:00
pkgname=nexus-oss
pkgver=${_version}.${_patch}
pkgrel=1
pkgdesc='Nexus 3 Repository OSS'
arch=('any')
url='http://nexus.sonatype.org'
license=("custom:$pkgname")
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"
2020-09-06 14:50:44 +02:00
noextract=('javax.activation-api-1.2.0.jar')
2020-09-06 14:16:54 +02:00
source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.gz"
2020-09-06 14:50:44 +02:00
"https://repo1.maven.org/maven2/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar"
2020-09-06 14:16:54 +02:00
"$pkgname"
"$pkgname.install"
"$pkgname.properties"
"$pkgname.service"
"$pkgname.sysusers"
"$pkgname.tmpfiles"
"$pkgname.vmoptions"
"pref_jre.cfg"
)
2021-01-31 15:20:13 +01:00
sha256sums=('bc7cbb577db195868f25d73ca22de3f7cc1e39d7384794bae03c28f5823ca3a7'
2020-09-06 14:50:44 +02:00
'43fdef0b5b6ceb31b0424b208b930c74ab58fac2ceeb7b3f6fd3aeb8b5ca4393'
2020-09-06 14:16:54 +02:00
'3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff'
'f03a4a2a454ab15bbe7b6d479ec4b6a86055a4ffb77704dc44fe11a19382278b'
'dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b'
'3670748854d3f05623c9a8826605c3e2a97c7b3955104e74b5eed00ed17299c1'
'77d699b5ccf6387fa2f69df2cd71cdb75b4ffbf46a10110dd6c0e2802783dbef'
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
'62da3195207e23e6945082cd7898ca1e1f22eb52d0538977ab2caf4d1186d8d8'
2020-10-20 08:41:31 +02:00
'01e835ff0711e4fb16a672f7e5fbdfe86f17a61534eedfbcf167a68690110b21')
2020-09-06 14:16:54 +02:00
install=$pkgname.install
package() {
install -dm755 $pkgdir/usr/lib
install -dm750 $pkgdir/var/lib/$pkgname
2020-09-06 14:50:44 +02:00
sed -i '448iadd_class_path "$app_home/lib/boot/javax.activation-api-1.2.0.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
2020-09-06 14:16:54 +02:00
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
2020-09-06 14:50:44 +02:00
cp $srcdir/javax.activation-api-1.2.0.jar $pkgdir/usr/lib/$pkgname/lib/boot
2020-09-06 14:16:54 +02:00
pushd $pkgdir/usr/lib/$pkgname
rm -rf bin/nexus.rc \
bin/contrib \
LICENSE.txt
popd
install -Dm640 $srcdir/$pkgname.properties $pkgdir/var/lib/$pkgname/etc/nexus.properties
install -Dm644 $srcdir/nexus-$_version-$_patch/OSS-LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
install -Dm755 $srcdir/$pkgname $pkgdir/usr/bin/$pkgname
install -Dm644 $srcdir/$pkgname.vmoptions $pkgdir/usr/lib/$pkgname/bin/nexus.vmoptions
install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm644 $pkgname.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -Dm644 $pkgname.sysusers "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -m644 pref_jre.cfg $pkgdir/usr/lib/$pkgname/.install4j
chmod -R o-rwx $pkgdir/var/lib/$pkgname
}