mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
8e8a1c8bfc
script for placement into /usr/local/etc/rc.d PR: 21517 Submitted by: Stephen Beitzel <sbeitzel@mumble.foobie.net>
33 lines
838 B
Makefile
33 lines
838 B
Makefile
# New ports collection makefile for: upsd
|
|
# Date created: 11 Jul 1996
|
|
# Whom: alexis
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= upsd
|
|
PORTVERSION= 2.0.1.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.rge.com/pub/admin/upsd/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
WRKSRC= ${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
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/upsd.sh ]; then \
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/upsd.sh startup file."; \
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/upsd.sh ${PREFIX}/etc/rc.d/upsd.sh; \
|
|
fi
|
|
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>
|