Date: Fri, 9 Jul 2004 17:33:08 +0200 (CEST) From: Rob Evers <rob@debank.tv> To: FreeBSD-gnats-submit@FreeBSD.org Cc: leeym@FreeBSD.org Subject: ports/68868: Set default config file for mail/razor-agents Message-ID: <20040709153308.7B57C538C@flappie.debank.tv> Resent-Message-ID: <200407091540.i69FeJKU090768@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68868 >Category: ports >Synopsis: Set default config file for mail/razor-agents >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 09 15:40:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Rob Evers >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD flappie.debank.tv 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun Feb 29 20:35:15 CET 2004 rob@flappie.debank.tv:/usr/obj/usr/src/sys/FLAPPIE i386 >Description: Set default config file for mail/razor-agents The default place to look for the config file was in /etc/razor, this patch changes that to ${PREFIX}/etc and installs a config file in that location. >How-To-Repeat: >Fix: New files: files/razor-agent.conf --- razor-agents.patch begins here --- diff -ruN razor-agents.orig/Makefile razor-agents/Makefile --- razor-agents.orig/Makefile Fri Jul 9 07:51:12 2004 +++ razor-agents/Makefile Fri Jul 9 17:20:29 2004 @@ -7,6 +7,7 @@ PORTNAME= razor-agents PORTVERSION= 2.61 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= razor @@ -27,10 +28,20 @@ Razor2::Syslog.3 MAN5= razor-agents.5 razor-whitelist.5 razor-agent.conf.5 +SED_SCRIPT= -e 's|/etc/razor|${PREFIX}/etc|g' + post-patch: @${FIND} ${WRKSRC} -name "*.orig" -delete +pre-build: + @${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/lib/Razor2/Client/Agent.pm + @${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/docs/* + @${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/Changes + @${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/INSTALL + post-install: + @[ -f ${PREFIX}/etc/razor-agent.conf ] || \ + ${CP} ${FILESDIR}/razor-agent.conf ${PREFIX}/etc/ @${PREFIX}/bin/razor-client .include <bsd.port.pre.mk> diff -ruN razor-agents.orig/files/razor-agent.conf razor-agents/files/razor-agent.conf --- razor-agents.orig/files/razor-agent.conf Thu Jan 1 01:00:00 1970 +++ razor-agents/files/razor-agent.conf Fri Jul 9 16:37:51 2004 @@ -0,0 +1 @@ +debuglevel = 3 --- razor-agents.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040709153308.7B57C538C>