From dfd4a475b86c7ed5ad1f668b182af7acfcd37002 Mon Sep 17 00:00:00 2001 From: vanilla Date: Fri, 15 Nov 2013 15:25:56 +0000 Subject: Support STAGEDIR. --- sysutils/mgeupsd/Makefile | 29 +++++++++++++---------------- sysutils/mgeupsd/files/patch-ab | 34 +++++++++++++--------------------- 2 files changed, 26 insertions(+), 37 deletions(-) (limited to 'sysutils/mgeupsd') diff --git a/sysutils/mgeupsd/Makefile b/sysutils/mgeupsd/Makefile index 6567f8defec1..a9e987eaa05c 100644 --- a/sysutils/mgeupsd/Makefile +++ b/sysutils/mgeupsd/Makefile @@ -1,31 +1,28 @@ # Created by: Andreas Dobloug # $FreeBSD$ -PORTNAME= mgeupsd -PORTVERSION= 0.3 +PORTNAME= mgeupsd +PORTVERSION= 0.3 PORTREVISION= 1 -CATEGORIES= sysutils -MASTER_SITES= ${MASTER_SITE_SUNSITE} +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= system/ups -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Monitor a state of MGE Pulsar UPS connected to RS-232 port -USE_GMAKE= YES -WRKSRC= ${WRKDIR}/MGE +USES= gmake +WRKSRC= ${WRKDIR}/MGE -PLIST_FILES= sbin/mgeupsd sbin/powerhandler etc/rc.d/mgeupsd.sh -MAN8= mgeupsd.8 -SUB_FILES= pkg-message +PLIST_FILES= man/man8/${PORTNAME}.8.gz sbin/mgeupsd sbin/powerhandler etc/rc.d/mgeupsd.sh +SUB_FILES= pkg-message -NO_STAGE= yes post-patch: - @${REINPLACE_CMD} -e '/^CC=/s:gcc:${CC}:' \ - -e '/^CFLAGS=/s:-Wall -O2:${CFLAGS}:' ${WRKSRC}/Makefile + @${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 - @${CAT} ${PKGMESSAGE} + ${INSTALL_SCRIPT} ${FILESDIR}/mgeupsd.sh ${STAGEDIR}${PREFIX}/etc/rc.d + ${INSTALL_SCRIPT} ${FILESDIR}/powerhandler ${STAGEDIR}${PREFIX}/sbin .include diff --git a/sysutils/mgeupsd/files/patch-ab b/sysutils/mgeupsd/files/patch-ab index d472e7cce2cf..bddb25818bca 100644 --- a/sysutils/mgeupsd/files/patch-ab +++ b/sysutils/mgeupsd/files/patch-ab @@ -1,21 +1,13 @@ -*** Makefile.orig Fri Dec 25 10:10:57 1998 ---- Makefile Tue Aug 10 23:36:12 1999 -*************** -*** 8,15 **** - $(CC) $(LDFLAGS) -o $@ $< - - install: mgeupsd -! install mgeupsd /sbin -! install mgeupsd.8 /usr/man/man8 - - clean: - rm -f *.o mgeupsd ---- 8,15 ---- - $(CC) $(LDFLAGS) -o $@ $< - - install: mgeupsd -! install -c mgeupsd ${PREFIX}/sbin -! install -c mgeupsd.8 ${PREFIX}/man/man8 - - clean: - rm -f *.o mgeupsd +--- Makefile.orig 1998-12-25 17:10:57.000000000 +0800 ++++ Makefile 2013-11-15 23:04:20.000000000 +0800 +@@ -8,8 +8,8 @@ mgeupsd: mgeupsd.o + $(CC) $(LDFLAGS) -o $@ $< + + install: mgeupsd +- install mgeupsd /sbin +- install mgeupsd.8 /usr/man/man8 ++ install -c mgeupsd $(DESTDIR)${PREFIX}/sbin ++ install -c mgeupsd.8 $(DESTDIR)${PREFIX}/man/man8 + + clean: + rm -f *.o mgeupsd -- cgit