1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/sysutils/mgeupsd/Makefile
2021-04-06 16:31:07 +02:00

27 lines
707 B
Makefile

# Created by: Andreas Dobloug <andreasd@@ifi.uio.no>
PORTNAME= mgeupsd
PORTVERSION= 0.3
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SUNSITE/system/ups
MAINTAINER= ports@FreeBSD.org
COMMENT= Monitor a state of MGE Pulsar UPS connected to RS-232 port
USES= gmake
WRKSRC= ${WRKDIR}/MGE
PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/mgeupsd sbin/powerhandler etc/rc.d/mgeupsd.sh
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 ${STAGEDIR}${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${FILESDIR}/powerhandler ${STAGEDIR}${PREFIX}/sbin
.include <bsd.port.mk>