diff options
author | bsam <bsam@FreeBSD.org> | 2013-05-27 23:09:38 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-05-27 23:09:38 +0800 |
commit | 273d23114019a52c51cf7ff993df95b60d7cb212 (patch) | |
tree | ae552b563ee288d2c833e573d04b4fe370d708a6 | |
parent | 7766a1f2e681b661c2f7061e12fa1a9bd5224f36 (diff) | |
download | freebsd-ports-gnome-273d23114019a52c51cf7ff993df95b60d7cb212.tar.gz freebsd-ports-gnome-273d23114019a52c51cf7ff993df95b60d7cb212.tar.zst freebsd-ports-gnome-273d23114019a52c51cf7ff993df95b60d7cb212.zip |
. 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.
-rw-r--r-- | sysutils/mgeupsd/Makefile | 16 | ||||
-rw-r--r-- | sysutils/mgeupsd/files/pkg-message.in (renamed from sysutils/mgeupsd/pkg-message) | 4 | ||||
-rw-r--r-- | sysutils/mgeupsd/pkg-plist | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sysutils/mgeupsd/Makefile b/sysutils/mgeupsd/Makefile index 163258d0a62e..7cfcd72b332e 100644 --- a/sysutils/mgeupsd/Makefile +++ b/sysutils/mgeupsd/Makefile @@ -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 diff --git a/sysutils/mgeupsd/pkg-message b/sysutils/mgeupsd/files/pkg-message.in index 6b7ebc3d95ce..cb1d3f3f0bb2 100644 --- a/sysutils/mgeupsd/pkg-message +++ b/sysutils/mgeupsd/files/pkg-message.in @@ -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. diff --git a/sysutils/mgeupsd/pkg-plist b/sysutils/mgeupsd/pkg-plist deleted file mode 100644 index 828a80368cf9..000000000000 --- a/sysutils/mgeupsd/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -sbin/mgeupsd -sbin/powerhandler -etc/rc.d/mgeupsd.sh -man/man8/mgeupsd.8 |