aboutsummaryrefslogtreecommitdiff
path: root/security/dradis/Makefile
blob: eefa0f657ea9e08cc1f3cefdcf82f43cc65f4a81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# New ports collection makefile for:    dradis
# Date created:				09 May 2010
# Whom:					Dax Labrador <semprix@bsdmail.org>
#
# $FreeBSD$
#

PORTNAME=	dradis
DISTVERSION=	2.6.0
CATEGORIES=	security
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=${PORTNAME}/${PORTNAME}/v${DISTVERSION:R}
DISTNAME=	${PORTNAME}-v${PORTVERSION}

MAINTAINER=	semprix@bsdmail.org
COMMENT=	Opensource framework to enable effective information gathering

RUN_DEPENDS=	ruby18-gems>=1.3.6:${PORTSDIR}/devel/ruby-gems \
		ruby18-iconv>=1.8.7.302,1:${PORTSDIR}/converters/ruby-iconv \
		ruby18-wirble>=0.1.3:${PORTSDIR}/devel/ruby-wirble \
		rubygem-rake>=0.8.7:${PORTSDIR}/devel/rubygem-rake \
		rubygem-rails>=3.0.3:${PORTSDIR}/www/rubygem-rails \
		rubygem-activesupport>=3.0.2:${PORTSDIR}/devel/rubygem-activesupport \
		rubygem-bundler>=1.0.7:${PORTSDIR}/sysutils/rubygem-bundler \
		rubygem-redcloth>=4.2.0:${PORTSDIR}/www/rubygem-redcloth \
		rubygem-sqlite3>=1.3.2:${PORTSDIR}/databases/rubygem-sqlite3

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}-${DISTVERSION:R}

NO_BUILD=	yes
USE_RUBY=	yes
RUBY_SHEBANG_FILES=	server/script/rails server/script/delayed_job
RUBY_NO_BUILD_DEPENDS=	yes

USE_DOS2UNIX=	yes
DOS2UNIX_REGEX=	.*(css|rb|txt|js|RELEASE_NOTES)$$

pre-install:
	@${FIND} ${WRKSRC}/server -type f \( -name "*.bak" -o -name "*.orig" -o -name "*.swp" \) -delete

do-install:
	@${MKDIR} ${PREFIX}/${PORTNAME}
	@( cd ${WRKSRC} && ${COPYTREE_SHARE} server ${PREFIX}/${PORTNAME}/ )

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>