pentoo-overlay/dev-util/collabreate/collabreate-0.4.0_p20140528.ebuild
2020-06-21 16:46:58 +02:00

57 lines
1.7 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit subversion
DESCRIPTION="A plugin for IDA Pro designed to provide collaborative reverse engineering"
HOMEPAGE="http://www.idabook.com/collabreate/ https://sourceforge.net/projects/collabreate/"
ESVN_REPO_URI="https://svn.code.sf.net/p/collabreate/code/trunk@20"
# ESVN_REPO_URI="https://collabreate.svn.sourceforge.net/svnroot/collabreate/trunk@20"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#IUSE="+mysql"
RDEPEND="virtual/jdk:1.8
dev-db/postgresql:*
dev-java/jdbc-postgresql"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}/trunk"
src_compile() {
cd "${S}"/server/java/collabreate/server
cp /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar ./ || die "jdbc-postgresql.jar not found!!!"
sh build_jar.sh* || die 'failed to build server'
}
src_install() {
doins database/postgresql/*.sql
cd "${S}"/server/java/collabreate/server
dodir /opt/collabreate/server
insinto /opt/collabreate/server
doins *.jar
doins *.conf
doins launch_*
dodoc README
}
pkg_postinst() {
elog "Read the readme file in the doc dir"
elog "For postgresql, you need to create a user and a db for collabreate"
elog "go in /opt/collabreate/server and do the following:"
elog "su postgres"
elog "createuser -s -d -R collab"
elog "createdb -U collab collabDB"
elog "Launch postgresql client"
elog "psql"
elog "ALTER DATABASE \"collabDB\" SET escape_string_warning=off;"
elog "ALTER DATABASE \"collabDB\" SET standard_conforming_strings=off;"
elog "\q"
elog "Then import the schema"
elog "psql -q -U collab -d collabDB -f dbschema.sql"
elog "now edit your server.conf and setup collabreate"
}