From owner-svn-ports-all@FreeBSD.ORG Fri May 30 20:47:58 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53A548CE; Fri, 30 May 2014 20:47:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40F262EBD; Fri, 30 May 2014 20:47:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4UKlwHe070142; Fri, 30 May 2014 20:47:58 GMT (envelope-from ohauer@svn.freebsd.org) Received: (from ohauer@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4UKlvaH070139; Fri, 30 May 2014 20:47:57 GMT (envelope-from ohauer@svn.freebsd.org) Message-Id: <201405302047.s4UKlvaH070139@svn.freebsd.org> From: Olli Hauer Date: Fri, 30 May 2014 20:47:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r355912 - in head/sysutils/healthd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 20:47:58 -0000 Author: ohauer Date: Fri May 30 20:47:57 2014 New Revision: 355912 URL: http://svnweb.freebsd.org/changeset/ports/355912 QAT: https://qat.redports.org/buildarchive/r355912/ Log: - add stage support - move post-install hint into pkg-message - move port from apache@ to ports@ (port it is not apache@ related) Added: head/sysutils/healthd/files/pkg-message.in (contents, props changed) Modified: head/sysutils/healthd/Makefile head/sysutils/healthd/pkg-plist Modified: head/sysutils/healthd/Makefile ============================================================================== --- head/sysutils/healthd/Makefile Fri May 30 20:45:07 2014 (r355911) +++ head/sysutils/healthd/Makefile Fri May 30 20:47:57 2014 (r355912) @@ -6,48 +6,35 @@ PORTVERSION= 0.7.9 PORTREVISION= 2 CATEGORIES= sysutils ipv6 MASTER_SITES= http://healthd.thehousleys.net/ \ - http://healthd1.thehousleys.net/ + LOCAL/ohauer -MAINTAINER= apache@FreeBSD.org -COMMENT= A daemon to monitor vital motherboard parameters +MAINTAINER= ports@FreeBSD.org +COMMENT= Daemon to monitor vital motherboard parameters + +LICENSE= BSD2CLAUSE OPTIONS_DEFINE= IPV6 FULL_CONFIG -NO_STAGE= yes -.include -FULL_CONFIG_DESC= Remotely reading the full config +FULL_CONFIG_DESC= Remotely reading the full config +IPV6_CONFIGURE_ENABLE= ipv6 +FULL_CONFIG_CONFIGURE_ENABLE= full-config + +.include ONLY_FOR_ARCHS= i386 amd64 USE_RC_SUBR= ${PORTNAME} GNU_CONFIGURE= yes -CONFIGURE_ARGS= --exec-prefix=${PREFIX} - -MAN8= healthd.8 healthdc.8 +CONFIGURE_ARGS+=--exec-prefix=${PREFIX} INSTALL_TARGET= install-all +SUB_FILES= pkg-message -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.else -CONFIGURE_ARGS+= --disable-ipv6 -.endif - -.if ${PORT_OPTIONS:MFULL_CONFIG} -CONFIGURE_ARGS+= --enable-full-config -.else -CONFIGURE_ARGS+= --disable-full-config -.endif +post-patch: + ${REINPLACE_CMD} -e 's| @exec_prefix@| $$(DESTDIR)@exec_prefix@|' \ + ${WRKSRC}/Makefile.in post-install: - @if [ ! -f ${PREFIX}/etc/healthd.conf ]; then \ - ${ECHO} "Installing ${PREFIX}/etc/healthd.conf configuration file."; \ - ${ECHO} "It is recommended you edit this file to match your system"; \ - ${ECHO} "before running the program."; \ - ${CP} ${PREFIX}/etc/healthd.conf.sample ${PREFIX}/etc/healthd.conf; \ - fi -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${DOCSDIR}/ -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${STAGEDIR}${DOCSDIR} .include Added: head/sysutils/healthd/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/healthd/files/pkg-message.in Fri May 30 20:47:57 2014 (r355912) @@ -0,0 +1,2 @@ +It is recommended to edit %%PREFIX%%/etc/healthd.conf +so it match the monitored system before running the program. Modified: head/sysutils/healthd/pkg-plist ============================================================================== --- head/sysutils/healthd/pkg-plist Fri May 30 20:45:07 2014 (r355911) +++ head/sysutils/healthd/pkg-plist Fri May 30 20:47:57 2014 (r355912) @@ -1,8 +1,8 @@ bin/healthdc +@sample etc/healthd.conf.sample +man/man8/healthd.8.gz +man/man8/healthdc.8.gz sbin/healthd -@unexec if cmp -s %D/etc/healthd.conf %D/etc/healthd.conf.sample; then rm -f %D/etc/healthd.conf; fi -etc/healthd.conf.sample -@exec if [ ! -f %D/etc/healthd.conf ]; then cp -p %D/%F %B/healthd.conf; fi -%%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/PROTOCOL +%%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%@dirrm %%DOCSDIR%%