summaryrefslogtreecommitdiff
path: root/sysutils/upsmon/Makefile
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1998-11-24 22:43:40 +0000
committerBill Fumerola <billf@FreeBSD.org>1998-11-24 22:43:40 +0000
commit4a23f30b9f6bf28846683644707c6c6415bef4f4 (patch)
treebcbb1d124acc6f37f34c8e50917b3affdcf8a139 /sysutils/upsmon/Makefile
parentAdd in one more part. (diff)
Initial import of ports/sysutils/upsmon
Designed specifically for the APC SmartUPS devices, the software is dependent on the SmartUPS interface and will only function with SmartUPS devices. Essentially, this is a simpler version of upsd.
Notes
Notes: svn path=/head/; revision=14877
Diffstat (limited to 'sysutils/upsmon/Makefile')
-rw-r--r--sysutils/upsmon/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/upsmon/Makefile b/sysutils/upsmon/Makefile
new file mode 100644
index 000000000000..f69080539fcc
--- /dev/null
+++ b/sysutils/upsmon/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: upsmon
+# Version required: 2.1.3
+# Date created: 5 Oct 1998
+# Whom: Igor Vinokurov <igor@zynaps.ru>
+#
+# $Id: $
+#
+
+DISTNAME= upsmon-2.1.3
+CATEGORIES= sysutils
+MASTER_SITES= ftp://newcorridor.com/pub/upsmon/
+
+MAINTAINER= ports@FreeBSD.org
+
+MAKEFILE= makefile.bsdi
+NO_PACKAGE= "must provide without modifications"
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/upsstat ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/upsmond ${PREFIX}/sbin
+
+ ${SED} -e 's#!!PREFIX!!#${PREFIX}#g' ${FILESDIR}/upsmon.sh \
+ > ${PREFIX}/etc/rc.d/upsmon.sh
+ @chmod +x ${PREFIX}/etc/rc.d/upsmon.sh
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/upsmon
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/upsmon
+.endif
+
+post-install:
+ ${SED} -e 's#/usr/local#${PREFIX}#' ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>