From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 3 10:10:02 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 833AE37B401 for ; Thu, 3 Apr 2003 10:10:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64AC443FAF for ; Thu, 3 Apr 2003 10:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h33IA1Up093304 for ; Thu, 3 Apr 2003 10:10:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h33IA1bQ093303; Thu, 3 Apr 2003 10:10:01 -0800 (PST) Resent-Date: Thu, 3 Apr 2003 10:10:01 -0800 (PST) Resent-Message-Id: <200304031810.h33IA1bQ093303@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Semenyaka Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53B4037B401 for ; Thu, 3 Apr 2003 10:04:10 -0800 (PST) Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3324143F75 for ; Thu, 3 Apr 2003 10:04:09 -0800 (PST) (envelope-from root@snark.ratmir.ru) Received: from snark.ratmir.ru (smmsp@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.9/8.12.9) with ESMTP id h33I47DR099914 for ; Thu, 3 Apr 2003 22:04:07 +0400 (MSD) (envelope-from root@snark.ratmir.ru) Received: (from root@localhost) by snark.ratmir.ru (8.12.9/8.12.9/Submit) id h33I47H8099913; Thu, 3 Apr 2003 22:04:07 +0400 (MSD) Message-Id: <200304031804.h33I47H8099913@snark.ratmir.ru> Date: Thu, 3 Apr 2003 22:04:07 +0400 (MSD) From: Alex Semenyaka To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/50572: Simlifying the work with Debian packages storage X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Semenyaka List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 18:10:02 -0000 >Number: 50572 >Category: ports >Synopsis: Simlifying the work with Debian packages storage >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 03 10:10:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alex Semenyaka >Release: FreeBSD 4.8-RC i386 >Organization: Ratmir >Environment: System: FreeBSD snark.ratmir.ru 4.8-RC FreeBSD 4.8-RC #7: Sun Mar 30 07:23:48 MSD 2003 root@snark.ratmir.ru:/usr/obj/usr/src/sys/SNARK i386 >Description: If we are going to fetch something from of the sites listed as MASTER_SITE_DEBIAN we need to set up subdarictory manually to /main/pool// The principle of this path every time is the same so it is easy to automate this. >How-To-Repeat: N/A >Fix: I propose to add new variable, DEBIAN_POOL. If this variable is defined in the port Makefile and the variable MASTER_SITE_SUBDIR is not defined the last one will be set to proper path as deswcribed above. The patch to the bsd.port.mk is short and simple: --- bsd.port.mk.old Thu Apr 3 21:34:23 2003 +++ bsd.port.mk Thu Apr 3 21:55:51 2003 @@ -92,2 +92,7 @@ # choices of ${MASTER_SITES} defined in bsd.sites.mk. +# DEBIAN_POOL - Specify that MASTER_SITE_SUBDIR should be formed by +# the Debian storage rules +# (/pool/main///). Only guarateed +# to work if MASTER_SITES is set to +# ${MASTER_SITE_DEBIAN} # PATCHFILES - Name(s) of additional files that contain distribution @@ -1689,2 +1694,8 @@ .endfor + +# Form ${MASTER_SITE_SUBDIR} if not defined if deal with Debian packets storage +# and ${DEBIAN_POOL} is defined +.if defined(DEBIAN_POOL) && !defined(MASTER_SITE_SUBDIR) +MASTER_SITE_SUBDIR= pool/main/${DISTNAME:C/${DISTNAME:C/.//}//}/${PORTNAME} +.endif >Release-Note: >Audit-Trail: >Unformatted: