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:
parent
4c338b08a1
commit
74d96100ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11697
@ -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 \
|
||||
|
@ -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"
|
||||
|
9
sysutils/upsd/files/patch-ac
Normal file
9
sysutils/upsd/files/patch-ac
Normal 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"
|
Loading…
Reference in New Issue
Block a user