. 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.
This commit is contained in:
Boris Samorodov 2013-05-27 15:09:38 +00:00
parent 67639b9ad5
commit 6c5f241791
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319252
3 changed files with 12 additions and 12 deletions

View file

@ -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

View file

@ -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.

View file

@ -1,4 +0,0 @@
sbin/mgeupsd
sbin/powerhandler
etc/rc.d/mgeupsd.sh
man/man8/mgeupsd.8