From owner-freebsd-ports Sun Apr 28 19:10:14 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 41FD637B41A for ; Sun, 28 Apr 2002 19:10:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3T2A5C07552; Sun, 28 Apr 2002 19:10:05 -0700 (PDT) (envelope-from gnats) Received: from shrike.dti.ad.jp (shrike.dti.ad.jp [202.216.228.218]) by hub.freebsd.org (Postfix) with ESMTP id 68EC537B416 for ; Sun, 28 Apr 2002 19:05:10 -0700 (PDT) Received: from kikyou.m.ayame.com (PPP2147.tokyo-ip.dti.ne.jp [211.132.71.149]) by shrike.dti.ad.jp (1.01) with ESMTP id g3T258D25163 for ; Mon, 29 Apr 2002 11:05:08 +0900 (JST) Received: by kikyou.m.ayame.com (Postfix, from userid 1001) id AC4D279C6; Mon, 29 Apr 2002 11:05:07 +0900 (JST) Message-Id: <20020429020507.AC4D279C6@kikyou.m.ayame.com> Date: Mon, 29 Apr 2002 11:05:07 +0900 (JST) From: MOROHOSHI Akihiko Reply-To: MOROHOSHI Akihiko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/37548: make mail/rblcheck friendly to portupdate. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 >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