Date: Wed, 30 Aug 2006 13:43:16 +0400 (MSD) From: Stanislav Sedov <ssedov@mbsd.msk.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/102686: [PATCH] devel/ruby-fam: make the port PREFIX clean, fix permissions, take maintainership Message-ID: <20060830094316.549F61147B@fonon.realnet> Resent-Message-ID: <200608300950.k7U9oJUb073840@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102686 >Category: ports >Synopsis: [PATCH] devel/ruby-fam: make the port PREFIX clean, fix permissions, take maintainership >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 30 09:50:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stanislav Sedov >Release: FreeBSD 7.0-CURRENT i386 >Organization: MBSD labs, Inc. >Environment: System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug 2 21:44:37 MSD >Description: - Make the port PREFIX clean - Garantee permissions safety - Take maintainership This PR depends on ports/102685 >How-To-Repeat: >Fix: --- ruby18-fam-0.1.4_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/ruby-fam/Makefile /var/tmp/ruby/ruby-fam/Makefile --- /usr/ports/devel/ruby-fam/Makefile Sat Feb 11 05:37:36 2006 +++ /var/tmp/ruby/ruby-fam/Makefile Wed Aug 30 11:51:38 2006 @@ -7,17 +7,18 @@ PORTNAME= fam PORTVERSION= 0.1.4 +PORTREVISION= 1 CATEGORIES= devel ruby MASTER_SITES= http://www.pablotron.org/download/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} DIST_SUBDIR= ruby -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ssedov@mbsd.msk.ru COMMENT= FAM bindings for Ruby USE_RUBY= yes -USE_RUBY_EXTCONF= yes +USE_RUBY_EXTCONF=yes USE_FAM= yes WANT_FAM_SYSTEM=fam @@ -25,14 +26,19 @@ DOCS= AUTHORS COPYING ChangeLog README doc event_codes.txt +# 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} - ${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/ ${MKDIR} ${RUBY_MODDOCDIR} -.for f in ${DOCS} - ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ -.endfor + ${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/ + @(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "${DOCS}" ${RUBY_MODDOCDIR}/) .endif .include <bsd.port.mk> diff -ruN --exclude=CVS /usr/ports/devel/ruby-fam/pkg-plist /var/tmp/ruby/ruby-fam/pkg-plist --- /usr/ports/devel/ruby-fam/pkg-plist Tue Jul 13 22:07:11 2004 +++ /var/tmp/ruby/ruby-fam/pkg-plist Wed Aug 30 11:57:59 2006 @@ -1,7 +1,4 @@ %%RUBY_SITEARCHLIBDIR%%/fam.so -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dirmon.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/famtest.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTDOCS%%%%RUBY_MODDOCDIR%%/AUTHORS %%PORTDOCS%%%%RUBY_MODDOCDIR%%/COPYING %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog @@ -41,6 +38,10 @@ %%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css %%PORTDOCS%%%%RUBY_MODDOCDIR%%/event_codes.txt +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/dirmon.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/famtest.rb +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTDOCS%%@dirrmtry %%RUBY_EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/Fam/Request.src %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/Fam/Event.src @@ -49,3 +50,8 @@ %%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 --- ruby18-fam-0.1.4_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060830094316.549F61147B>