From owner-freebsd-ports@FreeBSD.ORG Fri Nov 9 17:53:18 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 42425B35 for ; Fri, 9 Nov 2012 17:53:18 +0000 (UTC) (envelope-from prvs=65329adc8=pschmehl_lists@tx.rr.com) Received: from ip-001.utdallas.edu (ip-001.utdallas.edu [129.110.20.107]) by mx1.freebsd.org (Postfix) with ESMTP id 020E38FC08 for ; Fri, 9 Nov 2012 17:53:17 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnUHAJJCnVCBbgogOmdsb2JhbABEswSQVgEBAQEZCIMoAoFjGhOICpxQhliaaZF9YQOIWo49kjQ X-IronPort-AV: E=Sophos;i="4.80,746,1344229200"; d="scan'208";a="106334100" Received: from zxtm01.utdallas.edu (HELO [129.110.200.11]) ([129.110.10.32]) by ip-001.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Nov 2012 11:53:12 -0600 Date: Fri, 09 Nov 2012 11:53:04 -0500 From: Paul Schmehl To: FreeBSD Ports List Subject: Building a ruby-based port Message-ID: X-Mailer: Mulberry/4.1.0a1 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=2455 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2012 17:53:18 -0000 I'm working on a new port (snorby), and it requires ruby. I've never built a ruby-based port before and confess total ignorance of how ruby works and how freebsd ports can use ruby to install software. I've looked at the Porter's Handbook, but it's very little help. I've pored over /usr/ports/Mk/bsd.ruby.mk and think I have a decent grasp of it. I've been using www/tdiary as a template to help me understand how ruby ports work. But am at a point where I have no clue what to do next. This software says to build it like this (): cd snorby && bundle install This assumes ruby and ruby gems is installed properly. If bundler is not found `gem install bundler` Huh? All the prerequisites built fine. I'm at the point where I need to type make install clean, but what the heck do I do to install it? Here's the (admittedly incomplete) Makefile: # $FreeBSD$ PORTNAME= snorby PORTVERSION= 2.5.3 CATEGORIES= security www MAINTAINER= pauls@utdallas.edu COMMENT= Frontend for snort LICENSE= GPLv3 USE_GITHUB= yes GH_ACCOUNT= Snorby GH_PROJECT= ${PORTNAME} GH_TAGNAME= master GH_COMMIT= 8b97843 OPTIONS_DEFINE= IMAGEMAGICK SNORT SURICATA IMAGEMAGICK_DESC= Install Imagemagick with X11 support SNORT_DESC= Depend on Snort SURICATA_DESC= Depend on Suricata RUN_DEPENDS= wkhtmltopdf:${PORTSDIR}/converters/wkhtmltopdf \ rubygem-rails>=3:${PORTSDIR}/www/rubygem-rails NO_BUILD= yes USE_RUBY= yes RUBY_REQUIRE= Ruby >= 192 USE_RUBY_GEMS= yes RUBYGEM_AUTOPLIST= yes RUBY_SHEBANG_FILES= script/delayed_job \ script/rails MD= ChangeLog.md README.md PORTDOCS= ${MD} SUB_FILES= pkg-message .include .if ${PORT_OPTIONS:MIMAGEMAGICK} RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick .else RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick-nox11 .endif .if ${PORT_OPTIONS:MSNORT} RUN_DEPENDS+= snort:${PORTSDIR}/security/snort .endif .if ${PORT_OPTIONS:MSURICATA} RUN_DEPENDS+= suricata:${PORTSDIR}/security/suricata .endif # @${CAT} ${PKGMESSAGE} .include -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell