Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 17:38:21 -0500 (EST)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        knu@freebsd.org
Subject:   ports/35432: sysutils/portupgrade: portsclean does not honor EXTRA_CATEGORIES in pkgtools.conf
Message-ID:  <200202282238.g1SMcLu92377@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         35432
>Category:       ports
>Synopsis:       sysutils/portupgrade: portsclean does not honor EXTRA_CATEGORIES in pkgtools.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 28 14:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Feb 8 21:25:34 EST 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386

>Description:

I added an entry 'local' to EXTRA_CATEGORIES.

[alane ~/FreeBSD/ports/sysutils/portupgrade]$ grep -A5 EXTRA_CAT /usr/local/etc/pkgtools.conf
  # EXTRA_CATEGORIES: array
  #
  # This is a list of extra port categories you put your locally
  # maintained ports.  You must prepare a Makefile in each directory
  # that defines a variable SUBDIR which lists all the ports in the
  # category.
--
  #   EXTRA_CATEGORIES = [
  #     'local',
  #   ]

  EXTRA_CATEGORIES = [
        'local',
  ]

  # HOLD_PKGS: array
  #

I have created a Makefile in $PORTSDIR/local as directed above.

[alane ~]$ cd $PORTSDIR/local
[alane ~/FreeBSD/ports/local]$ grep -C SUBDIR Makefile
#

SUBDIR+=        aft
SUBDIR+=        compface
SUBDIR+=        durep
SUBDIR+=        grip-devel
SUBDIR+=        ncdialog
SUBDIR+=        p5-PDA-pilot

#

I have a port called grip-devel in $PORTSDIR/local/grip-devel. It's distfile
is grip-2.98.7.tar.gz.

[alane ~]$ cd $PORTSDIR/local/grip-devel
[alane ~/FreeBSD/ports/local/grip-devel]$ head -20 Makefile
# New ports collection makefile for:    grip
# Date created:                         31 May 2000
# Whom:                                 kbyanc@posi.net
#
# $FreeBSD$
#

PORTNAME=       grip
PORTVERSION=    2.98.7
#PORTREVISION=  1
CATEGORIES=     audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=grip
PKGNAMESUFFIX=  -devel

MAINTAINER=     ports@geeksrus.net

LIB_DEPENDS=    id3-3.7.13:${PORTSDIR}/audio/id3lib \
                ghttp.1:${PORTSDIR}/www/libghttp

When I run portsclean -D, it removes $DISTDIR/grip-2.98.7.tar.gz.

[alane ~]$ cp -p grip-2.98.7.tar.gz FreeBSD/distfiles/
[alane ~]$ portsclean -D
Detecting unreferenced distfiles...
Delete /home/alane/FreeBSD/distfiles/grip-2.98.7.tar.gz

>How-To-Repeat:

>Fix:



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202282238.g1SMcLu92377>