From owner-svn-ports-all@FreeBSD.ORG Mon May 27 15:09:39 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 75974D61; Mon, 27 May 2013 15:09:39 +0000 (UTC) (envelope-from bsam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5DC93F; Mon, 27 May 2013 15:09:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4RF9dUA038245; Mon, 27 May 2013 15:09:39 GMT (envelope-from bsam@svn.freebsd.org) Received: (from bsam@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4RF9cO2038241; Mon, 27 May 2013 15:09:38 GMT (envelope-from bsam@svn.freebsd.org) Message-Id: <201305271509.r4RF9cO2038241@svn.freebsd.org> From: Boris Samorodov Date: Mon, 27 May 2013 15:09:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319252 - in head/sysutils/mgeupsd: . 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.14 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: Mon, 27 May 2013 15:09:39 -0000 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 -# +# Created by: Andreas Dobloug # $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.