Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2013 09:28:36 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315954 - head/sysutils/spiped
Message-ID:  <201304170928.r3H9SaTN036096@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cperciva
Date: Wed Apr 17 09:28:35 2013
New Revision: 315954
URL: http://svnweb.freebsd.org/changeset/ports/315954

Log:
  Fix documentation install.  Respect ${PREFIX} for installing binaries.
  
  Reported by:    Jimmy Olgeni
  Feature safe:	yes

Modified:
  head/sysutils/spiped/Makefile

Modified: head/sysutils/spiped/Makefile
==============================================================================
--- head/sysutils/spiped/Makefile	Wed Apr 17 09:26:39 2013	(r315953)
+++ head/sysutils/spiped/Makefile	Wed Apr 17 09:28:35 2013	(r315954)
@@ -2,6 +2,7 @@
 
 PORTNAME=	spiped
 PORTVERSION=	1.3.1
+PORTREVISION=	1
 CATEGORIES=	sysutils security
 MASTER_SITES=	http://www.tarsnap.com/spiped/
 EXTRACT_SUFX=	.tgz
@@ -16,6 +17,9 @@ LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 MAKE_ARGS=	MAN1DIR=${MANPREFIX}/man/man1
 MAN1=		spiped.1 spipe.1
 
+# Binaries go into ${PREFIX}/bin
+MAKE_ARGS+=	BINDIR=${PREFIX}/bin
+
 # Force __BSD_VISIBLE on since it works and improves performance
 MAKE_ARGS+=	CFLAGS="-O2 -D__BSD_VISIBLE"
 
@@ -24,10 +28,12 @@ PLIST_FILES=	bin/spiped bin/spipe
 
 USE_RC_SUBR=	spiped
 
+.include <bsd.port.options.mk>
+
 post-install:
-.if defined(PORT_OPTIONS:MDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-	(cd ${WRKSRC} && ${INSTALL_MAN} ${DOCFILES} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR})
 .endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304170928.r3H9SaTN036096>