Date: Mon, 27 May 2013 15:09:38 +0000 (UTC) From: Boris Samorodov <bsam@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319252 - in head/sysutils/mgeupsd: . files Message-ID: <201305271509.r4RF9cO2038241@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bsam Date: Mon May 27 15:09:38 2013 New Revision: 319252 URL: http://svnweb.freebsd.org/changeset/ports/319252 Log: . trim Makefile headers; . capitalise the first letter at COMMENT; . add PLIST_FILES and MAN8; . remove pkg-plist (4 lines); . do not hard code gcc at the source Makefile, build with the default compiler and allow a compiler to be redefined; . the same for CFLAGS; . make use SUB_FILES=pkg-message and enhance pkg-message. Added: head/sysutils/mgeupsd/files/pkg-message.in - copied, changed from r319244, head/sysutils/mgeupsd/pkg-message Deleted: head/sysutils/mgeupsd/pkg-message head/sysutils/mgeupsd/pkg-plist Modified: head/sysutils/mgeupsd/Makefile Modified: head/sysutils/mgeupsd/Makefile ============================================================================== --- head/sysutils/mgeupsd/Makefile Mon May 27 14:38:07 2013 (r319251) +++ head/sysutils/mgeupsd/Makefile Mon May 27 15:09:38 2013 (r319252) @@ -1,9 +1,5 @@ -# Ports collection makefile for: mgeupsd -# Date created: 12 Aug 1999 -# Whom: Andreas Dobloug <andreasd@@ifi.uio.no> -# +# Created by: Andreas Dobloug <andreasd@@ifi.uio.no> # $FreeBSD$ -# PORTNAME= mgeupsd PORTVERSION= 0.3 @@ -13,11 +9,19 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= system/ups MAINTAINER= ports@FreeBSD.org -COMMENT= monitor a state of MGE Pulsar UPS connected to RS-232 port +COMMENT= Monitor a state of MGE Pulsar UPS connected to RS-232 port USE_GMAKE= YES WRKSRC= ${WRKDIR}/MGE +PLIST_FILES= sbin/mgeupsd sbin/powerhandler etc/rc.d/mgeupsd.sh +MAN8= mgeupsd.8 +SUB_FILES= pkg-message + +post-patch: + @${REINPLACE_CMD} -e '/^CC=/s:gcc:${CC}:' \ + -e '/^CFLAGS=/s:-Wall -O2:${CFLAGS}:' ${WRKSRC}/Makefile + post-install: ${INSTALL_SCRIPT} ${FILESDIR}/mgeupsd.sh ${PREFIX}/etc/rc.d ${INSTALL_SCRIPT} ${FILESDIR}/powerhandler ${PREFIX}/sbin Copied and modified: head/sysutils/mgeupsd/files/pkg-message.in (from r319244, head/sysutils/mgeupsd/pkg-message) ============================================================================== --- head/sysutils/mgeupsd/pkg-message Mon May 27 13:59:05 2013 (r319244, copy source) +++ head/sysutils/mgeupsd/files/pkg-message.in Mon May 27 15:09:38 2013 (r319252) @@ -1,6 +1,6 @@ -A configuration file has been installed in ${PREFIX}/etc/rc.d/mgeupsd.sh. +A configuration file has been installed in %%PREFIX%%/etc/rc.d/mgeupsd.sh. Examine it to make sure it is suitable for your system. A sample script that handles the various power messages has been placed in -${PREFIX}/sbin/powerhandler. You will probably want to edit it to suit +%%PREFIX%%/sbin/powerhandler. You will probably want to edit it to suit your particular needs.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305271509.r4RF9cO2038241>