1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/security/dradis/Makefile
Torsten Zuehlsdorff f127d56108 security/dradis: fix Gemfile patch
The port was broken because it needs Rails 3.0.4. It now accepts the
current version 3.2.22.2 and the new rubygem RedCloth version

Approved by: swills (mentor)
2016-08-10 14:19:04 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Dax Labrador <semprix@bsdmail.org>
# $FreeBSD$
PORTNAME= dradis
PORTREVISION= 2
DISTVERSIONPREFIX= v
DISTVERSION= 2.6.1
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/v${PORTVERSION}
MAINTAINER= semprix@gmx.com
COMMENT= Opensource framework to enable effective information gathering
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${LOCALBASE}/bin/gem:devel/ruby-gems \
${RUBY_SITELIBDIR}/wirble.rb:devel/ruby-wirble \
rubygem-rake>=0.8.7:devel/rubygem-rake \
rubygem-rails>=3.0.5:www/rubygem-rails \
rubygem-activesupport>=3.0.2:devel/rubygem-activesupport \
rubygem-bundler>=1.0.7:sysutils/rubygem-bundler \
rubygem-redcloth>=4.2.7:www/rubygem-redcloth \
rubygem-sqlite3>=1.3.2:databases/rubygem-sqlite3
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_ARCH= yes
NO_BUILD= yes
USE_RUBY= yes
USES= shebangfix
SHEBANG_FILES= server/script/rails server/script/delayed_job
RUBY_NO_BUILD_DEPENDS= yes
USES= dos2unix
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} ${STAGEDIR}${PREFIX}/${PORTNAME}
( cd ${WRKSRC} && ${COPYTREE_SHARE} server ${STAGEDIR}${PREFIX}/${PORTNAME}/ )
.include <bsd.port.mk>