1998-11-24 23:43:40 +01:00
|
|
|
# New ports collection makefile for: upsmon
|
|
|
|
# Date created: 5 Oct 1998
|
|
|
|
# Whom: Igor Vinokurov <igor@zynaps.ru>
|
|
|
|
#
|
1999-08-31 04:00:46 +02:00
|
|
|
# $FreeBSD$
|
1998-11-24 23:43:40 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 21:09:11 +02:00
|
|
|
PORTNAME= upsmon
|
2000-04-22 12:14:11 +02:00
|
|
|
PORTVERSION= 2.1.3
|
1998-11-24 23:43:40 +01:00
|
|
|
CATEGORIES= sysutils
|
2007-12-20 17:00:51 +01:00
|
|
|
MASTER_SITES= ftp://ftp.dinoex.de/pub/experiment/ \
|
|
|
|
ftp://newcorridor.com/pub/upsmon/
|
1998-11-24 23:43:40 +01:00
|
|
|
|
2003-08-21 00:04:34 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Basic UPS monitor for the APC SmartUPS devices
|
1998-11-24 23:43:40 +01:00
|
|
|
|
|
|
|
MAKEFILE= makefile.bsdi
|
2006-09-03 03:20:33 +02:00
|
|
|
RESTRICTED= "must provide without modifications"
|
1998-11-24 23:43:40 +01:00
|
|
|
|
|
|
|
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
|
1999-08-22 21:01:07 +02:00
|
|
|
@${CHMOD} +x ${PREFIX}/etc/rc.d/upsmon.sh
|
1998-11-24 23:43:40 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-24 03:17:17 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
1998-11-24 23:43:40 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2000-10-08 12:23:48 +02:00
|
|
|
${SED} -e 's#/usr/local#${PREFIX}#' ${PKGMESSAGE}
|
1998-11-24 23:43:40 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|