Date: Thu, 3 Apr 2003 22:04:07 +0400 (MSD) From: Alex Semenyaka <alexs@snark.ratmir.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50572: Simlifying the work with Debian packages storage Message-ID: <200304031804.h33I47H8099913@snark.ratmir.ru> Resent-Message-ID: <200304031810.h33IA1bQ093303@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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/<first-letter-of-the-package-name>/<package-name> 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/<letter>/<name>/). 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304031804.h33I47H8099913>