1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Permissions safety

- Prefix-cleaness
- Take maintainership
This commit is contained in:
Stanislav Sedov 2006-11-29 10:41:36 +00:00
parent 34750e0725
commit a197d9dfad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178240
2 changed files with 21 additions and 12 deletions

View File

@ -14,7 +14,7 @@ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
MAINTAINER= stas@FreeBSD.org
COMMENT= A Ruby library that provides access to Freedb/CDDB servers
USE_RUBY= yes
@ -25,16 +25,19 @@ INSTALL_TARGET= site-install
DOCS= CHANGELOG README doc
EXAMPLES= examples/*.rb
# XXX: exists untill it will be committed to bsd.port.mk
COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
2>&1) && \
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${RUBY_MODEXAMPLESDIR}/
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "${DOCS}" ${RUBY_MODDOCDIR}/)
.endif
.include <bsd.port.mk>

View File

@ -1,8 +1,5 @@
%%RUBY_SITEARCHLIBDIR%%/freedb_cdrom.so
%%RUBY_SITELIBDIR%%/freedb.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cd-disc.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdinfo.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%RUBY_SITEARCHLIBDIR%%/freedb_cdrom.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGELOG
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/blank.html
@ -23,9 +20,18 @@
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_method_index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cd-disc.rb
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cdinfo.rb
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files/lib
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/Freedb.src
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
%%PORTDOCS%%@dirrmtry %%RUBY_DOCDIR%%
@dirrmtry %%RUBY_SITEARCHLIBDIR%%
@dirrmtry %%RUBY_SITELIBDIR%%
@dirrmtry lib/ruby/site_ruby
@dirrmtry lib/ruby