diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-07 23:47:28 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-07 23:47:28 +0800 |
commit | 5a27db83ecc5c7ef91bbc039684e6282c527cf5c (patch) | |
tree | ddc2ef4d89729c44a6489cdbb224a825ee4d4564 /security | |
parent | 436628b3352dd20f3cdeec2817621cca7cdbc79d (diff) | |
download | freebsd-ports-gnome-5a27db83ecc5c7ef91bbc039684e6282c527cf5c.tar.gz freebsd-ports-gnome-5a27db83ecc5c7ef91bbc039684e6282c527cf5c.tar.zst freebsd-ports-gnome-5a27db83ecc5c7ef91bbc039684e6282c527cf5c.zip |
Support stage
Diffstat (limited to 'security')
-rw-r--r-- | security/ruby-password/Makefile | 27 | ||||
-rw-r--r-- | security/ruby-password/pkg-plist | 8 |
2 files changed, 15 insertions, 20 deletions
diff --git a/security/ruby-password/Makefile b/security/ruby-password/Makefile index 863ccacc1ca3..0761f7fd311c 100644 --- a/security/ruby-password/Makefile +++ b/security/ruby-password/Makefile @@ -13,7 +13,8 @@ DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org COMMENT= A Ruby library to create, verify, and manipulate passwords -LIB_DEPENDS= crack:${PORTSDIR}/security/cracklib +OPTIONS_DEFINE= DOCS EXAMPLES +LIB_DEPENDS= libcrack.so:${PORTSDIR}/security/cracklib RUN_DEPENDS= rubygem-ruby-termios>=0:${PORTSDIR}/comms/rubygem-ruby-termios USE_RUBY= yes @@ -23,25 +24,25 @@ SADIR= lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH} CONFIGURE_ARGS= --with-crack-dict="${LOCALBASE}/libdata/cracklib/pw_dict.pwd" INSTALL_TARGET= site-install - -MAN1= ruby-pwgen.1 -MANCOMPRESSED= no +MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" DOCS_EN= CHANGES README +EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} +DOCSDIR= ${RUBY_MODDOCDIR} +PORTEXAMPLES= * +PORTDOCS= * -NO_STAGE= yes 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/ruby-pwgen - ${INSTALL_MAN} ${WRKSRC}/pwgen.1 ${MANPREFIX}/man/man1/ruby-pwgen.1 -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${MKDIR} ${RUBY_MODDOCDIR} - ${INSTALL_DATA} ${WRKSRC}/example/*.rb ${RUBY_MODEXAMPLESDIR}/ - ${INSTALL_DATA} ${DOCS_EN:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}/ -.endif + ${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}/ .include <bsd.port.mk> diff --git a/security/ruby-password/pkg-plist b/security/ruby-password/pkg-plist index 0b218f1ccf3f..04a20c2de733 100644 --- a/security/ruby-password/pkg-plist +++ b/security/ruby-password/pkg-plist @@ -1,10 +1,4 @@ bin/ruby-pwgen +man/man1/ruby-pwgen.1.gz %%RUBY_SITEARCHLIBDIR%%/crack.so %%RUBY_SITELIBDIR%%/password.rb -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGES -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/example.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% -%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% -%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%% |