2013-06-23 04:15:09 +02:00
|
|
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
2002-09-19 22:05:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= password
|
2006-10-03 15:20:15 +02:00
|
|
|
PORTVERSION= 0.5.3
|
2014-09-05 22:19:04 +02:00
|
|
|
PORTREVISION= 5
|
2002-09-19 22:05:56 +02:00
|
|
|
CATEGORIES= security ruby
|
|
|
|
MASTER_SITES= http://www.caliban.org/files/ruby/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2011-11-01 23:59:35 +01:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2014-07-17 10:57:51 +02:00
|
|
|
COMMENT= Ruby library to create, verify, and manipulate passwords
|
2002-09-19 22:05:56 +02:00
|
|
|
|
2014-04-07 17:47:28 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
LIB_DEPENDS= libcrack.so:${PORTSDIR}/security/cracklib
|
2011-06-26 05:21:27 +02:00
|
|
|
RUN_DEPENDS= rubygem-ruby-termios>=0:${PORTSDIR}/comms/rubygem-ruby-termios
|
2002-09-19 22:05:56 +02:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
2004-04-18 19:25:51 +02:00
|
|
|
RUBY_SHEBANG_FILES= example/*
|
2006-10-03 15:20:15 +02:00
|
|
|
SADIR= lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
|
2002-09-19 22:05:56 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --with-crack-dict="${LOCALBASE}/libdata/cracklib/pw_dict.pwd"
|
|
|
|
INSTALL_TARGET= site-install
|
2014-04-07 17:47:28 +02:00
|
|
|
MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}"
|
2004-04-18 19:25:51 +02:00
|
|
|
|
|
|
|
DOCS_EN= CHANGES README
|
2014-04-07 17:47:28 +02:00
|
|
|
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
|
|
|
|
DOCSDIR= ${RUBY_MODDOCDIR}
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
PORTDOCS= *
|
2002-09-19 22:05:56 +02:00
|
|
|
|
2006-10-03 15:20:15 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E -e 's,([^[:alpha:]]+)crack.h,\1packer.h,g' \
|
|
|
|
${WRKSRC}/rbcrack.c ${WRKSRC}/extconf.rb
|
|
|
|
|
2002-09-19 22:05:56 +02:00
|
|
|
post-install:
|
2014-04-07 17:47:28 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/example/pwgen ${STAGEDIR}${PREFIX}/bin/ruby-pwgen
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pwgen.1 ${STAGEDIR}${MANPREFIX}/man/man1/ruby-pwgen.1
|
|
|
|
@${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/example/*.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
|
|
|
|
${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODDOCDIR}/
|
2002-09-19 22:05:56 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|