diff options
author | rene <rene@FreeBSD.org> | 2015-01-07 02:49:16 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2015-01-07 02:49:16 +0800 |
commit | 818262a5aea95f1d54acb124a89023048bc38702 (patch) | |
tree | 84989f63240af48a2714b42d861d6401aa7642e4 /ports-mgmt | |
parent | d38ecce0ac04e866f1b063ed63c7754876c68e90 (diff) | |
download | freebsd-ports-gnome-818262a5aea95f1d54acb124a89023048bc38702.tar.gz freebsd-ports-gnome-818262a5aea95f1d54acb124a89023048bc38702.tar.zst freebsd-ports-gnome-818262a5aea95f1d54acb124a89023048bc38702.zip |
Remove expired ports:
2015-01-06 ports-mgmt/portcheckout: Uses ports cvs repo, which is long gone
2015-01-06 ports-mgmt/pkg_trackinst: Does not support pkgng, generates incorrect pkg-plist
2015-01-06 ports-mgmt/pkg_remove: Does not support pkgng
2015-01-06 ports-mgmt/pkg-orphan: Does not support pkgng
2015-01-06 ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates: Depends on ports-mgmt/p5-FreeBSD-Pkgs
2015-01-06 ports-mgmt/p5-FreeBSD-Pkgs: Does not support pkgng
2015-01-06 ports-mgmt/p5-App-Pm2Port: Does not know about USES=perl, generates incorrect pkg-plist
2015-01-06 ports-mgmt/bpkg: Does not support pkgng
Diffstat (limited to 'ports-mgmt')
33 files changed, 0 insertions, 1410 deletions
diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile index 296949b84d1e..e321d342a7b7 100644 --- a/ports-mgmt/Makefile +++ b/ports-mgmt/Makefile @@ -3,7 +3,6 @@ COMMENT = Ports for managing, installing, and developing FreeBSD ports and packages - SUBDIR += bpkg SUBDIR += bpm SUBDIR += chucky SUBDIR += dialog4ports @@ -19,9 +18,6 @@ SUBDIR += lsknobs SUBDIR += managepkg SUBDIR += mkreadmes - SUBDIR += p5-App-Pm2Port - SUBDIR += p5-FreeBSD-Pkgs - SUBDIR += p5-FreeBSD-Pkgs-FindUpdates SUBDIR += p5-FreeBSD-Portindex SUBDIR += p5-FreeBSD-Ports SUBDIR += p5-FreeBSD-Ports-INDEXhash @@ -30,24 +26,20 @@ SUBDIR += pchecker SUBDIR += pkg SUBDIR += pkg-devel - SUBDIR += pkg-orphan SUBDIR += pkg-plist SUBDIR += pkg-rmleaf SUBDIR += pkg_cleanup SUBDIR += pkg_cutleaves SUBDIR += pkg_jail - SUBDIR += pkg_remove SUBDIR += pkg_replace SUBDIR += pkg_rmleaves SUBDIR += pkg_search - SUBDIR += pkg_trackinst SUBDIR += pkg_tree SUBDIR += pkgcompare SUBDIR += pkgs_which SUBDIR += port-authoring-tools SUBDIR += port-maintenance-tools SUBDIR += portbuilder - SUBDIR += portcheckout SUBDIR += portconf SUBDIR += portdowngrade SUBDIR += porteasy diff --git a/ports-mgmt/bpkg/Makefile b/ports-mgmt/bpkg/Makefile deleted file mode 100644 index 0f3d05ba54e0..000000000000 --- a/ports-mgmt/bpkg/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Created by: Andy Kosela <akosela@andykosela.com> -# $FreeBSD$ - -PORTNAME= bpkg -PORTVERSION= 2.1.7 -CATEGORIES= ports-mgmt -MASTER_SITES= # none -DISTFILES= # none - -MAINTAINER= akosela@andykosela.com -COMMENT= Simple tool for displaying information about ports - -DEPRECATED= Does not support pkgng -EXPIRATION_DATE= 2015-01-06 - -NO_BUILD= yes -SUB_FILES= bpkg.sh - -PLIST_FILES= bin/bpkg man/man8/bpkg.8.gz - -do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/bpkg.sh ${STAGEDIR}${PREFIX}/bin/bpkg - ${INSTALL_MAN} ${FILESDIR}/bpkg.8 ${STAGEDIR}${MANPREFIX}/man/man8 - -.include <bsd.port.mk> diff --git a/ports-mgmt/bpkg/files/bpkg.8 b/ports-mgmt/bpkg/files/bpkg.8 deleted file mode 100644 index 69d5cd724960..000000000000 --- a/ports-mgmt/bpkg/files/bpkg.8 +++ /dev/null @@ -1,153 +0,0 @@ -.\" Copyright (c) 2007-2012 Andy Kosela <akosela@andykosela.com> -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in -.\" the documentation and/or other materials provided with the -.\" distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' -.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR -.\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" -.Dd February 6, 2012 -.Dt BPKG 8 -.Os -.Sh NAME -.Nm bpkg -.Nd a simple tool for displaying information about ports. -.Sh SYNOPSIS -.Nm -.Op Fl abDdEeFfgIijkLMmOopQqrswz -.Ar pkg-name ... -.Nm -.Op Fl BCchltvZ -.Pp -.Sh DESCRIPTION -.Nm -is a simple tool written in sh(1) for displaying information about -ports. Its main goal is to provide a quick way to display all kinds of -useful info about installed ports and the whole ports tree. -.Sh OPTIONS -The following command line arguments are supported: -.Bl -tag -width F1 -.It Fl a -show what dependent ports are, and are not installed. [portmaster -required] -.It Fl B -create backup packages in /usr/ports/packages/bpkg from all locally -installed ports. -.It Fl b -create backup package in /usr/ports/packages/bpkg from a locally -installed port. -.It Fl C -clean all distfiles in /usr/ports/distfiles/* and also all work -directories of the ports tree /usr/ports/*/*/work [no arguments] -.It Fl c -clean all distfiles in /usr/ports/distfiles/* [no arguments] -.It Fl D -display size of port's source files. -.It Fl d -display description of the port. -.It Fl E -display available package in the FreeBSD repository. [-CURRENT] -.It Fl e -configure OPTIONS for the specified port. -.It Fl F -browse www.freshports.org port's entry. [text WWW browser required] -.It Fl f -show the packing list instructions for the port. -.It Fl g -show files that do not match the recorded checksum in the specified -installed port. -.It Fl h -display help. [no arguments] -.It Fl i -display short description of the port [priority -- installed ports] -.It Fl I -display info about the port. -.It Fl j -search the ports tree according to ports' descriptions. -.It Fl k -show the deinstall script (if any) for the installed port. -.It Fl L -show the files within the installed port. -.It Fl l -display short info about all installed ports. [no arguments] -.It Fl M -show the install-message file for the installed port. -.It Fl m -display port's Makefile. -.It Fl O -remove config OPTIONS for the specified port. -.It Fl o -display config OPTIONS for the specified port. -.It Fl p -search the ports tree and display short info about each port. -.It Fl Q -display available package in the FreeBSD repository. [-STABLE] -.It Fl q -display available package in the FreeBSD repository. [-RELEASE] -.It Fl r -show the list of all port's dependencies. -.It Fl s -show the total size occupied by files installed within the port. -.It Fl t -list all installed ports with dates of their installation. [no -arguments] -.It Fl w -which installed port owns the specified file. -.It Fl v -list all installed ports and possible updates. [no arguments] -.It Fl Z -display all missing dynamic object dependencies. [no arguments] -.It Fl z -display dynamic object dependencies for the specified port. -.El -.Sh EXIT STATUS -.Ex -std -.Sh EXAMPLES -The following is an example of a typical usage of the -.Nm -command: -.Pp -.Dl "$ bpkg -i foo" -.Pp -Display short description about port foo. -.Pp -.Dl "$ bpkg -p foo.*" -.Pp -Display all ports matching the regular expression. -.Pp -.Dl "$ bpkg -t | head" -.Pp -Display 10 most recently installed ports. -.Pp -.Dl "$ bpkg -b 'foo bar'" -.Pp -Create backup packages of foo and bar in /usr/ports/packages/bpkg -directory. -.Sh SEE ALSO -.Xr pkg_add 1 , -.Xr pkg_create 1 , -.Xr pkg_delete 1 , -.Xr pkg_info 1 , -.Xr pkg_version 1 , -.Xr ports 7 -.Sh AUTHORS -.An Andy Kosela <akosela@andykosela.com> diff --git a/ports-mgmt/bpkg/files/bpkg.sh.in b/ports-mgmt/bpkg/files/bpkg.sh.in deleted file mode 100644 index afcad62fb55d..000000000000 --- a/ports-mgmt/bpkg/files/bpkg.sh.in +++ /dev/null @@ -1,823 +0,0 @@ -#!/bin/sh -# $FreeBSD$ - -# Copyright (c) 2007-2012 Andy Kosela <akosela@andykosela.com> -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. - -trap trap_exit 2 -pkg=$@ - -trap_exit() -{ - echo -e "\n*** SIGINT ***" - exit 1 -} - -root() -{ - if [ `id -u` != 0 ]; then - echo "bpkg: access denied, root privileges required" - exit 1 - fi -} - -check_index() -{ - local re - - re=`uname -r | cut -d. -f1` - if [ -e /usr/ports/INDEX-$re ]; then - return 0 - else - root - echo "Downloading INDEX file..." - (export CVSROOT=:pserver:anoncvs@anoncvs.fr.freebsd.org:2401/home/ncvs - echo "Type anoncvs for CVS password" - echo "" - cvs login - cd /usr && /usr/bin/cvs -Q -f -z3 -R \ - checkout -A -T -P -l ports - cd /usr/ports && /usr/bin/cvs -Q -f -z3 -R \ - update -A -T -P -d Mk Templates Tools - make fetchindex) - return 0 - fi -} - -info_fn() -{ - info=`pkg_info | cut -d' ' -f1 | grep $e` -} - -######################################################################## -# Start of main functions - -pkg_info-xI() -{ - local e info pwd i re - re=`uname -r | cut -d. -f1` - - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - echo "*** not installed ***" - for i in $pwd; do - echo "$i: `grep "/$i|" /usr/ports/INDEX-$re | - cut -d'|' -f4`" - done - else - echo "*** installed ***" - pkg_info -I $info - fi - done - exit 0 -} - -pkg_info-xL() -{ - local i - - i=`pkg_info -xL $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - -pkg_inf() -{ - pkg_info - echo "`pkg_info | wc -l` ports installed" - exit 0 -} - -pkg_info-xs() -{ - local i - - i=`pkg_info -xs $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - -pkg_info-xr() -{ - local e info pwd i re - re=`uname -r | cut -d. -f1` - - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "*** not installed ***" - echo "$i: `grep "/$i|" /usr/ports/INDEX-$re | - cut -d'|' -f4`" - echo "Information in ports for `echo $i | - cut -d/ -f2`:" - echo "B-deps: `grep "/$i|" \ - /usr/ports/INDEX-$re | cut -d'|' -f8`" - echo "R-deps: `grep "/$i|" \ - /usr/ports/INDEX-$re | cut -d'|' -f9`" - echo "" - done - else - echo "*** installed ***" - pkg_info -xrR $info - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "Information in ports for $i:" - echo "B-deps: `grep "/$i|" \ - /usr/ports/INDEX-$re | cut -d'|' -f8`" - echo "R-deps: `grep "/$i|" \ - /usr/ports/INDEX-$re | cut -d'|' -f9`" - echo "" - done - fi - done - exit 0 -} - -pkg_info-xg() -{ - local i - - i=`pkg_info -xg $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - - -pkg_info-xf() -{ - local e info pwd i re - re=`uname -r | cut -d. -f1` - - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - echo "*** not installed ***" - for i in $pwd; do - echo "$i: `grep "/$i|" /usr/ports/INDEX-$re | - cut -d'|' -f4`" - echo "Packing list:" - [ -d /usr/ports/$i ] && - cat /usr/ports/$i/pkg-plist - echo "" - done - else - pkg_info -f $info - fi - done - exit 0 -} - -pkg_info-xk() -{ - local i - - i=`pkg_info -xk $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - -pkg_info-xD() -{ - local i - - i=`pkg_info -xD $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - -pkg_info-x() -{ - local i - - i=`pkg_info -x $pkg 2>/dev/null` - if [ -z "$i" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 1 - fi - echo "$i" - exit 0 -} - -pkg_ver() -{ - pkg_version -Iv - exit 0 -} - -pkg_path() -{ - local e pwd i re - re=`uname -r | cut -d. -f1` - - for e in $pkg; do - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "$i: `grep "/$i|" /usr/ports/INDEX-$re | - cut -d'|' -f4`" - done - done - exit 0 -} - -pkg_makefile() -{ - local pwd re - re=`uname -r | cut -d. -f1` - - pwd=`grep "/$pkg|" /usr/ports/INDEX-$re | sed -n 1p | cut -d'|' -f2` - [ -z "$pwd" ] && - echo "bpkg: can't find the port in /usr/ports/" && exit 0 - - [ -d $pwd ] && less $pwd/Makefile 2>/dev/null - exit 0 -} - -pkg_distinfo() -{ - local pwd e re - re=`uname -r | cut -d. -f1` - - pwd=`grep "/$pkg|" /usr/ports/INDEX-$re | sed -n 1p | cut -d'|' -f2` - [ -z "$pwd" ] && echo "bpkg: can't find the port in /usr/ports/" - - for e in `cat $pwd/distinfo 2>/dev/null | grep SIZE | - cut -d'=' -f2`; do - echo "`cat $pwd/distinfo | grep $e | - sed 's/SIZE// ; s/(// ; s/)//' | - cut -d' ' -f2` `convert $e`" - done - exit 0 -} - -make_search() -{ - local e - - for e in $pkg; do - cd /usr/ports && make search path=/$e$ - done - exit 0 -} - -make_search_info() -{ - local e - - for e in $pkg; do - cd /usr/ports && make search info=$e - done - exit 0 -} - -pkg_releaseftp() -{ - sys=`uname -r | cut -d- -f1` - branch='-release' - pkg_ftp -} - -pkg_stableftp() -{ - sys=`uname -r | cut -d. -f1` - branch='-stable' - pkg_ftp -} - -pkg_currentftp() -{ - sys='' - branch=current - pkg_ftp -} - -pkg_ftp() -{ - local arch site e n size_pkg size mtime - - arch=`uname -m` - site='ftp.freebsd.org/pub/FreeBSD/ports' - - [ -e /tmp/bpkg*.tmp ] && rm -f /tmp/bpkg*.tmp 1>/dev/null 2>&1 - for e in $pkg; do - echo "ls $e*" >> /tmp/bpkg.tmp - done - sed -i '' s/[0-9][0-9].*/*/ /tmp/bpkg.tmp - - echo "$site/$arch/packages-${sys}$branch/Latest/" - echo "Loading data..." - ftp -4Va ftp://$site/$arch/packages-${sys}$branch/Latest/ < /tmp/bpkg.tmp > /tmp/bpkg1.tmp - ftp -4Va ftp://$site/$arch/packages-${sys}$branch/All/ < /tmp/bpkg.tmp > /tmp/bpkg2.tmp - - n=1 - for e in `cat /tmp/bpkg1.tmp | awk '{print $9}' | cut -d. -f1` - do - size_pkg=`cat /tmp/bpkg1.tmp | sed '/^[A-Z]/d' | sed -n ${n}p | - awk '{print $11}' | cut -d/ -f3` - size=`cat /tmp/bpkg2.tmp | grep $size_pkg | awk '{print $5}'` - mtime=`cat /tmp/bpkg2.tmp | grep $size_pkg | - awk '{print $6, $7, $8}'` - echo "$e -> $size_pkg `convert $size` [$mtime]" - n=`expr $n + 1` - done - rm -f /tmp/bpkg*.tmp - exit 0 -} - -pkg_clean() -{ - root - echo "Cleaning /usr/ports/distfiles/*" - rm -rf /usr/ports/distfiles/* 1>/dev/null 2>&1 - echo "Done." - exit 0 -} - -pkg_clean2() -{ - root - echo "Cleaning /usr/ports/distfiles/* and /usr/ports/*/*/work" - rm -rf /usr/ports/distfiles/* 1>/dev/null 2>&1 - rm -rf /usr/ports/*/*/work 1>/dev/null 2>&1 - echo "Done." - exit 0 -} - -pkg_which2() -{ - grep "$pkg"$ /var/db/pkg/*/+CONTENTS | - awk -F 'pkg/' '{ print $2 }' | - sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; - s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | - awk -F: '{ print $1 ":\t" $2 }' - exit 0 -} - -pkg_backup() -{ - local z pkg_install e i - - root - z=`pkg_info -xoQ $pkg 2>/dev/null` - - if [ -z "$z" ]; then - echo "bpkg: no installed ports match pattern(s)" - exit 0 - fi - - pkg_install=`pkg_info -xoQ ^$pkg | cut -d: -f1 | awk '{ORS=" " ;print}'` - echo "Creating backup package(s) "$pkg_install"in /usr/ports/packages/bpkg" - [ ! -d /usr/ports/packages/bpkg ] && mkdir -p /usr/ports/packages/bpkg - cd /usr/ports/packages/bpkg - - for e in $pkg; do - i=`pkg_info -xoQ ^$e | cut -d: -f1` - pkg_create -xb $i 1>/dev/null 2>&1 - done - echo "Done." - exit 0 -} - -pkg_backup_all() -{ - local e - - root - echo "Creating backup packages in /usr/ports/packages/bpkg" - [ ! -d /usr/ports/packages/bpkg ] && mkdir -p /usr/ports/packages/bpkg - cd /usr/ports/packages/bpkg - - for e in `pkg_info -Ea`; do - pkg_create -b "$e" 1>/dev/null 2>&1 - done - echo "Done." - exit 0 -} - -pkg_time() -{ - /bin/ls -lUTt /var/db/pkg/ | grep -v total | - awk -F' ' '{ print $6, $7, $8, $9, "\t" $10 }' | - cut -d/ -f1,5 - exit 0 -} - -make_showc() -{ - local e info pwd i key re - re=`uname -r | cut -d. -f1` - - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "*** not installed ***" - echo "$i: `grep COMMENT \ - /usr/ports/$i/Makefile | cut -d= -f2`" - echo -n "Do you want to display config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && - make showconfig-recursive ;; - *) cd /usr/ports/$i && make showconfig ; - esac - echo "" - done - else - for i in $info; do - echo "*** installed ***" - pkg_info -xI $i - echo -n \ - "Do you want to display config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && - make showconfig-recursive ;; - *) cd /usr/ports/$i && make showconfig ;; - esac - echo "" - done - fi - done - exit 0 -} - -make_rmc() -{ - local e info pwd i key re - - root - re=`uname -r | cut -d. -f1` - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "*** not installed ***" - echo "$i: `grep COMMENT \ - /usr/ports/$i/Makefile | cut -d= -f2`" - echo -n \ - "Do you want to remove config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && \ - make rmconfig-recursive ;; - *) cd /usr/ports/$i && make rmconfig ;; - esac - echo "" - done - else - for i in $info; do - echo "*** installed ***" - pkg_info -xI $i - echo -n \ - "Do you want to remove config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && - make rmconfig-recursive ;; - *) cd /usr/ports/$i && make rmconfig ;; - esac - echo "" - done - fi - done - exit 0 -} - -make_config() -{ - local e info pwd i key re - - root - re=`uname -r | cut -d. -f1` - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - echo "*** not installed ***" - echo "$i: `grep COMMENT \ - /usr/ports/$i/Makefile | cut -d= -f2`" - echo -n \ - "Do you want to set config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && - make config-recursive ;; - *) cd /usr/ports/$i && make config ;; - esac - echo "" - done - else - for i in $info; do - echo "*** installed ***" - pkg_info -xI $i - echo -n \ - "Do you want to set config options recursively? [n] " - read key - case $key in - y) cd /usr/ports/$i && - make config-recursive ;; - *) cd /usr/ports/$i && make config ;; - esac - echo "" - done - fi - done - exit 0 -} - -pkg_freshports() -{ - local browser pwd - - browser=`ls /usr/local/bin/w3m 2>/dev/null || - ls /usr/local/bin/lynx 2>/dev/null || - ls /usr/local/bin/links 2>/dev/null` - if [ -z "$browser" ]; then - echo "bpkg: text WWW browser required" - else - echo "Loading..." - pwd=`cd /usr/ports && make search path=/$pkg$ | grep -w Path | - sed -n 1p | cut -d/ -f4,5` - $browser http://www.freshports.org/$pwd - fi - exit 0 -} - -show_work() -{ - local e info pwd i re - - if [ ! -x /usr/local/sbin/portmaster ]; then - echo "bpkg: you don't have portmaster installed. Exiting." - exit 1 - fi - - re=`uname -r | cut -d. -f1` - for e in $pkg; do - info_fn - if [ -z "$info" ]; then - pwd=`grep "/$e|" /usr/ports/INDEX-$re | cut -d'|' -f2 | - cut -d/ -f4,5` - for i in $pwd; do - /usr/local/sbin/portmaster --show-work $i - done - else - for i in $info; do - /usr/local/sbin/portmaster --show-work $i - done - fi - done - exit 0 -} - -make_ldd() -{ - local e info i pkg bin o origin - - for e in $pkg; do - info_fn - - if [ -z "$info" ]; then - echo "bpkg: no installed ports match $e" - else - echo "*** installed ***" - pkg_info -xI $info - echo "" - echo "List of dynamic object dependencies:" - bin=`pkg_info -L $info | - awk '/\/usr\/local\/bin/ \ - /\/usr\/local\/sbin/ \ - /usr\/local\/libexec/'` - for o in $bin; do - /usr/bin/ldd -a $o - done - fi - done - exit 0 -} - -make_ldd_all() -{ - root - local e libs i - - echo "List of all missing dynamic object dependencies:" - - find /bin 2>/dev/null > /tmp/ldd_all - find /sbin 2>/dev/null >> /tmp/ldd_all - find /usr/bin 2>/dev/null >> /tmp/ldd_all - find /usr/sbin 2>/dev/null >> /tmp/ldd_all - find /usr/libexec 2>/dev/null >> /tmp/ldd_all - find /usr/local/bin 2>/dev/null >> /tmp/ldd_all - find /usr/local/sbin 2>/dev/null >> /tmp/ldd_all - find /usr/local/libexec 2>/dev/null >> /tmp/ldd_all - - for e in `cat /tmp/ldd_all`; do - libs=`/usr/bin/ldd -a $e 2>/dev/null | grep found` - if [ ! -z "$libs" ]; then - grep "$e"$ /var/db/pkg/*/+CONTENTS | - awk -F 'pkg/' '{ print $2 }' | - sed '/@dirrm/ d ; /@unexec/ d ; - /@comment/ d ; s/\/+CONTENTS//g ; - s/:@comment .*ORIGIN//g' | - awk -F: '{ print $1 ":\t" $2 }' - echo "$libs" - for i in `echo $libs | cut -d' ' -f1 | - cut -d. -f1,2`; do - grep "$i". /var/db/pkg/*/+CONTENTS | - awk -F 'pkg/' '{ print $2 }' | - sed '/@dirrm/ d ; /@unexec/ d ; - /@comment/ d ; s/\/+CONTENTS//g ; - s/:@comment .*ORIGIN//g' | - awk -F: '{ print $2 "\t [" $1 "]" }' - done - echo "" - fi - done - rm /tmp/ldd_all - exit 0 -} - -convert() -{ - local kilo kiloint mega megaint giga gigaint - - kilo=`echo "scale=1; $1/1024" | bc` - kiloint=`echo "$1/1024" | bc` - - mega=`echo "scale=1; $kilo/1024" | bc` - megaint=`echo "$kilo/1024" | bc` - - giga=`echo "scale=1; $mega/1024" | bc` - gigaint=`echo "$mega/1024" | bc` - - if [ $kiloint -lt 1 ]; then - echo "$1 bytes" - elif [ $megaint -lt 1 ]; then - echo "${kilo}K" - elif [ $gigaint -lt 1 ]; then - echo "${mega}M" - else - echo "${giga}G" - fi -} - -help() -{ - echo "bpkg version `pkg_info -xI bpkg | cut -d- -f2 | - cut -d' ' -f1`" - echo "" - echo "Usage: bpkg [-abDdEeFfgIijkLMmOopQqrswz] pkg-name ..." - echo " bpkg [-BCchltvZ]" - echo "" - echo "Please see the bpkg(8) man page for more information" - exit 0 -} - -# End of functions -######################################################################## - -while -getopts a:b:D:d:E:e:F:f:g:I:i:j:k:L:M:m:O:o:p:Q:q:r:s:w:z:BCchltvZ opts -do - case $opts in - a) pkg=$OPTARG - check_index - show_work ;; - b) pkg=$OPTARG - pkg_backup ;; - D) pkg=$OPTARG - check_index - pkg_distinfo ;; - d) pkg=$OPTARG - check_index - pkg_info-x ;; - E) pkg=$OPTARG - pkg_currentftp ;; - e) pkg=$OPTARG - check_index - make_config ;; - F) pkg=$OPTARG - check_index - pkg_freshports ;; - f) pkg=$OPTARG - check_index - pkg_info-xf ;; - g) pkg=$OPTARG - pkg_info-xg ;; - I) pkg=$OPTARG - check_index - make_search ;; - i) pkg=$OPTARG - check_index - pkg_info-xI ;; - j) pkg=$OPTARG - check_index - make_search_info ;; - k) pkg=$OPTARG - pkg_info-xk ;; - L) pkg=$OPTARG - pkg_info-xL ;; - M) pkg=$OPTARG - pkg_info-xD ;; - m) pkg=$OPTARG - check_index - pkg_makefile ;; - O) pkg=$OPTARG - check_index - make_rmc ;; - o) pkg=$OPTARG - check_index - make_showc ;; - p) pkg=$OPTARG - check_index - pkg_path ;; - Q) pkg=$OPTARG - pkg_stableftp ;; - q) pkg=$OPTARG - pkg_releaseftp ;; - r) pkg=$OPTARG - check_index - pkg_info-xr ;; - s) pkg=$OPTARG - pkg_info-xs ;; - w) pkg=$OPTARG - pkg_which2 ;; - z) pkg=$OPTARG - make_ldd ;; - B) pkg_backup_all ;; - C) pkg_clean2 ;; - c) pkg_clean ;; - h) help ;; - l) pkg_inf ;; - t) pkg_time ;; - v) pkg_ver ;; - Z) make_ldd_all ;; - *) help ;; - esac -done - -help diff --git a/ports-mgmt/bpkg/pkg-descr b/ports-mgmt/bpkg/pkg-descr deleted file mode 100644 index 26ae908964c9..000000000000 --- a/ports-mgmt/bpkg/pkg-descr +++ /dev/null @@ -1,5 +0,0 @@ -bpkg is a simple tool written in sh(1) for displaying information about -ports. Its main goal is to provide a quick way to display all kinds of -useful info about installed ports and the whole ports tree. - -WWW: http://www.andykosela.com/bpkg.html diff --git a/ports-mgmt/p5-App-Pm2Port/Makefile b/ports-mgmt/p5-App-Pm2Port/Makefile deleted file mode 100644 index f8470a997a8f..000000000000 --- a/ports-mgmt/p5-App-Pm2Port/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# Created by: andrey@kostenko.name -# $FreeBSD$ - -PORTNAME= App-Pm2Port -PORTVERSION= 0.29 -PORTREVISION= 3 -CATEGORIES= ports-mgmt perl5 -MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- - -MAINTAINER= perl@FreeBSD.org -COMMENT= Creating port from perl module - -DEPRECATED= Does not know about USES=perl, generates incorrect pkg-plist -EXPIRATION_DATE= 2015-01-06 - -BUILD_DEPENDS= p5-CPANPLUS>=0:${PORTSDIR}/devel/p5-CPANPLUS \ - p5-FreeBSD-Ports-INDEXhash>=0:${PORTSDIR}/ports-mgmt/p5-FreeBSD-Ports-INDEXhash \ - p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS \ - p5-YAML>=0:${PORTSDIR}/textproc/p5-YAML \ - subversion>=0:${PORTSDIR}/devel/subversion -RUN_DEPENDS:= ${BUILD_DEPENDS} - -USES= perl5 -USE_PERL5= configure - -.include <bsd.port.mk> diff --git a/ports-mgmt/p5-App-Pm2Port/distinfo b/ports-mgmt/p5-App-Pm2Port/distinfo deleted file mode 100644 index dadfc3b01822..000000000000 --- a/ports-mgmt/p5-App-Pm2Port/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (App-Pm2Port-0.29.tar.gz) = d5c549630bb84ddf25b350d9cc5e4c4aaa260bb95d8e67e7c1f170b5a24920bd -SIZE (App-Pm2Port-0.29.tar.gz) = 26845 diff --git a/ports-mgmt/p5-App-Pm2Port/pkg-descr b/ports-mgmt/p5-App-Pm2Port/pkg-descr deleted file mode 100644 index 568e303e0ce1..000000000000 --- a/ports-mgmt/p5-App-Pm2Port/pkg-descr +++ /dev/null @@ -1,4 +0,0 @@ -App::Pm2Port is a perl module to creat FreeBSD port from -perl module. - -WWW: http://search.cpan.org/dist/App-Pm2Port/ diff --git a/ports-mgmt/p5-App-Pm2Port/pkg-plist b/ports-mgmt/p5-App-Pm2Port/pkg-plist deleted file mode 100644 index 8879d845b05a..000000000000 --- a/ports-mgmt/p5-App-Pm2Port/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -bin/pm2port -man/man1/pm2port.1.gz -%%PERL5_MAN3%%/App::Pm2Port.3.gz -%%SITE_PERL%%/App/Pm2Port.pm diff --git a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/Makefile b/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/Makefile deleted file mode 100644 index 226c6bcc3439..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# Created by: Zane C, Bowers <vvelox@vvelox.net> -# $FreeBSD$ - -PORTNAME= FreeBSD-Pkgs-FindUpdates -PORTVERSION= 0.3.0 -PORTREVISION= 1 -CATEGORIES= ports-mgmt sysutils perl5 -MASTER_SITES= CPAN -MASTER_SITE_SUBDIR= CPAN:VVELOX -PKGNAMEPREFIX= p5- - -MAINTAINER= vvelox@vvelox.net -COMMENT= Finds updates for FreeBSD pkgs by checking the ports index - -DEPRECATED= Depends on ports-mgmt/p5-FreeBSD-Pkgs -EXPIRATION_DATE= 2015-01-06 - -BUILD_DEPENDS= p5-Error-Helper>=0:${PORTSDIR}/devel/p5-Error-Helper \ - p5-FreeBSD-Pkgs>=0:${PORTSDIR}/ports-mgmt/p5-FreeBSD-Pkgs \ - p5-FreeBSD-Ports-INDEXhash>=0:${PORTSDIR}/ports-mgmt/p5-FreeBSD-Ports-INDEXhash \ - p5-Sort-Versions>=0:${PORTSDIR}/devel/p5-Sort-Versions -RUN_DEPENDS:= ${BUILD_DEPENDS} - -USES= perl5 -USE_PERL5= configure - -.include <bsd.port.mk> diff --git a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/distinfo b/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/distinfo deleted file mode 100644 index 209b1080cfc4..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (FreeBSD-Pkgs-FindUpdates-0.3.0.tar.gz) = 321428d5f1d091d7a9580fc31ed9a5fbdc80780321b91e8e13c6cb2ec3fb9f5b -SIZE (FreeBSD-Pkgs-FindUpdates-0.3.0.tar.gz) = 5922 diff --git a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-descr b/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-descr deleted file mode 100644 index ae8b59ca775c..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-descr +++ /dev/null @@ -1,6 +0,0 @@ -Finds updates for FreeBSD pkgs by checking the ports index. - -pkg_findupdates - Finds updated packages. -pkg_bupdate - Perform a binary packages update. - -WWW: http://search.cpan.org/dist/FreeBSD-Pkgs-FindUpdates/ diff --git a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-plist b/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-plist deleted file mode 100644 index 613895527725..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs-FindUpdates/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/pkg_findupdates -%%SITE_PERL%%/FreeBSD/Pkgs/FindUpdates.pm -%%PERL5_MAN3%%/FreeBSD::Pkgs::FindUpdates.3.gz diff --git a/ports-mgmt/p5-FreeBSD-Pkgs/Makefile b/ports-mgmt/p5-FreeBSD-Pkgs/Makefile deleted file mode 100644 index fe62b71f14b3..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -# Created by: Zane C, Bowers <vvelox@vvelox.net> -# $FreeBSD$ - -PORTNAME= FreeBSD-Pkgs -PORTVERSION= 0.2.0 -PORTREVISION= 1 -CATEGORIES= ports-mgmt sysutils perl5 -MASTER_SITES= CPAN -PKGNAMEPREFIX= p5- - -MAINTAINER= vvelox@vvelox.net -COMMENT= Parses the contents of FreeBSD package DB under /var/db/pkg - -DEPRECATED= Does not support pkgng -EXPIRATION_DATE= 2015-01-06 - -BUILD_DEPENDS= p5-Error-Helper>=0:${PORTSDIR}/devel/p5-Error-Helper -RUN_DEPENDS= p5-Error-Helper>=0:${PORTSDIR}/devel/p5-Error-Helper - -USES= perl5 -USE_PERL5= configure - -.include <bsd.port.mk> diff --git a/ports-mgmt/p5-FreeBSD-Pkgs/distinfo b/ports-mgmt/p5-FreeBSD-Pkgs/distinfo deleted file mode 100644 index 14397515f0cc..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (FreeBSD-Pkgs-0.2.0.tar.gz) = 7c87a2c96df807d3a7859a069bf8c96a19b5d36fc01a0f8e55f865612e98e2fc -SIZE (FreeBSD-Pkgs-0.2.0.tar.gz) = 7664 diff --git a/ports-mgmt/p5-FreeBSD-Pkgs/pkg-descr b/ports-mgmt/p5-FreeBSD-Pkgs/pkg-descr deleted file mode 100644 index a380dad4f543..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs/pkg-descr +++ /dev/null @@ -1,3 +0,0 @@ -Reads the FreeBSD installed packaged DB. - -WWW: http://search.cpan.org/dist/FreeBSD-Pkgs/ diff --git a/ports-mgmt/p5-FreeBSD-Pkgs/pkg-plist b/ports-mgmt/p5-FreeBSD-Pkgs/pkg-plist deleted file mode 100644 index aba4b47effdb..000000000000 --- a/ports-mgmt/p5-FreeBSD-Pkgs/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -%%SITE_PERL%%/FreeBSD/Pkgs.pm -%%PERL5_MAN3%%/FreeBSD::Pkgs.3.gz diff --git a/ports-mgmt/pkg-orphan/Makefile b/ports-mgmt/pkg-orphan/Makefile deleted file mode 100644 index d6216405b331..000000000000 --- a/ports-mgmt/pkg-orphan/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# Created by: Victor Semionov <semionov@mail.bg> -# $FreeBSD$ - -PORTNAME= pkg-orphan -PORTVERSION= 1.0.1 -CATEGORIES= ports-mgmt -MASTER_SITES= SF - -MAINTAINER= vsemionov@gmail.com -COMMENT= Console utility for managing unreferenced FreeBSD packages - -DEPRECATED= Does not support pkgng -EXPIRATION_DATE= 2015-01-06 - -NO_BUILD= yes -USES= perl5 shebangfix -SHEBANG_FILES= pkg-orphan.pl - -PLIST_FILES= sbin/pkg-orphan \ - man/man1/pkg-orphan.1.gz - -do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/pkg-orphan.pl ${STAGEDIR}${PREFIX}/sbin/pkg-orphan - ${INSTALL_MAN} ${WRKSRC}/pkg-orphan.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 - -.include <bsd.port.mk> diff --git a/ports-mgmt/pkg-orphan/distinfo b/ports-mgmt/pkg-orphan/distinfo deleted file mode 100644 index 90d4440b645c..000000000000 --- a/ports-mgmt/pkg-orphan/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (pkg-orphan-1.0.1.tar.gz) = 7a7734156d6a50f4c1c3f2dbb21d2370b3d74eaf1b717bf903d8474c6f049f61 -SIZE (pkg-orphan-1.0.1.tar.gz) = 6137 diff --git a/ports-mgmt/pkg-orphan/pkg-descr b/ports-mgmt/pkg-orphan/pkg-descr deleted file mode 100644 index 208ecf424623..000000000000 --- a/ports-mgmt/pkg-orphan/pkg-descr +++ /dev/null @@ -1,19 +0,0 @@ -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/ diff --git a/ports-mgmt/pkg_remove/Makefile b/ports-mgmt/pkg_remove/Makefile deleted file mode 100644 index ad9ea397b197..000000000000 --- a/ports-mgmt/pkg_remove/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -# Created by: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> -# $FreeBSD$ - -PORTNAME= pkg_remove -PORTVERSION= 1.1 -CATEGORIES= ports-mgmt -MASTER_SITES= # none -DISTFILES= # none - -MAINTAINER= nakaji@jp.freebsd.org -COMMENT= Utility to uninstall packages - -DEPRECATED= Does not support pkgng -EXPIRATION_DATE= 2015-01-06 - -USES= shebangfix -NO_BUILD= yes -NO_WRKSUBDIR= yes - -SHEBANG_FILES= pkg_remove -PLIST_FILES= bin/pkg_remove - -SRC= ${.CURDIR}/src - -do-fetch: - @${DO_NADA} - -do-extract: - @${MKDIR} ${WRKSRC} - @${CP} ${SRC}/pkg_remove.txt ${WRKSRC}/pkg_remove - -do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/pkg_remove ${STAGEDIR}${PREFIX}/bin - -.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 d4e00e8ccb73..000000000000 --- a/ports-mgmt/pkg_remove/pkg-descr +++ /dev/null @@ -1,15 +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. 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'; -} diff --git a/ports-mgmt/pkg_trackinst/Makefile b/ports-mgmt/pkg_trackinst/Makefile deleted file mode 100644 index d4e26e15ce51..000000000000 --- a/ports-mgmt/pkg_trackinst/Makefile +++ /dev/null @@ -1,24 +0,0 @@ -# Created by: Hye-Shik Chang <perky@FreeBSD.org> -# $FreeBSD$ - -PORTNAME= pkg_trackinst -PORTVERSION= 1.2.3 -PORTREVISION= 5 -CATEGORIES= ports-mgmt -MASTER_SITES= http://people.freebsd.org/~perky/distfiles/ - -MAINTAINER= olgeni@FreeBSD.org -COMMENT= PkgDB/pkg-plist generator by tracking installation - -DEPRECATED= Does not support pkgng, generates incorrect pkg-plist -EXPIRATION_DATE= 2015-01-06 - -USES= python -MAKE_ENV= PYTHON_CMD=${PYTHON_CMD} STAGEDIR=${STAGEDIR} -PLIST_SUB+= PYTHON_VER=${PYTHON_VER} VERSION=${PORTVERSION} - -post-patch: - ${REINPLACE_CMD} 's,/usr/local,${PREFIX},g' \ - ${WRKSRC}/PkgTrackInst/cmd_support.py - -.include <bsd.port.mk> diff --git a/ports-mgmt/pkg_trackinst/distinfo b/ports-mgmt/pkg_trackinst/distinfo deleted file mode 100644 index 31ba6c172ec5..000000000000 --- a/ports-mgmt/pkg_trackinst/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (pkg_trackinst-1.2.3.tar.gz) = dba8eaff03f848c3ea591d152c353d3023a0792696cd55b8bbcf0cded8bba641 -SIZE (pkg_trackinst-1.2.3.tar.gz) = 14273 diff --git a/ports-mgmt/pkg_trackinst/files/patch-Makefile b/ports-mgmt/pkg_trackinst/files/patch-Makefile deleted file mode 100644 index fc01e6979e27..000000000000 --- a/ports-mgmt/pkg_trackinst/files/patch-Makefile +++ /dev/null @@ -1,18 +0,0 @@ - -$FreeBSD$ - ---- Makefile.orig -+++ Makefile -@@ -12,9 +12,9 @@ - all: ${SHLIB_NAME} - - install: all -- ${INSTALL} ${STRIP} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ -- ${SHLIB_NAME} ${SHLIBDIR} -- ${PYTHON_CMD} setup.py install -c -O1 --prefix=${PREFIX} -+ ${INSTALL} ${STRIP} \ -+ ${SHLIB_NAME} ${STAGEDIR}${SHLIBDIR} -+ ${PYTHON_CMD} setup.py install -c -O1 --prefix=${PREFIX} --root=${STAGEDIR} - - sdist: - ${PYTHON_CMD} setup.py sdist diff --git a/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_PkgDbWriter.py b/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_PkgDbWriter.py deleted file mode 100644 index 128b856d9cd8..000000000000 --- a/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_PkgDbWriter.py +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- PkgTrackInst/PkgDbWriter.py.orig -+++ PkgTrackInst/PkgDbWriter.py -@@ -74,7 +74,7 @@ - print >> self.pkgfile('+COMMENT'), self.pkginfo['comment'] - print >> self.pkgfile('+DESC'), self.pkginfo['description'].strip() - -- mtree = open('/etc/mtree/BSD.local.dist').read() -+ mtree = open('/usr/ports/Templates/BSD.local.dist').read() - self.pkgfile('+MTREE_DIRS').write(mtree) - - def write_scripts(self): diff --git a/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_cmd__support.py b/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_cmd__support.py deleted file mode 100644 index 40b39ae76b78..000000000000 --- a/ports-mgmt/pkg_trackinst/files/patch-PkgTrackInst_cmd__support.py +++ /dev/null @@ -1,14 +0,0 @@ - -$FreeBSD$ - ---- PkgTrackInst/cmd_support.py.orig -+++ PkgTrackInst/cmd_support.py -@@ -24,7 +24,7 @@ - - INSTHOOK_PATH = '/usr/local/lib/insthook.so' - IGNORE_PATHS = ['/dev', '/tmp', '/var'] --MTREE_LOCAL = '/etc/mtree/BSD.local.dist' -+MTREE_LOCAL = '/usr/ports/Templates/BSD.local.dist' - - def errx(msg): - echo_msg(msg, sys.stderr) diff --git a/ports-mgmt/pkg_trackinst/pkg-descr b/ports-mgmt/pkg_trackinst/pkg-descr deleted file mode 100644 index 8a269dee84b4..000000000000 --- a/ports-mgmt/pkg_trackinst/pkg-descr +++ /dev/null @@ -1,13 +0,0 @@ -This package provides two commands: - - * pkg_trackinst: - Tracks installation of unpackaged software and writes pkgdb - entry using the install log. Then, it also creates a binary - package for the installed package. - - * pkg_genplist: - Tests a port installation and generates `pkg-plist' of a port - in current directory. - - * pkg_checkplist: - Tests a port installation and checks `pkg-plist' errors. diff --git a/ports-mgmt/pkg_trackinst/pkg-plist b/ports-mgmt/pkg_trackinst/pkg-plist deleted file mode 100644 index b5a25fdc8459..000000000000 --- a/ports-mgmt/pkg_trackinst/pkg-plist +++ /dev/null @@ -1,41 +0,0 @@ -bin/pkg_checkplist -bin/pkg_genplist -bin/pkg_trackinst -lib/insthook.so -%%PYTHON_SITELIBDIR%%/PkgTrackInst/InstallSession.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/InstallSession.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/InstallSession.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbInfoForm.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbInfoForm.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbInfoForm.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbWriter.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbWriter.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PkgDbWriter.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PlistWriter.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PlistWriter.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/PlistWriter.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/TerminalSlider.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/TerminalSlider.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/TerminalSlider.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/Trackers.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/Trackers.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/Trackers.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/__init__.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/__init__.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/__init__.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/checkplist_main.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/checkplist_main.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/checkplist_main.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/cmd_support.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/cmd_support.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/cmd_support.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/compat23.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/compat23.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/compat23.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/genplist_main.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/genplist_main.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/genplist_main.pyo -%%PYTHON_SITELIBDIR%%/PkgTrackInst/main.py -%%PYTHON_SITELIBDIR%%/PkgTrackInst/main.pyc -%%PYTHON_SITELIBDIR%%/PkgTrackInst/main.pyo -%%PYTHON_SITELIBDIR%%/pkg_trackinst-%%VERSION%%-py%%PYTHON_VER%%.egg-info diff --git a/ports-mgmt/portcheckout/Makefile b/ports-mgmt/portcheckout/Makefile deleted file mode 100644 index 0b402d900551..000000000000 --- a/ports-mgmt/portcheckout/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Created by: wosch -# $FreeBSD$ - -PORTNAME= portcheckout -PORTVERSION= 2.0 -PORTREVISION= 1 -CATEGORIES= ports-mgmt -MASTER_SITES= http://wolfram.schneider.org/src/ - -MAINTAINER= ports@FreeBSD.org -COMMENT= Checkout and build ports and all depending ports - -DEPRECATED= Uses ports cvs repo, which is long gone -EXPIRATION_DATE= 2015-01-06 - -USES= perl5 shebangfix uidfix -SHEBANG_FILES= ${PORTNAME}.pl -PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz - -post-patch: - ${REINPLACE_CMD} -e 's/cvs checkout/& -P/g; \ - s/\(exec\) \(pod2text\)/\1 "\2"/;' \ - ${WRKSRC}/${PORTNAME}.pl - -.include <bsd.port.mk> diff --git a/ports-mgmt/portcheckout/distinfo b/ports-mgmt/portcheckout/distinfo deleted file mode 100644 index 88f7f6b217c7..000000000000 --- a/ports-mgmt/portcheckout/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (portcheckout-2.0.tar.gz) = 7ded630e856411083b5f32dd0e769a6f46e34f980a01bc12f8d26170977e5ed4 -SIZE (portcheckout-2.0.tar.gz) = 4981 diff --git a/ports-mgmt/portcheckout/pkg-descr b/ports-mgmt/portcheckout/pkg-descr deleted file mode 100644 index d78a7e082585..000000000000 --- a/ports-mgmt/portcheckout/pkg-descr +++ /dev/null @@ -1,7 +0,0 @@ -The portcheckout(1) reads the /usr/ports/INDEX file and checks-out -a given port and its dependencies. This makes it easy to use the -ports system without having a full and up-to-date /usr/ports tree. - -A typical use would be to connect to the Internet, possibly download -a new INDEX and ports upgrade kit, download a port skeleton with -portcheckout(1), and then build the port. |