1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Get the location of upsd.conf correct.

PR:		7114
This commit is contained in:
Steve Price 1998-07-03 23:40:27 +00:00
parent 4c338b08a1
commit 74d96100ed
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11697
3 changed files with 13 additions and 4 deletions

View File

@ -3,7 +3,7 @@
# Date created: 11 Jul 1996
# Whom: alexis
#
# $Id$
# $Id: Makefile,v 1.1.1.1 1998/02/25 16:46:22 steve Exp $
#
DISTNAME= upsd-2.0.1.6
@ -18,8 +18,8 @@ MAINTAINER= alexis@ww.net
WRKSRC= ${WRKDIR}/upsd-2.0
pre-build:
@${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h
@${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/upsd.conf ] ; then \

View File

@ -5,7 +5,7 @@
#ifndef DEBUG
-#define _PATH_UPSD_CONF "/etc/upsd.conf"
+#define _PATH_UPSD_CONF "@prefix@/upsd.conf"
+#define _PATH_UPSD_CONF "@prefix@/etc/upsd.conf"
#define _PATH_UPSD_PID "/var/run/upsd.pid"
#else
#define _PATH_UPSD_CONF "sample/upsd.conf"

View File

@ -0,0 +1,9 @@
--- upsd.h.orig Fri Jul 3 13:52:01 1998
+++ upsd.h Fri Jul 3 13:52:21 1998
@@ -206,5 +206,5 @@
#define TERMINATE kill(getpid(), SIGTERM)
-#include "config.h"
+#include "conf.h"
#include "proto.h"