From 0fbb5009b294c2b7cb8cefa526a7df81ed3f20c7 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 6 Jun 1995 10:56:34 +0000 Subject: Renamed the default package repository ".../packages/.packages" to ".../packages/All". The "all" category that was automatically added for every package is gone. Note that bsd.port.mk requires category names to start with lowercase names, otherwise it may get confused. Reviewed by: jkh By the way, here is a small script to convert your local package hierarchy. Run it in bash, as /bin/sh not only will bark at the $(.) command substitution but will also botch the [a-z]*/*.tgz expansion (long-standing and annoying bug, reported before). cd /usr/ports/packages mv .packages All for i in [a-z]*/*.tgz; do j=$(basename $i) /bin/rm $i ln -s ../All/$j $i done --- share/mk/bsd.port.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'share/mk/bsd.port.mk') diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index a840cdd2a768..ef9df00c5ed8 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.163 1995/05/16 10:31:25 asami Exp $ +# $Id: bsd.port.mk,v 1.164 1995/05/29 13:46:38 asami Exp $ # # Please view me with 4 column tabs! @@ -305,10 +305,11 @@ PKGNAME?= ${DISTNAME} # Documentation MAINTAINER?= ports@FreeBSD.ORG CATEGORIES?= orphans -CATEGORIES+= all KEYWORDS+= ${CATEGORIES} -PKGREPOSITORYSUBDIR?= .packages +# Note this has to start with a capital letter (or more accurately, it +# shouldn't match "[a-z]*"), see the target "delete-package-links" below. +PKGREPOSITORYSUBDIR?= All PKGREPOSITORY?= ${PACKAGES}/${PKGREPOSITORYSUBDIR} .if exists(${PACKAGES}) PKGFILE?= ${PKGREPOSITORY}/${PKGNAME}${PKG_SUFX} @@ -975,7 +976,7 @@ package-links: .if !target(delete-package-links) delete-package-links: - @rm -f ${PACKAGES}/*/${PKGNAME}${PKG_SUFX}; + @rm -f ${PACKAGES}/[a-z]*/${PKGNAME}${PKG_SUFX}; .endif .if !target(delete-package) -- cgit v1.2.3