1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

PR: 146455

Submitted by: Dax Labrador <semprix _at_ bsdmail.org>
Approved by:  glarkin (mentor)

dradis is an open source framework to enable effective information sharing.

dradis is a self-contained web application that provides a centralised
repository of information to keep track of what has been done so far,
and what is still ahead.

Features include:

    * Easy report generation.
    * Support for attachments.
    * Integration with existing systems and
      tools through server plugins.
    * Platform independent.

WWW: http://dradisframework.org/
This commit is contained in:
Olli Hauer 2010-08-12 20:51:33 +00:00
parent 17156e34e9
commit 168dd5ff9c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=259148
8 changed files with 3186 additions and 0 deletions

View File

@ -110,6 +110,7 @@
SUBDIR += donkey
SUBDIR += doorman
SUBDIR += doscan
SUBDIR += dradis
SUBDIR += dropbear
SUBDIR += drweb
SUBDIR += drweb-postfix

50
security/dradis/Makefile Normal file
View File

@ -0,0 +1,50 @@
# New ports collection makefile for: dradis
# Date created: 09 May 2010
# Whom: Dax Labrador <semprix@bsdmail.org>
#
# $FreeBSD$
#
PORTNAME= dradis
DISTVERSION= 2.5.2
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/v${PORTVERSION}
DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= semprix@bsdmail.org
COMMENT= Opensource framework to enable effective information gathering
RUN_DEPENDS= rubygem-sqlite3>=1.2.4:${PORTSDIR}/databases/rubygem-sqlite3 \
ruby18-wirble>=0.1.3:${PORTSDIR}/devel/ruby-wirble
LICENSE= GPLv2
USE_RC_SUBR= dradis
SUB_FILES= pkg-message
SUB_LIST= INSTDIR="${PREFIX}/${INSTDIR}" \
RUBY_CMD=${RUBY_WITHOUT_SUFFIX}
INSTDIR?= ${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-2.5
NO_BUILD= yes
USE_RUBY= yes
USE_RAKE= yes
DEPEND_RUBY_ICONV= yes
RUBY_NO_BUILD_DEPENDS= yes
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*(css|rb|txt|js|RELEASE_NOTES)$$
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/env ruby|${RUBY}|' ${WRKSRC}/server/script/server
@${CHOWN} -R root:wheel ${WRKSRC}/server
@${FIND} ${WRKSRC}/server -type f \( -name "*.bak" -o -name "*.orig" \) -delete
do-install:
@${MKDIR} ${PREFIX}/${PORTNAME}
@${CP} -Rp ${WRKSRC}/server ${PREFIX}/${PORTNAME}/
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

3
security/dradis/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (dradis-v2.5.2.tar.gz) = 95d8f510506e5f9dfb4543caeb2d32a2
SHA256 (dradis-v2.5.2.tar.gz) = 390cdb75c63d56cbc9e07db7cfbf54e0e5ce2a2abf90ed60070eb81c8b46676e
SIZE (dradis-v2.5.2.tar.gz) = 4749499

View File

@ -0,0 +1,46 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dradis
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dradis:
# dradis_enable="YES"
#
# Additional settings:
# dradis_bindip="127.0.0.1" # IP: default 120.0.0.1
# dradis_port="3004" # listen port: default 3004
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
. /etc/rc.subr
name=dradis
rcvar=`set_rcvar`
dradis_enable=${dradis_enable-"NO"}
dradis_bindip=${dradis_bindip-"127.0.0.1"}
dradis_port=${dradis_port-"3004"}
command=%%RUBY_CMD%%
start_cmd=dradis_start
sig_stop=INT
extra_commands="initdb"
initdb_cmd="dradis_initdb"
dradis_initdb()
{
cd %%INSTDIR%%/server && %%PREFIX%%/bin/rake dradis:reset
}
dradis_start()
{
%%RUBY_CMD%% %%INSTDIR%%/server/script/server -d -b ${dradis_bindip} -p ${dradis_port}
}
load_rc_config $name
run_rc_command "$1"

View File

@ -0,0 +1,17 @@
--- ./verify.sh.orig 2010-05-18 19:15:11.000000000 +0200
+++ ./verify.sh 2010-08-10 21:50:20.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# dradis Framework dependencies verification script
#
@@ -121,7 +121,7 @@
# verify SQLite3 libraries
echo -n "Looking for SQLite3 libraries... "
-ruby -rmkmf -e "if (have_header( 'sqlite3.h' ) && have_library( 'sqlite3', 'sqlite3_open' )) then exit 0 else exit 1 end" > /dev/null
+ruby -C /usr/local/include -rmkmf -e "if (have_header( 'sqlite3.h' ) && have_library( 'sqlite3', 'sqlite3_open' )) then exit 0 else exit 1 end" > /dev/null
if [ $? -eq 0 ]; then
echo "found."
else

View File

@ -0,0 +1,14 @@
================================================================
dradis uses SQLite as default database backend.
For other databases such as MySQL configure the file
%%PREFIX%%/dradis/server/config/database.yml
The (SQLite) database can be initialized with the command
%%PREFIX%%/etc/rc.d/dradis initdb
For more information see:
http://dradisframework.org/configure.html
================================================================

15
security/dradis/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
dradis is an open source framework to enable effective information sharing.
dradis is a self-contained web application that provides a centralised
repository of information to keep track of what has been done so far,
and what is still ahead.
Features include:
* Easy report generation.
* Support for attachments.
* Integration with existing systems and
tools through server plugins.
* Platform independent.
WWW: http://dradisframework.org/

3040
security/dradis/pkg-plist Normal file

File diff suppressed because it is too large Load Diff