1998-02-25 16:46:25 +00:00
|
|
|
# New ports collection makefile for: upsd
|
|
|
|
# Version required: 2.0.1.6
|
|
|
|
# Date created: 11 Jul 1996
|
|
|
|
# Whom: alexis
|
|
|
|
#
|
1998-07-03 23:40:27 +00:00
|
|
|
# $Id: Makefile,v 1.1.1.1 1998/02/25 16:46:22 steve Exp $
|
1998-02-25 16:46:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= upsd-2.0.1.6
|
|
|
|
PKGNAME= upsd-2.0
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ftp://www.ww.net/pub/wildwind/upsd/ \
|
|
|
|
http://www.cre8tivegroup.com/ \
|
|
|
|
ftp://ftp.sw.ru/pub/unix/upsd/
|
|
|
|
|
|
|
|
MAINTAINER= alexis@ww.net
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/upsd-2.0
|
|
|
|
|
|
|
|
pre-build:
|
1998-07-03 23:40:27 +00:00
|
|
|
@${MV} ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
|
|
|
|
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
|
1998-02-25 16:46:25 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
|
|
|
${FILESDIR}/upsd.conf ${PREFIX}/etc/upsd.conf; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|