34 lines
905 B
Makefile
34 lines
905 B
Makefile
# New ports collection makefile for: upsd
|
|
# Version required: 2.0.1.6
|
|
# Date created: 22 Nov 1999
|
|
# Whom: Kevin Lo <kevlo@openbsd.org>
|
|
#
|
|
# $OpenBSD: Makefile,v 1.9 2000/06/27 08:15:58 kevlo Exp $
|
|
#
|
|
|
|
DISTNAME= upsd-2.0.1.6
|
|
PKGNAME= upsd-2.0
|
|
CATEGORIES= sysutils
|
|
NEED_VERSION= 1.307
|
|
MASTER_SITES= http://www.cre8tivegroup.com/
|
|
|
|
MAINTAINER= kevlo@openbsd.org
|
|
|
|
PERMIT_PACKAGE_CDROM= "missing license"
|
|
PERMIT_PACKAGE_FTP= "missing license"
|
|
PERMIT_DISTFILES_CDROM= "missing license"
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/upsd-2.0
|
|
|
|
pre-build:
|
|
@mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
|
|
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/upsd
|
|
${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/lib/upsd/upsd.conf.sample
|
|
|
|
.include <bsd.port.mk>
|