summaryrefslogtreecommitdiff
path: root/sysutils/upsmon/Makefile
blob: b90a449114d052b9c621d774a6cd7ccfe13a0d94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:	upsmon
# Version required:	2.1.3
# Date created:		5 Oct 1998
# Whom:			Igor Vinokurov <igor@zynaps.ru>
#
# $Id: Makefile,v 1.1.1.1 1998/11/24 22:43:40 billf Exp $
#

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>