2023-06-20 02:01:11 +02:00
|
|
|
_version=3.56.0
|
2023-05-19 02:01:22 +02:00
|
|
|
_patch=01
|
2020-09-06 14:16:54 +02:00
|
|
|
|
|
|
|
pkgname=nexus-oss
|
|
|
|
pkgver=${_version}.${_patch}
|
2022-01-09 11:30:59 +01:00
|
|
|
pkgrel=1
|
2020-09-06 14:16:54 +02:00
|
|
|
pkgdesc='Nexus 3 Repository OSS'
|
|
|
|
arch=('any')
|
|
|
|
url='http://nexus.sonatype.org'
|
|
|
|
license=("custom:$pkgname")
|
2021-09-29 21:54:05 +02:00
|
|
|
depends=('java-runtime=11')
|
2020-09-06 14:16:54 +02:00
|
|
|
replaces=('nexus3')
|
2022-01-02 10:37:09 +01:00
|
|
|
provides=('nexus3')
|
2020-09-06 14:16:54 +02:00
|
|
|
backup=("var/lib/$pkgname/etc/nexus.properties"
|
2021-08-15 21:37:32 +02:00
|
|
|
"usr/lib/$pkgname/bin/nexus.vmoptions"
|
|
|
|
)
|
2020-09-06 14:16:54 +02:00
|
|
|
source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.gz"
|
2021-08-15 21:37:32 +02:00
|
|
|
"$pkgname"
|
|
|
|
"$pkgname.properties"
|
|
|
|
"$pkgname.service"
|
|
|
|
"$pkgname.sysusers"
|
|
|
|
"$pkgname.tmpfiles"
|
|
|
|
"$pkgname.vmoptions"
|
|
|
|
"pref_jre.cfg"
|
|
|
|
)
|
2023-06-20 02:01:11 +02:00
|
|
|
sha256sums=('72224300df72eae532c8ada918037314b3c4af0bed26b4e25b03dfa4227934ff'
|
2022-01-02 10:37:09 +01:00
|
|
|
'b33fbb8769ac73fe339ea2875a240f308fbd584519f533fba25cf6136eac2dd0'
|
2020-09-06 14:16:54 +02:00
|
|
|
'dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b'
|
2023-01-06 20:10:01 +01:00
|
|
|
'f74f500f93767afae47fffe3d2300628435cb2469a89e53c58f62fa60c730e8e'
|
2022-01-02 10:37:09 +01:00
|
|
|
'29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6'
|
2020-09-06 14:16:54 +02:00
|
|
|
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
|
2022-01-02 10:37:09 +01:00
|
|
|
'176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4'
|
2021-10-23 09:14:50 +02:00
|
|
|
'd713e29b72522fe4395b6959d27e2a98a24961393e08df7a6b022b1fd77c650d')
|
2020-09-06 14:16:54 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
install -dm755 $pkgdir/usr/lib
|
|
|
|
install -dm750 $pkgdir/var/lib/$pkgname
|
|
|
|
|
|
|
|
cp -a $srcdir/nexus-$_version-$_patch $pkgdir/usr/lib/$pkgname
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|