ports/50572: Simlifying the work with Debian packages storage
Alex Semenyaka
alexs at snark.ratmir.ru
Thu Apr 3 18:10:02 UTC 2003
>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 at 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:
More information about the freebsd-ports-bugs
mailing list