145882753d
portupgrade, portversion, pkg_deinstall, pkg_glob: Introduce the configuration file `pkgtools.conf' for the pkgtools suite. Currently portupgrade(1), portversion(1), pkg_deinstall(1) and pkg_glob(1) use it. Add a new option -q/--no-config to avoid reading the configuration file. Introduce dependency sanity checks. If an inconsistency is detected, immediately abort a process suggesting the user should run `pkgdb -F'. Add a new option -O/--omit-check to omit the sanity checks. pkgdb: Fix the origin guesser's minor bug when the origin port directory does not exist. portupgrade: Add a new option -y/--yes, which lets portupgrade assume user answers yes to all the questions. Make sure to ask user where it should. (Get -N and -i right) Fix a bug where portinstall -i didn't work interactively. [Submitted by: Gregory Neil Shapiro <gshapiro@gshapiro.net>] portsdb: Attempt to offer fast INDEX generation. Now it generates an INDEX file more than a few minutes faster. overall: Emit a warning when pkgdb cannot be updated though it is not up-to-date. Finally remove -E/--regex. Use the ':RE' glob pattern instead.
48 lines
1.6 KiB
Text
48 lines
1.6 KiB
Text
etc/rc.d/000.pkgtools.sh
|
|
@exec /bin/mkdir -p %D/lib/compat/pkg
|
|
@unexec /bin/rmdir %D/lib/compat/pkg 2>/dev/null || true
|
|
sbin/make_describe_pass1
|
|
sbin/make_describe_pass2
|
|
sbin/pkg_deinstall
|
|
sbin/pkg_fetch
|
|
sbin/pkg_glob
|
|
sbin/pkgdb
|
|
sbin/portcvsweb
|
|
sbin/portinstall
|
|
sbin/ports_glob
|
|
sbin/portsclean
|
|
sbin/portsdb
|
|
sbin/portupgrade
|
|
sbin/portversion
|
|
%%RUBY_SITELIBDIR%%/pkg.rb
|
|
%%RUBY_SITELIBDIR%%/pkgdb.rb
|
|
%%RUBY_SITELIBDIR%%/pkginfo.rb
|
|
%%RUBY_SITELIBDIR%%/pkgmisc.rb
|
|
%%RUBY_SITELIBDIR%%/pkgtools.rb
|
|
%%RUBY_SITELIBDIR%%/pkgversion.rb
|
|
%%RUBY_SITELIBDIR%%/portinfo.rb
|
|
%%RUBY_SITELIBDIR%%/ports.rb
|
|
%%RUBY_SITELIBDIR%%/portsdb.rb
|
|
%%RUBY_SITELIBDIR%%/tsort.rb
|
|
@unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi
|
|
etc/pkgtools.conf.sample
|
|
@exec [ ! -f %B/pkgtools.conf ] && cp %B/%f %B/pkgtools.conf
|
|
share/zsh/site-functions/_pkg_deinstall
|
|
share/zsh/site-functions/_pkg_fetch
|
|
share/zsh/site-functions/_pkg_glob
|
|
share/zsh/site-functions/_pkgdb
|
|
share/zsh/site-functions/_portsclean
|
|
share/zsh/site-functions/_portsdb
|
|
share/zsh/site-functions/_portupgrade
|
|
share/zsh/site-functions/_portversion
|
|
@unexec rmdir %D/share/zsh/site-functions 2>/dev/null || true
|
|
@unexec rmdir %D/share/zsh 2>/dev/null || true
|
|
%%PORTDOCS%%share/examples/portupgrade/bash/complete.sample
|
|
%%PORTDOCS%%@dirrm share/examples/portupgrade/bash
|
|
%%PORTDOCS%%share/examples/portupgrade/tcsh/complete.sample
|
|
%%PORTDOCS%%@dirrm share/examples/portupgrade/tcsh
|
|
%%PORTDOCS%%@dirrm share/examples/portupgrade
|
|
%%PORTDOCS%%share/doc/portupgrade/ChangeLog
|
|
%%PORTDOCS%%share/doc/portupgrade/README
|
|
%%PORTDOCS%%@dirrm share/doc/portupgrade
|
|
@exec rm -f /var/db/pkg/pkgdb.byfile.db
|