aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/mgeupsd
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2013-11-15 23:25:56 +0800
committervanilla <vanilla@FreeBSD.org>2013-11-15 23:25:56 +0800
commitdfd4a475b86c7ed5ad1f668b182af7acfcd37002 (patch)
tree20fbe8868a1fe547d080c245fa4424657eb5c06b /sysutils/mgeupsd
parent94416c1855e1428f781367d897530c6b71333b9c (diff)
downloadfreebsd-ports-gnome-dfd4a475b86c7ed5ad1f668b182af7acfcd37002.tar.gz
freebsd-ports-gnome-dfd4a475b86c7ed5ad1f668b182af7acfcd37002.tar.zst
freebsd-ports-gnome-dfd4a475b86c7ed5ad1f668b182af7acfcd37002.zip
Support STAGEDIR.
Diffstat (limited to 'sysutils/mgeupsd')
-rw-r--r--sysutils/mgeupsd/Makefile29
-rw-r--r--sysutils/mgeupsd/files/patch-ab34
2 files changed, 26 insertions, 37 deletions
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 <andreasd@@ifi.uio.no>
# $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 <bsd.port.mk>
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