archiva-2.2.0 added
This commit is contained in:
parent
582bc1a19a
commit
0ae2d74a68
4
dev-java/apache-archiva/Manifest
Normal file
4
dev-java/apache-archiva/Manifest
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
AUX apache-archiva.conf.d 159 SHA256 2f93d2d9732b71b0249032ab38a5d22185e763ff929f5929ad1f388b599c3677 SHA512 7cb55ba630c1ff9eb13085fa5344b87ee0b028f5524f6ab2474cc41d31b721bdf60add45f6bb5efb33968ccd4f66e4bb4e46da4908ca7396567409020aba95e0 WHIRLPOOL c60399d3c5f3ae5e611fdd9f7bc678067b6aab8a15f5adbee2b77f70552777698e925c72535051db2a22b154881fc53ee9af9aa84465f34c58466e0fdb94c29d
|
||||||
|
AUX apache-archiva.init.d 686 SHA256 7394177e487c0853da110f1c07050395f564657ae20dbe1b5c3a257a0e1e8591 SHA512 3c05be929e6280464a1af93809ca0de5b5262a99537891afd7dab12a438f4754d5f142bef82fcde6322fd9f6d1383e6bc4c01baed4bd72f55103b97ebe88aa43 WHIRLPOOL e25ae1795c598527dab083737122b3d50a6a06c796903c77556b199d0ce17f7133aedaba42f1b7228c2e4356d4c9264f43d615e3b5065e787ef279a294f0ee38
|
||||||
|
DIST apache-archiva-2.2.0-bin.tar.gz 65474332 SHA256 6af7c3c47c35584f729a9c139675a01f9a9819d0cdde292552fc783284a34cfa SHA512 cba8f26f7ac69d566b781c17ba732889c0ee8e9b59e4f87b5608577577a60a1bf91c64eb5bd9aafc8a0b8ac331ec9375af9f93906b81a6690bebcc0009347253 WHIRLPOOL eefd245341906f7a98afc1df1a7d9ba356e926b8857112730f71a8efddd9e95dc1537fb4cf666f7f32e8a09d4aebe07d5cf7a570a50935d748ac6902ce39b1ab
|
||||||
|
EBUILD apache-archiva-2.2.0.ebuild 1707 SHA256 010d93e77244cdcd4c73b68830eb1087c1eb7e8ade26e7917ac9240a778fec44 SHA512 c49fd36bb56ad33a1f51afeb02276f3376b4bc1c0f48349c5348c8597d08cc1120a7824679b10b349506866efacbbca45c4c2de0a47062edd7f82b029661db8c WHIRLPOOL 484de32e2b4f88be3ab7ce604f6a3324b0657f6d3988235ef9a57bbf88e1406a0ab562d81b65a68e05a4de05021dc90bc7e71e4c62d4e76dd0ab9f6a6dc03e18
|
75
dev-java/apache-archiva/apache-archiva-2.2.0.ebuild
Normal file
75
dev-java/apache-archiva/apache-archiva-2.2.0.ebuild
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit java-pkg-2 user
|
||||||
|
|
||||||
|
DESCRIPTION="The Build Artifact Repository Manager"
|
||||||
|
ARCHBASEPAGE="http://archiva.apache.org/"
|
||||||
|
SRC_URI="mirror://apache/archiva/${PV}/binaries/${P}-bin.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
IUSE="mysql"
|
||||||
|
|
||||||
|
COMMON_DEP="mysql? ( dev-java/jdbc-mysql )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND=">=virtual/jre-1.7
|
||||||
|
${COMMON_DEP}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${COMMON_DEP}"
|
||||||
|
|
||||||
|
EANT_BUILD_TARGET=""
|
||||||
|
EANT_DOC_TARGET=""
|
||||||
|
ARCHBASE="/var/lib/${PN}"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup archiva
|
||||||
|
enewuser archiva -1 /bin/sh ${ARCHBASE} archiva
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rm lib/{*.dll,*-solaris-*,*-macosx-*}
|
||||||
|
rm bin/{*.bat,*-windows-*,*-solaris-*,*-macosx-*}
|
||||||
|
rm lib/libwrapper-linux-x86-32.so
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s!set.default.ARCHIVA_BASE=.*!set.default.ARCHIVA_BASE=${ARCHBASE}!g" \
|
||||||
|
-e "s!wrapper\.working\.dir=.*!wrapper.working.dir=/opt/${P}!g" \
|
||||||
|
conf/wrapper.conf
|
||||||
|
|
||||||
|
sed -i -e "s!uname -p!uname -m!g" bin/archiva
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
diropts -m0775 -o archiva -g archiva
|
||||||
|
keepdir ${ARCHBASE}/{data,temp}
|
||||||
|
keepdir /var/log/${PN}
|
||||||
|
|
||||||
|
insinto /etc/${PN}
|
||||||
|
doins conf/*
|
||||||
|
chown archiva:archiva conf/archiva.xml
|
||||||
|
|
||||||
|
dosym /etc/${PN} ${ARCHBASE}/conf
|
||||||
|
dosym /var/log/${PN} ${ARCHBASE}/logs
|
||||||
|
|
||||||
|
insinto /opt/${P}
|
||||||
|
doins -r apps contexts lib
|
||||||
|
doins LICENSE NOTICE
|
||||||
|
|
||||||
|
exeinto /opt/${P}/bin
|
||||||
|
doexe bin/{wrapper-linux-x86-64,archiva}
|
||||||
|
|
||||||
|
sed -e "s!##ARCHIVA##!${P}!g" \
|
||||||
|
-e "s!##ARCHBASE##!${ARCHBASE}!g" \
|
||||||
|
${FILESDIR}/apache-archiva.conf.d > apache-archiva.conf.d
|
||||||
|
|
||||||
|
newinitd ${FILESDIR}/apache-archiva.init.d ${PN}
|
||||||
|
newconfd apache-archiva.conf.d ${PN}
|
||||||
|
}
|
10
dev-java/apache-archiva/files/apache-archiva.conf.d
Normal file
10
dev-java/apache-archiva/files/apache-archiva.conf.d
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
ARCHIVA_PROG=/opt/##ARCHIVA##/bin/wrapper-linux-x86-64
|
||||||
|
|
||||||
|
ARCHIVA_TMPDIR=/var/tmp/apache-archiva
|
||||||
|
|
||||||
|
ARCHIVA_PORT=8080
|
||||||
|
|
||||||
|
ARCHIVA_OPTS=""
|
||||||
|
|
||||||
|
ARCHIVA_BASE=##ARCHBASE##
|
||||||
|
|
27
dev-java/apache-archiva/files/apache-archiva.init.d
Executable file
27
dev-java/apache-archiva/files/apache-archiva.init.d
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/sbin/runscript
|
||||||
|
# Copyright 1999-2015 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
name="Apache Archiva"
|
||||||
|
start_stop_daemon_args="-u archiva:archiva"
|
||||||
|
pidfile="/run/apache-archiva/archiva.pid"
|
||||||
|
|
||||||
|
command="${ARCHIVA_PROG}"
|
||||||
|
command_args="/etc/apache-archiva/wrapper.conf wrapper.syslog.ident=\"Archiva\" wrapper.syslog.level=DEBUG wrapper.daemonize=TRUE ${ARCHIVA_OPTS}"
|
||||||
|
|
||||||
|
extra_commands="status"
|
||||||
|
|
||||||
|
depend() {
|
||||||
|
need net
|
||||||
|
use logger
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
rm -rf ${ARCHIVA_TMPDIR}
|
||||||
|
mkdir ${ARCHIVA_TMPDIR}
|
||||||
|
chown archiva:archiva ${ARCHIVA_TMPDIR}
|
||||||
|
checkpath --directory --owner archiva:archiva --mode 0775 \
|
||||||
|
/var/run/apache-archiva
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user