a813079932
Thoroughly unsubtle, most mkdir -p should probably be INSTALL* at *install stage, and echo/ECHO_MSG is somewhat unsorted. It's quite possible I missed a few automated changes...
33 lines
819 B
Makefile
33 lines
819 B
Makefile
# New ports collection makefile for: apc-upsd
|
|
# Date created: 28 Dec 1999
|
|
# Whom: Kevin Lo <kevlo@openbsd.org>
|
|
#
|
|
# $OpenBSD: Makefile,v 1.3 2000/02/11 01:10:12 espie Exp $
|
|
#
|
|
|
|
DISTNAME= apc-upsd
|
|
PKGNAME= apc-upsd
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.knienieder.com/software/
|
|
NEED_VERSION= 1.191
|
|
|
|
MAINTAINER= kevlo@openbsd.org
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
WRKDIST= ${WRKDIR}/${PKGNAME}/src
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/apc-upsd ${PREFIX}/sbin
|
|
|
|
post-install:
|
|
@mkdir -p ${PREFIX}/share/doc/apc-upsd
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/smart-protocol ${PREFIX}/share/doc/apc-upsd
|
|
|
|
if [ ! -f /etc/apc-upsd.conf ] ; then \
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
|
${WRKSRC}/apc-upsd.conf /etc/apc-upsd.conf; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|