svn commit: r359774 - in head/sysutils/tbku: . files

Vanilla I. Shu vanilla at FreeBSD.org
Sun Jun 29 15:25:12 UTC 2014


Author: vanilla
Date: Sun Jun 29 15:25:11 2014
New Revision: 359774
URL: http://svnweb.freebsd.org/changeset/ports/359774
QAT: https://qat.redports.org/buildarchive/r359774/

Log:
  1: Stagify.
  2: use options helper to handle PORTDOCS.
  
  Approved by:	portmgr@ (blanket approval)

Added:
  head/sysutils/tbku/files/
  head/sysutils/tbku/files/patch-Makefile   (contents, props changed)
Modified:
  head/sysutils/tbku/Makefile

Modified: head/sysutils/tbku/Makefile
==============================================================================
--- head/sysutils/tbku/Makefile	Sun Jun 29 15:21:20 2014	(r359773)
+++ head/sysutils/tbku/Makefile	Sun Jun 29 15:25:11 2014	(r359774)
@@ -9,16 +9,19 @@ MASTER_SITES=	http://www.tundraware.com/
 MAINTAINER=	tbku at tundraware.com
 COMMENT=	A Tool For Incremental And Imaging Backups
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in WHATSNEW.txt tbku-license.txt tbku.html tbku.pdf tbku.ps tbku.txt \
 	Imaging-FreeBSD-With-tbku.txt     Imaging-FreeBSD-With-tbku.html \
 	Imaging-FreeBSD-With-tbku.pdf     Imaging-FreeBSD-With-tbku.ps  \
 	Imaging-SUSE-Linux-With-tbku.txt  Imaging-SUSE-Linux-With-tbku.html \
 	Imaging-SUSE-Linux-With-tbku.pdf  Imaging-SUSE-Linux-With-tbku.ps
-	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 .endif
 

Added: head/sysutils/tbku/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/tbku/files/patch-Makefile	Sun Jun 29 15:25:11 2014	(r359774)
@@ -0,0 +1,12 @@
+--- Makefile.orig	2014-06-29 23:22:47.157452107 +0800
++++ Makefile	2014-06-29 23:23:00.688449516 +0800
+@@ -2,7 +2,7 @@
+ # $Id: Makefile,v 1.102 2008/03/19 23:05:08 tundra Exp $
+ 
+ install:
+-	${BSD_INSTALL_SCRIPT} tbku   ${PREFIX}/bin
+-	${BSD_INSTALL_MAN}    tbku.1.gz ${PREFIX}/man/cat1
++	${BSD_INSTALL_SCRIPT} tbku   $(DESTDIR)${PREFIX}/bin
++	${BSD_INSTALL_MAN}    tbku.1.gz $(DESTDIR)${PREFIX}/man/cat1
+ 
+ all:  # Nothing to do here


More information about the svn-ports-head mailing list