Date: Mon, 29 Apr 2002 11:05:07 +0900 (JST) From: MOROHOSHI Akihiko <moro@remus.dti.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/37548: make mail/rblcheck friendly to portupdate. Message-ID: <20020429020507.AC4D279C6@kikyou.m.ayame.com>
next in thread | raw e-mail | index | archive | help
>Number: 37548 >Category: ports >Synopsis: make mail/rblcheck friendly to portupdate. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 28 19:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: MOROHOSHI Akihiko <moro@remus.dti.ne.jp> >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD kikyou.m.ayame.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Apr 15 23:52:34 JST 2002 moro@kikyou.m.ayame.com:/home/tmp/obj/home/stable/src/sys/KIKYOU i386 >Description: mail/rblcheck allows pre-configure rbl sites by ${WRKDIRPREFIX}/${.CURDIR}/local.sites, but the location is a bit insecure especially if WRKDIRPREFIX is defined and administrator sometimes erases all files under ${WRKDIRPREFIX}. Make the file selectable by the administrator to allow administrator to write in his /etc/make.conf as: .if ${.CURDIR} == ${PORTSDIR}/mail/rblcheck LOCAL_RBL_SITES= /etc/rbl_sites.local .endif or so. >How-To-Repeat: >Fix: diff -u /usr/ports/mail/rblcheck/Makefile.orig /usr/ports/mail/rblcheck/Makefile --- /usr/ports/mail/rblcheck/Makefile.orig Sat Aug 25 06:11:48 2001 +++ /usr/ports/mail/rblcheck/Makefile Mon Apr 29 10:28:58 2002 @@ -14,11 +14,13 @@ MAINTAINER= leeym@leeym.com +LOCAL_RBL_SITES?= ${WRKDIRPREFIX}${.CURDIR}/local.sites + post-configure: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.rbl .if !defined(BATCH) @${ECHO} "NOTE: You can pre-compile your own sites into rblcheck by" - @${ECHO} " creating ${WRKDIRPREFIX}${.CURDIR}/local.sites. The" + @${ECHO} " creating ${LOCAL_RBL_SITES}. The" @${ECHO} " format of this file is:" @${ECHO} @${ECHO} " SITE(\"my.rbl.site\")" @@ -26,8 +28,8 @@ .endif pre-build: -.if exists(${WRKDIRPREFIX}${.CURDIR}/local.sites) - ${CAT} ${WRKDIRPREFIX}${.CURDIR}/local.sites >> ${WRKSRC}/rblsites.h +.if exists(${LOCAL_RBL_SITES}) + ${CAT} ${LOCAL_RBL_SITES} >> ${WRKSRC}/rblsites.h .endif do-install: Diff finished at Mon Apr 29 11:00:22 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020429020507.AC4D279C6>