nexus-oss java11
This commit is contained in:
parent
5bb948e82d
commit
1a488e0e73
34
nexus-oss/.SRCINFO
Normal file
34
nexus-oss/.SRCINFO
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
pkgbase = nexus-oss
|
||||||
|
pkgdesc = Nexus 3 Repository OSS
|
||||||
|
pkgver = 3.25.0.03
|
||||||
|
pkgrel = 2
|
||||||
|
url = http://nexus.sonatype.org
|
||||||
|
install = nexus-oss.install
|
||||||
|
arch = any
|
||||||
|
license = custom:nexus-oss
|
||||||
|
depends = jre8-openjdk-headless
|
||||||
|
provides = nexus-oss
|
||||||
|
replaces = nexus3
|
||||||
|
backup = var/lib/nexus-oss/etc/nexus.properties
|
||||||
|
backup = usr/lib/nexus-oss/bin/nexus.vmoptions
|
||||||
|
source = https://download.sonatype.com/nexus/3/nexus-3.25.0-03-unix.tar.gz
|
||||||
|
source = nexus-oss
|
||||||
|
source = nexus-oss.install
|
||||||
|
source = nexus-oss.properties
|
||||||
|
source = nexus-oss.service
|
||||||
|
source = nexus-oss.sysusers
|
||||||
|
source = nexus-oss.tmpfiles
|
||||||
|
source = nexus-oss.vmoptions
|
||||||
|
source = pref_jre.cfg
|
||||||
|
sha256sums = 97c9908afc283f8f46bc39834158f4ba9db9185da4b8402e6ac191e25824924c
|
||||||
|
sha256sums = 3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff
|
||||||
|
sha256sums = f03a4a2a454ab15bbe7b6d479ec4b6a86055a4ffb77704dc44fe11a19382278b
|
||||||
|
sha256sums = dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b
|
||||||
|
sha256sums = 3670748854d3f05623c9a8826605c3e2a97c7b3955104e74b5eed00ed17299c1
|
||||||
|
sha256sums = 77d699b5ccf6387fa2f69df2cd71cdb75b4ffbf46a10110dd6c0e2802783dbef
|
||||||
|
sha256sums = 939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c
|
||||||
|
sha256sums = 62da3195207e23e6945082cd7898ca1e1f22eb52d0538977ab2caf4d1186d8d8
|
||||||
|
sha256sums = 55fb2aeb4eb3f54c59963870cf43bf5a898a014826d530bf37729fc5e2bc2463
|
||||||
|
|
||||||
|
pkgname = nexus-oss
|
||||||
|
|
7
nexus-oss/.gitignore
vendored
Normal file
7
nexus-oss/.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.*
|
||||||
|
!.SRCINFO
|
||||||
|
!.gitignore
|
||||||
|
pkg
|
||||||
|
src
|
||||||
|
*.xz
|
||||||
|
*.gz
|
69
nexus-oss/PKGBUILD
Normal file
69
nexus-oss/PKGBUILD
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# Maintainer: PAPPY <pappy _AT_ a s c e l i o n _DOT_ com>
|
||||||
|
|
||||||
|
_version=3.25.1
|
||||||
|
_patch=02
|
||||||
|
|
||||||
|
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"
|
||||||
|
source=("https://download.sonatype.com/nexus/3/nexus-$_version-$_patch-unix.tar.gz"
|
||||||
|
"$pkgname"
|
||||||
|
"$pkgname.install"
|
||||||
|
"$pkgname.properties"
|
||||||
|
"$pkgname.service"
|
||||||
|
"$pkgname.sysusers"
|
||||||
|
"$pkgname.tmpfiles"
|
||||||
|
"$pkgname.vmoptions"
|
||||||
|
"pref_jre.cfg"
|
||||||
|
)
|
||||||
|
sha256sums=('d3a49905e2bac421b7b7d6299312a9c65e194a8c17d994ee83b06c58eafe43e5'
|
||||||
|
'3d2ebc2a796dbdc7e7e3b97e4c3272292169c898776e111f503f0517e434caff'
|
||||||
|
'f03a4a2a454ab15bbe7b6d479ec4b6a86055a4ffb77704dc44fe11a19382278b'
|
||||||
|
'dcdef5614db12f38b3da0b9de1b52fb7fa402af6621a825981c6168a34a6ad9b'
|
||||||
|
'3670748854d3f05623c9a8826605c3e2a97c7b3955104e74b5eed00ed17299c1'
|
||||||
|
'77d699b5ccf6387fa2f69df2cd71cdb75b4ffbf46a10110dd6c0e2802783dbef'
|
||||||
|
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
|
||||||
|
'62da3195207e23e6945082cd7898ca1e1f22eb52d0538977ab2caf4d1186d8d8'
|
||||||
|
'55fb2aeb4eb3f54c59963870cf43bf5a898a014826d530bf37729fc5e2bc2463')
|
||||||
|
|
||||||
|
install=$pkgname.install
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -dm755 $pkgdir/usr/lib
|
||||||
|
install -dm750 $pkgdir/var/lib/$pkgname
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
4
nexus-oss/nexus-oss
Normal file
4
nexus-oss/nexus-oss
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec /usr/lib/nexus-oss/bin/nexus "$@"
|
||||||
|
|
45
nexus-oss/nexus-oss.install
Normal file
45
nexus-oss/nexus-oss.install
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
post_install()
|
||||||
|
{
|
||||||
|
systemd-sysusers nexus-oss.conf
|
||||||
|
systemd-tmpfiles --create nexus-oss.conf
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
The default URL for this installation is
|
||||||
|
|
||||||
|
http://127.0.0.1:8081/
|
||||||
|
|
||||||
|
To change these settings edit the file
|
||||||
|
|
||||||
|
/var/lib/nexus-oss/etc/nexus.properties
|
||||||
|
|
||||||
|
Sonatype strongly suggests using the latest Java 8 release version of Java
|
||||||
|
available from Oracle. Support for Java 9 has not been verified - DO NOT USE IT.
|
||||||
|
|
||||||
|
See https://help.sonatype.com/display/NXRM3/System+Requirements#SystemRequirements-Java
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade()
|
||||||
|
{
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
cat <<EOF
|
||||||
|
|
||||||
|
See Release Notes at
|
||||||
|
https://help.sonatype.com/display/NXRM3/2018+Release+Notes
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_remove()
|
||||||
|
{
|
||||||
|
systemctl disable --now nexus-oss
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove()
|
||||||
|
{
|
||||||
|
systemctl daemon-reload
|
||||||
|
}
|
||||||
|
|
3
nexus-oss/nexus-oss.properties
Normal file
3
nexus-oss/nexus-oss.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
application-port=8081
|
||||||
|
application-host=127.0.0.1
|
||||||
|
nexus-context-path=/
|
16
nexus-oss/nexus-oss.service
Normal file
16
nexus-oss/nexus-oss.service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Nexus 3 Repository OSS
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
LimitNOFILE=65536
|
||||||
|
User=nexus
|
||||||
|
Group=nexus
|
||||||
|
ExecStart=/usr/bin/nexus-oss start
|
||||||
|
ExecStop=/usr/bin/nexus-oss stop
|
||||||
|
Restart=on-abort
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
2
nexus-oss/nexus-oss.sysusers
Normal file
2
nexus-oss/nexus-oss.sysusers
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
u nexus - "Nexus OSS" /var/lib/nexus-oss
|
||||||
|
g nexus -
|
3
nexus-oss/nexus-oss.tmpfiles
Normal file
3
nexus-oss/nexus-oss.tmpfiles
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Z /var/lib/nexus-oss 0750 nexus nexus -
|
||||||
|
d /run/nexus-oss 0750 nexus nexus -
|
||||||
|
Z /run/nexus-oss 0750 nexus nexus -
|
16
nexus-oss/nexus-oss.vmoptions
Normal file
16
nexus-oss/nexus-oss.vmoptions
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-Xms4G
|
||||||
|
-Xmx4G
|
||||||
|
-XX:MaxDirectMemorySize=768M
|
||||||
|
-XX:+UnlockDiagnosticVMOptions
|
||||||
|
-XX:+UnsyncloadClass
|
||||||
|
-XX:+LogVMOutput
|
||||||
|
-XX:LogFile=/var/lib/nexus-oss/log/jvm.log
|
||||||
|
-XX:-OmitStackTraceInFastThrow
|
||||||
|
-Djava.net.preferIPv4Stack=true
|
||||||
|
-Dkaraf.home=.
|
||||||
|
-Dkaraf.base=.
|
||||||
|
-Dkaraf.etc=etc/karaf
|
||||||
|
-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
|
||||||
|
-Dkaraf.data=/var/lib/nexus-oss
|
||||||
|
-Djava.io.tmpdir=/run/nexus-oss
|
||||||
|
-Dkaraf.startLocalConsole=false
|
1
nexus-oss/pref_jre.cfg
Normal file
1
nexus-oss/pref_jre.cfg
Normal file
@ -0,0 +1 @@
|
|||||||
|
/usr/lib/jvm/java-8-openjdk
|
Loading…
Reference in New Issue
Block a user