From root@cyberbotx.com  Sun Oct  2 19:14:40 2011
Return-Path: <root@cyberbotx.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8419E1065670
	for <freebsd-gnats-submit@freebsd.org>; Sun,  2 Oct 2011 19:14:40 +0000 (UTC)
	(envelope-from root@cyberbotx.com)
Received: from qmta14.westchester.pa.mail.comcast.net (qmta14.westchester.pa.mail.comcast.net [76.96.59.212])
	by mx1.freebsd.org (Postfix) with ESMTP id 35E898FC12
	for <freebsd-gnats-submit@freebsd.org>; Sun,  2 Oct 2011 19:14:39 +0000 (UTC)
Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74])
	by qmta14.westchester.pa.mail.comcast.net with comcast
	id fu4v1h0021c6gX85EvEgPt; Sun, 02 Oct 2011 19:14:40 +0000
Received: from kirby.cyberbotx.com ([69.244.146.119])
	by omta23.westchester.pa.mail.comcast.net with comcast
	id fvEf1h00W2anbQt3jvEfLn; Sun, 02 Oct 2011 19:14:40 +0000
Received: by kirby.cyberbotx.com (Postfix, from userid 0)
	id 4A3B628440; Sun,  2 Oct 2011 15:14:38 -0400 (EDT)
Message-Id: <20111002191438.4A3B628440@kirby.cyberbotx.com>
Date: Sun,  2 Oct 2011 15:14:38 -0400 (EDT)
From: Naram Qashat <cyberbotx@cyberbotx.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: pawel@FreeBSD.org
Subject: [PATCH] sysutils/gsmartcontrol: Fix patching if NOPORTDOCS is enabled
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         161245
>Category:       ports
>Synopsis:       [PATCH] sysutils/gsmartcontrol: Fix patching if NOPORTDOCS is enabled
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pawel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 02 19:20:10 UTC 2011
>Closed-Date:    Sun Oct 02 20:35:51 UTC 2011
>Last-Modified:  Sun Oct  2 20:40:06 UTC 2011
>Originator:     Naram Qashat
>Release:        FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD kirby.cyberbotx.com 8.2-RELEASE FreeBSD 8.2-RELEASE #3: Sun Feb 27 08:58:31 EST 2011
>Description:
- Fix patching if NOPORTDOCS is enabled.

Port maintainer (pawel@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- gsmartcontrol-0.8.6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/sysutils/gsmartcontrol/files/extra-Makefile.in /kirby/shared/ports/gsmartcontrol/files/extra-Makefile.in
--- /usr/ports/sysutils/gsmartcontrol/files/extra-Makefile.in	2009-03-27 17:53:43.000000000 -0400
+++ /kirby/shared/ports/gsmartcontrol/files/extra-Makefile.in	2011-10-02 15:09:24.000000000 -0400
@@ -1,32 +1,40 @@
---- ./Makefile.in.orig	2009-03-23 18:59:37.000000000 +0100
-+++ Makefile.in	2009-03-26 17:34:55.000000000 +0100
-@@ -328,14 +328,6 @@
+--- Makefile.in.orig	2011-10-02 15:08:20.000000000 -0400
++++ Makefile.in	2011-10-02 15:09:08.000000000 -0400
+@@ -379,17 +379,6 @@
  compilation_flags: $(top_builddir)/config.status $(srcdir)/compilation_flags.in
  	cd $(top_builddir) && $(SHELL) ./config.status $@
  install-dist_docDATA: $(dist_doc_DATA)
 -	@$(NORMAL_INSTALL)
 -	test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
--	@list='$(dist_doc_DATA)'; for p in $$list; do \
+-	@list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \
+-	for p in $$list; do \
 -	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
--	  f=$(am__strip_dir) \
--	  echo " $(dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
--	  $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
+-	  echo "$$d$$p"; \
+-	done | $(am__base_list) | \
+-	while read files; do \
+-	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
+-	  $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
 -	done
  
  uninstall-dist_docDATA:
  	@$(NORMAL_UNINSTALL)
-@@ -345,15 +337,6 @@
- 	  rm -f "$(DESTDIR)$(docdir)/$$f"; \
- 	done
+@@ -399,20 +388,6 @@
+ 	echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
+ 	cd "$(DESTDIR)$(docdir)" && rm -f $$files
  install-nobase_dist_docDATA: $(nobase_dist_doc_DATA)
 -	@$(NORMAL_INSTALL)
 -	test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
--	@$(am__vpath_adj_setup) \
--	list='$(nobase_dist_doc_DATA)'; for p in $$list; do \
--	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
--	  $(am__vpath_adj) \
--	  echo " $(nobase_dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
--	  $(nobase_dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
+-	@list='$(nobase_dist_doc_DATA)'; test -n "$(docdir)" || list=; \
+-	$(am__nobase_list) | while read dir files; do \
+-	  xfiles=; for file in $$files; do \
+-	    if test -f "$$file"; then xfiles="$$xfiles $$file"; \
+-	    else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
+-	  test -z "$$xfiles" || { \
+-	    test "x$$dir" = x. || { \
+-	      echo "$(MKDIR_P) '$(DESTDIR)$(docdir)/$$dir'"; \
+-	      $(MKDIR_P) "$(DESTDIR)$(docdir)/$$dir"; }; \
+-	    echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(docdir)/$$dir'"; \
+-	    $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(docdir)/$$dir" || exit $$?; }; \
 -	done
  
  uninstall-nobase_dist_docDATA:
--- gsmartcontrol-0.8.6.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pawel 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Oct 2 19:20:24 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161245 
State-Changed-From-To: open->closed 
State-Changed-By: pawel 
State-Changed-When: Sun Oct 2 20:35:49 UTC 2011 
State-Changed-Why:  
I`ve come up with less invasive patch. Thanks for reporting! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=161245 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/161245: commit references a PR
Date: Sun,  2 Oct 2011 20:34:54 +0000 (UTC)

 pawel       2011-10-02 20:34:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/gsmartcontrol/files extra-Makefile.in 
   Log:
   Fix patching if NOPORTDOCS is enabled
   
   PR:             ports/161245 (patch not used)
   Submitted by:   Naram Qashat <cyberbotx@cyberbotx.com>
   Approved by:    miwi, wen (mentors implicit)
   
   Revision  Changes    Path
   1.2       +9 -31     ports/sysutils/gsmartcontrol/files/extra-Makefile.in
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
