diff --git a/nexus-oss/.SRCINFO b/nexus-oss/.SRCINFO new file mode 100644 index 0000000..97e8a0c --- /dev/null +++ b/nexus-oss/.SRCINFO @@ -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 + diff --git a/nexus-oss/.gitignore b/nexus-oss/.gitignore new file mode 100644 index 0000000..f79c1a2 --- /dev/null +++ b/nexus-oss/.gitignore @@ -0,0 +1,7 @@ +.* +!.SRCINFO +!.gitignore +pkg +src +*.xz +*.gz diff --git a/nexus-oss/PKGBUILD b/nexus-oss/PKGBUILD new file mode 100644 index 0000000..3ce5891 --- /dev/null +++ b/nexus-oss/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: PAPPY + +_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 +} + diff --git a/nexus-oss/nexus-oss b/nexus-oss/nexus-oss new file mode 100644 index 0000000..12bfa60 --- /dev/null +++ b/nexus-oss/nexus-oss @@ -0,0 +1,4 @@ +#!/bin/bash + +exec /usr/lib/nexus-oss/bin/nexus "$@" + diff --git a/nexus-oss/nexus-oss.install b/nexus-oss/nexus-oss.install new file mode 100644 index 0000000..cd7dffa --- /dev/null +++ b/nexus-oss/nexus-oss.install @@ -0,0 +1,45 @@ +post_install() +{ + systemd-sysusers nexus-oss.conf + systemd-tmpfiles --create nexus-oss.conf + + cat <