diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2003-12-12 19:19:02 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2003-12-12 19:19:02 +0000 |
commit | a0848d727648aa70f6a89c013203f2b82a4e972e (patch) | |
tree | 37ec8e378ec2d731e9ba9c15cd58724325a5637c /ports-mgmt/pkg_remove | |
parent | Fix build by syncing with gaim-0.73. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_5_2_0'.release/5.2.0
Notes
Notes:
svn path=/head/; revision=95679
svn path=/tags/RELEASE_5_2_0/; revision=95680; tag=release/5.2.0
Diffstat (limited to 'ports-mgmt/pkg_remove')
-rw-r--r-- | ports-mgmt/pkg_remove/Makefile | 28 | ||||
-rw-r--r-- | ports-mgmt/pkg_remove/pkg-descr | 18 | ||||
-rw-r--r-- | ports-mgmt/pkg_remove/pkg-plist | 1 | ||||
-rw-r--r-- | ports-mgmt/pkg_remove/src/pkg_remove.txt | 34 |
4 files changed, 0 insertions, 81 deletions
diff --git a/ports-mgmt/pkg_remove/Makefile b/ports-mgmt/pkg_remove/Makefile deleted file mode 100644 index 21f0c19f046b..000000000000 --- a/ports-mgmt/pkg_remove/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -# New ports collection makefile for: pkg_remove -# Date created: 8 Jan 2000 -# Whom: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> -# -# $FreeBSD$ -# - -PORTNAME= pkg_remove -PORTVERSION= 1.1 -CATEGORIES= sysutils -MASTER_SITES= # none -DISTFILES= # none - -MAINTAINER= nakaji@jp.freebsd.org -COMMENT= Utility to uninstall packages - -NO_BUILD= yes -NO_WRKSUBDIR= yes - -SRC= ${.CURDIR}/src - -do-fetch: - @${DO_NADA} - -do-install: - ${INSTALL_SCRIPT} ${SRC}/pkg_remove.txt ${PREFIX}/bin/pkg_remove - -.include <bsd.port.mk> diff --git a/ports-mgmt/pkg_remove/pkg-descr b/ports-mgmt/pkg_remove/pkg-descr deleted file mode 100644 index 84f68848781d..000000000000 --- a/ports-mgmt/pkg_remove/pkg-descr +++ /dev/null @@ -1,18 +0,0 @@ -Utility to uninstall packages. -Unlike pkg_delete, pkg_remove removes all packages which depend to -the packages you specify, in proper order, by one command line. - -For example: -# pkg_remove netscape - Remove all netscape related packages. -# pkg_remove xemacs - Same as above about xemacs. -# pkg_remove tiff - Remove tiff library and whole packages which use it. -# pkg_remove '^ja-' - Remove all japanese packages. -# pkg_remove ALL - Remove all packages. - -- SADA Kenji -sada@FreeBSD.org diff --git a/ports-mgmt/pkg_remove/pkg-plist b/ports-mgmt/pkg_remove/pkg-plist deleted file mode 100644 index b8701984f27d..000000000000 --- a/ports-mgmt/pkg_remove/pkg-plist +++ /dev/null @@ -1 +0,0 @@ -bin/pkg_remove diff --git a/ports-mgmt/pkg_remove/src/pkg_remove.txt b/ports-mgmt/pkg_remove/src/pkg_remove.txt deleted file mode 100644 index f45f81c7bfff..000000000000 --- a/ports-mgmt/pkg_remove/src/pkg_remove.txt +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/perl -# $Id: pkg_remove,v 1.3 1999/11/06 15:47:49 sada Exp $ -use Getopt::Std; -getopts('n'); -die("usage: x [-n] ALL | <package-name> [, <package-name> [..]]\n -n : only tell what will take place.\n") if (@ARGV < 1); -$pkg_dbdir = "/var/db/pkg"; -opendir(PKG_DBDIR, $pkg_dbdir); -while ($pkg = readdir(PKG_DBDIR)) { - next if $pkg =~ m/^\./; - $req_by{$pkg} = ''; - if (-f "$pkg_dbdir/$pkg/+REQUIRED_BY") { - open(REQ_B, "$pkg_dbdir/$pkg/+REQUIRED_BY"); - $req_by{$pkg} = join('', <REQ_B>); - } -} -while ($a = shift) { - while (($key, $val) = each(%req_by)) { - if ($a eq 'ALL' || $key =~ m/$a/) { - &remove_package($key); - } - } -} - -sub remove_package -{ - my ($pkg) = @_; - return if ($pkg_removed{$pkg}); - my @r = split(/\n/, $req_by{$pkg}); - my $p; - &remove_package($p) while $p = shift(@r); - print "remove: $pkg\n"; - system "pkg_delete $pkg" unless ($opt_n); - $pkg_removed{$pkg} = 'YES'; -} |