summaryrefslogtreecommitdiff
path: root/security/ruby-password/Makefile
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2006-10-03 13:20:15 +0000
committerStanislav Sedov <stas@FreeBSD.org>2006-10-03 13:20:15 +0000
commita4c3b3b69d973561bfd056fc746d7e658cedb198 (patch)
treecd608b038e87d313994c563c51bf5dd12531e33a /security/ruby-password/Makefile
parent- Update to 0.9.7 (diff)
- Update to 0.5.3
- PREFIX safety - Take maintainership Approved by: sem (mentor)
Notes
Notes: svn path=/head/; revision=174366
Diffstat (limited to 'security/ruby-password/Makefile')
-rw-r--r--security/ruby-password/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/security/ruby-password/Makefile b/security/ruby-password/Makefile
index 36f23482ea33..3f1f05ef2127 100644
--- a/security/ruby-password/Makefile
+++ b/security/ruby-password/Makefile
@@ -6,22 +6,23 @@
#
PORTNAME= password
-PORTVERSION= 0.5.2
+PORTVERSION= 0.5.3
CATEGORIES= security ruby
MASTER_SITES= http://www.caliban.org/files/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stas@FreeBSD.org
COMMENT= A Ruby library to create, verify and manipulate passwords
BUILD_DEPENDS= ${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
-RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/termios.so:${PORTSDIR}/comms/ruby-termios
+RUN_DEPENDS= ${LOCALBASE}/${SADIR}/termios.so:${PORTSDIR}/comms/ruby-termios
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
RUBY_SHEBANG_FILES= example/*
+SADIR= lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
CONFIGURE_ARGS= --with-crack-dict="${LOCALBASE}/libdata/cracklib/pw_dict.pwd"
INSTALL_TARGET= site-install
@@ -31,16 +32,18 @@ MANCOMPRESSED= no
DOCS_EN= CHANGES README
+post-patch:
+ @${REINPLACE_CMD} -E -e 's,([^[:alpha:]]+)crack.h,\1packer.h,g' \
+ ${WRKSRC}/rbcrack.c ${WRKSRC}/extconf.rb
+
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/example/pwgen ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/pwgen.1 ${MANPREFIX}/man/man1/
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/example/*.rb ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
-.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/example/*.rb ${RUBY_MODEXAMPLESDIR}/
+ ${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/
.endif
.include <bsd.port.mk>