Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 16:46:41 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336005 - head/misc/dphys-config
Message-ID:  <201312091646.rB9GkfMP090860@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Dec  9 16:46:41 2013
New Revision: 336005
URL: http://svnweb.freebsd.org/changeset/ports/336005

Log:
  - Add stage support

Modified:
  head/misc/dphys-config/Makefile
  head/misc/dphys-config/pkg-plist   (contents, props changed)

Modified: head/misc/dphys-config/Makefile
==============================================================================
--- head/misc/dphys-config/Makefile	Mon Dec  9 16:41:34 2013	(r336004)
+++ head/misc/dphys-config/Makefile	Mon Dec  9 16:46:41 2013	(r336005)
@@ -14,28 +14,22 @@ RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget
 
 NO_BUILD=	yes
 
-MAN1=		dphys-config.1
-
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
-	${MKDIR} ${EXAMPLESDIR}/site.example/local/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/dphys-config.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin
 .for f in dphys-config.example cron.d.example init.d.example
-	${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 	${INSTALL_DATA} ${WRKSRC}/site.example/${PORTNAME}* \
-		${EXAMPLESDIR}/site.example/
+		${STAGEDIR}${EXAMPLESDIR}/site.example/
 	${INSTALL_DATA} ${WRKSRC}/site.example/local/sbin/${PORTNAME}-* \
-		${EXAMPLESDIR}/site.example/local/sbin/
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}.sample
-.if !exists(${PREFIX}/etc/${PORTNAME})
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}
-.endif
+		${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin/
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.sample
 
 .include <bsd.port.mk>

Modified: head/misc/dphys-config/pkg-plist
==============================================================================
--- head/misc/dphys-config/pkg-plist	Mon Dec  9 16:41:34 2013	(r336004)
+++ head/misc/dphys-config/pkg-plist	Mon Dec  9 16:46:41 2013	(r336005)
@@ -1,8 +1,8 @@
-@comment $FreeBSD$
 bin/dphys-config
 @unexec if cmp -s %D/etc/dphys-config %D/etc/dphys-config.sample; then rm -f %D/etc/dphys-config; fi
 etc/dphys-config.sample
 @exec [ -f %B/dphys-config ] || cp %B/%f %B/dphys-config
+man/man1/dphys-config.1.gz
 %%EXAMPLESDIR%%/cron.d.example
 %%EXAMPLESDIR%%/dphys-config.example
 %%EXAMPLESDIR%%/init.d.example



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