Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2005 17:19:29 GMT
From:      Victor Semionov <semionov@mail.bg>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/89730: New port: sysutils/pkg-orphan A console utility for managing unreferenced FreeBSD packages
Message-ID:  <200511291719.jATHJTZ5045898@www.freebsd.org>
Resent-Message-ID: <200511291720.jATHK2ZU070367@freefall.freebsd.org>

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

>Number:         89730
>Category:       ports
>Synopsis:       New port: sysutils/pkg-orphan A console utility for managing unreferenced FreeBSD packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 29 17:20:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Victor Semionov
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
FreeBSD neon.devian.bg 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sun Nov  6 21:40:27 EET 2005     root@neon.devian.bg:/usr/obj/usr/src/sys/NEONKERN  i386
>Description:
pkg-orphan is a console utility for managing orphan, i.e. unreferenced FreeBSD
packages. It finds all or selected orphans and lets the user choose which ones
to remove and which ones to keep. It maintains a keep-list file, so previously
kept packages will be skipped automatically. In batch mode, all packages, not
present in the keep-list are either deleted or kept in the list.

Since orphan packages are usually much fewer than non-orphan ones, it can be
useful for quickly finding and deleting unused packages, even on a system with
hundreds of them installed.

Features:
 - interactive and batch modes
 - maintains a kept package list, to avoid asking for the same package again
 - can delete packages recursively, but without deleting shared dependencies or
   previously kept packages
 - the keep-list file does not contain package versions, so upgrades generally
   don't require editing of the file

WWW: http://sourceforge.net/projects/pkg-orphan/

- Victor Semionov
semionov@mail.bg

>How-To-Repeat:
              
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pkg-orphan
#	pkg-orphan/Makefile
#	pkg-orphan/pkg-descr
#	pkg-orphan/distinfo
#
echo c - pkg-orphan
mkdir -p pkg-orphan > /dev/null 2>&1
echo x - pkg-orphan/Makefile
sed 's/^X//' >pkg-orphan/Makefile << 'END-of-pkg-orphan/Makefile'
X# New ports collection makefile for:	pkg-orphan
X# Date created:				26 November 2005
X# Whom:					Victor Semionov <semionov@mail.bg>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pkg-orphan
XPORTVERSION=	0.1.0
XCATEGORIES=	sysutils
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=${PORTNAME}
X
XMAINTAINER=	semionov@mail.bg
XCOMMENT=	A console utility for managing unreferenced FreeBSD packages
X
XNO_BUILD=	yes
XUSE_PERL5=	yes
X
XMAN1=		pkg-orphan.1
X
XPLIST_FILES=	sbin/pkg-orphan
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/pkg-orphan.pl ${PREFIX}/sbin/pkg-orphan
X	${INSTALL_MAN} ${WRKSRC}/pkg-orphan.1 ${MAN1PREFIX}/man/man1
X
X.include <bsd.port.mk>
END-of-pkg-orphan/Makefile
echo x - pkg-orphan/pkg-descr
sed 's/^X//' >pkg-orphan/pkg-descr << 'END-of-pkg-orphan/pkg-descr'
Xpkg-orphan is a console utility for managing orphan, i.e. unreferenced FreeBSD
Xpackages. It finds all or selected orphans and lets the user choose which ones
Xto remove and which ones to keep. It maintains a keep-list file, so previously
Xkept packages will be skipped automatically. In batch mode, all packages, not
Xpresent in the keep-list are either deleted or kept in the list.
X
XSince orphan packages are usually much fewer than non-orphan ones, it can be
Xuseful for quickly finding and deleting unused packages, even on a system with
Xhundreds of them installed.
X
XFeatures:
X - interactive and batch modes
X - maintains a kept package list, to avoid asking for the same package again
X - can delete packages recursively, but without deleting shared dependencies or
X   previously kept packages
X - the keep-list file does not contain package versions, so upgrades generally
X   don't require editing of the file
X
XWWW: http://sourceforge.net/projects/pkg-orphan/
X
X- Victor Semionov
Xsemionov@mail.bg
END-of-pkg-orphan/pkg-descr
echo x - pkg-orphan/distinfo
sed 's/^X//' >pkg-orphan/distinfo << 'END-of-pkg-orphan/distinfo'
XMD5 (pkg-orphan-0.1.0.tar.gz) = 94840a050d9d9c772e8219fbf3635dcd
XSHA256 (pkg-orphan-0.1.0.tar.gz) = ec20adc491e6cc93dcd8f210f19dc6a4c2508263998cb23cfd78ff4985c96e78
XSIZE (pkg-orphan-0.1.0.tar.gz) = 5867
END-of-pkg-orphan/distinfo
exit


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



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