warvox: adjusted to the lastest trunk. May require more fine tunings.

This commit is contained in:
Anton Bolshakov 2012-02-08 09:27:36 +00:00
parent dd37b737c1
commit 006d534e22
3 changed files with 48 additions and 18 deletions

View file

@ -1,4 +1,6 @@
AUX warvox-launcher 156 RMD160 3e99950a8af854573de141c8fb4f291ea02e83ff SHA1 bca5eaa42818cda67f1c22d92acc3f76c8b828e7 SHA256 97fb87e9d6349850e7b4033f29b1a073a7ed8818936c10bad05e4ca1255c7257
AUX warvox-launcher 198 RMD160 819d83913b1c49076f57139fb623f556fcb68209 SHA1 0dec22b78ae93b8079e919fc87ced214001185c8 SHA256 3b7ae76424355397f11ba0a9940fdf87c972d1d5c58de2a2494c94a34677ee67
DIST warvox-1.0.1.tar.gz 4334804 RMD160 cfae9029884bd1113c370785ff52478a727e0b2b SHA1 46ee5d922214c33a4e82d8335dbe01eacf3ec2cb SHA256 577a06c57fefc61e873547b2c105c41905ce219df56bfa96c353cf94c2b14d7a
EBUILD warvox-1.0.1.ebuild 1021 RMD160 230f3b73947682302a4c42dc65fb0d6b5467ec4b SHA1 158e1ded4497cd874e4f4c5f9bb860e85b6a2939 SHA256 cfe226fd5161223dc794e19c29fcff44680d00ca5fd608ce93f57cd96bf05810
EBUILD warvox-9999.ebuild 913 RMD160 0073769679a6ae7541210691a61bbce851dcbbc0 SHA1 35abeedb9217ac721f624a6bdeea7959e7fc1cda SHA256 887c6ed0d57128c19ea41050617dac8e9816562fa570287d494f58a85e0f2e0e
EBUILD warvox-9999.ebuild 1953 RMD160 5ab48ace3225a595b96e7ea1406248b1c0c3160b SHA1 d669f7ed30ab3f70cbb4cc0adf0d20842b1ea0fa SHA256 b81e3c1a64b880a2232ab3f924445222b0f52bb3dbf381507c78a033702a10d6
MISC url 126 RMD160 64a48c0e6f4f84928752b597a2e8f8e26f182402 SHA1 394cc34f27103aec44aaf65f4b70025bf751800e SHA256 f3df641637e54d7e4fae57ae3fbbbeef8385eb6d7af2ea1baec7053a44ce16b2
MISC warvox-9999.fakegem 1818 RMD160 17fbb3c768941bfbd47c2170adb7ad97cc1da33e SHA1 43bd0ed08032341f6178a44a45b5ff84ae2d1110 SHA256 094a375e3ae7713c0d80a5dc0d098f87dbdbddd31e5f62648546c471bb1e9afc

View file

@ -1,11 +1,14 @@
#!/bin/sh
echo "username: admin"
echo "pass: warvox"
echo "Login to http://127.0.0.1:7777/"
launchff() {
sleep 10
xdg-open http://127.0.0.1:7777/
}
launchff &
#launchff &
cd /opt/warvox/bin
./warvox.rb

View file

@ -2,30 +2,46 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
EAPI="4"
inherit subversion
inherit eutils subversion
DESCRIPTION="Telephone system auditing tool"
HOMEPAGE="http://warvox.org/"
DESCRIPTION="VoIP war dialing suite of tools"
HOMEPAGE="http://warvox.org"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
IUSE="http"
ESVN_REPO_URI="http://www.metasploit.com/svn/warvox/trunk/"
DEPEND="dev-ruby/rake"
RDEPEND="dev-ruby/sqlite3-ruby
dev-ruby/bundler
net-misc/iaxclient
sci-visualization/gnuplot
media-sound/sox"
RDEPEND="net-misc/iaxclient
media-sound/sox
media-sound/lame
dev-ruby/sqlite3-ruby
dev-python/gnuplot-py
dev-ruby/bundler
dev-ruby/pg
dev-ruby/will_paginate:3
dev-ruby/abstract
dev-ruby/activesupport:3.0
http? ( www-servers/mongrel )"
ESVN_REPO_URI="http://metasploit.com/svn/warvox/trunk/"
#Bundler is a tricky to deal with. We might need adapt tricks from dev-ruby/radiant
#See the following blog post for more details:
#http://blog.flameeyes.eu/2010/08/18/gentoo-ruby-less-is-more
src_compile() {
emake -j1 DESTDIR="${D}" || die 'make failed'
src_prepare(){
#Remove 'smart' commands from the Makefile
#do not run verify_install.rb
sed -i 's|^all: test|all: install|' Makefile || die
#do not run bundler and db sections
sed -i 's|\install: bundler dtmf2num ruby-kissfft db|install: dtmf2num ruby-kissfft-install|' Makefile || die
sed -i "s|bundle exec||" Makefile || die
#do not pull external packages
sed -i -e "s:^gem 'will_paginate'.*:gem 'will_paginate':" web/Gemfile || die
}
src_install() {
@ -34,7 +50,16 @@ src_install() {
cp -r {bin,data,docs,etc,lib,web} "${D}"/opt/$PN/
# I know the permissions are ugly, but that's what hdm himself
# recommends Oo
chmod 644 "${D}"/opt/$PN/web/config/session.key
chmod 666 "${D}"/opt/$PN/web/log/production.log
# chmod 644 "${D}"/opt/$PN/web/config/session.key
# chmod 666 "${D}"/opt/$PN/web/log/production.log
dobin "${FILESDIR}"/warvox-launcher
}
pkg_postinst() {
elog "You need to configure a postgresql now. Execute following under root:"
elog " /opt/warvox/bin/verify_install.rb and follow instructions"
elog " cd /opt/warvox/web; RAILS_ENV=production rake db:migrate"
elog ""
elog "Start WarVOX with warvox-launcher"
elog "Login to http://127.0.0.1:7777/"
}