svn commit: r421226 - head/misc/timediff

Carlos J. Puga Medina cpm at FreeBSD.org
Thu Sep 1 14:25:24 UTC 2016


Author: cpm
Date: Thu Sep  1 14:25:22 2016
New Revision: 421226
URL: https://svnweb.freebsd.org/changeset/ports/421226

Log:
  - Really fix Makefile
  
  Reported by:	mat

Modified:
  head/misc/timediff/Makefile

Modified: head/misc/timediff/Makefile
==============================================================================
--- head/misc/timediff/Makefile	Thu Sep  1 14:14:44 2016	(r421225)
+++ head/misc/timediff/Makefile	Thu Sep  1 14:25:22 2016	(r421226)
@@ -3,7 +3,7 @@
 
 PORTNAME=	timediff
 PORTVERSION=	0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	misc
 
 MAINTAINER=	naito.yuichiro at gmail.com
@@ -20,8 +20,14 @@ PLIST_FILES=	sbin/timediff
 NO_ARCH=	yes
 NO_BUILD=	yes
 
+do-patch:
+.for file in timediff
+	${SED} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/${file} \
+	  > ${WRKDIR}/${file:T}
+.endfor
+
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/timediff \
+	${INSTALL_SCRIPT} ${WRKDIR}/timediff \
 	    ${STAGEDIR}${PREFIX}/sbin
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list