Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
add pkg-convert(8) man page and update zsh completion
Sofian Brabez committed 13 years ago
commit cbb4941d3368ff5b33d3fc74f942c839bfacdc55
parent 4dfbbd9
3 files changed +78 -0
modified pkg/Makefile
@@ -72,6 +72,7 @@ MAN= pkg.8 \
	pkg-autoremove.8 \
	pkg-backup.8 \
	pkg-check.8 \
+
	pkg-convert.8 \
	pkg-clean.8 \
	pkg-create.8 \
	pkg-delete.8 \
added pkg/pkg-convert.8
@@ -0,0 +1,68 @@
+
.\"
+
.\" FreeBSD pkg - a next generation package for the installation and maintenance
+
.\" of non-core utilities.
+
.\"
+
.\" 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.
+
.\"
+
.\"
+
.\"     @(#)pkg.8
+
.\" $FreeBSD$
+
.\"
+
.Dd February 05, 2013
+
.Dt PKG-CONVERT 8
+
.Os
+
.Sh NAME
+
.Nm "pkg convert"
+
.Nd convert from/to pkgng database format
+
.Sh SYNOPSIS
+
.Nm
+
.Op Fl r
+
.Sh DESCRIPTION
+
.Nm
+
is used to convert from/to pkgng local database to legacy pkg_install tools
+
format.
+
.Sh OPTIONS
+
The following options are supported by
+
.Nm :
+
.Bl -tag -width F1
+
.It Fl r
+
Revert conversion
+
.El
+
.Sh FILES
+
See
+
.Xr pkg.conf 5 .
+
.Sh SEE ALSO
+
.Xr pkg.conf 5 ,
+
.Xr pkg 8 ,
+
.Xr pkg-add 8 ,
+
.Xr pkg-audit 8 ,
+
.Xr pkg-autoremove 8 ,
+
.Xr pkg-backup 8 ,
+
.Xr pkg-check 8 ,
+
.Xr pkg-clean 8 ,
+
.Xr pkg-create 8 ,
+
.Xr pkg-delete 8 ,
+
.Xr pkg-fetch 8 ,
+
.Xr pkg-info 8 ,
+
.Xr pkg-install 8 ,
+
.Xr pkg-lock 8 ,
+
.Xr pkg-query 8 ,
+
.Xr pkg-register 8 ,
+
.Xr pkg-repo 8 ,
+
.Xr pkg-rquery 8 ,
+
.Xr pkg-search 8 ,
+
.Xr pkg-set 8 ,
+
.Xr pkg-shlib 8 ,
+
.Xr pkg-stats 8 ,
+
.Xr pkg-update 8 ,
+
.Xr pkg-updating 8 ,
+
.Xr pkg-upgrade 8 ,
+
.Xr pkg-version 8 ,
+
.Xr pkg-which 8
modified scripts/zsh/_pkg
@@ -19,7 +19,10 @@ _pkg() {
	'-d[Increment debug level]'
	'-j[Execute pkg(1) inside a jail(8)]:jail:'
	'-c[Execute pkg(1) inside a chroot(8)]:chroot:_files -/'
+
	'-C[Use the specified configuration file]'
+
	'-l[List available command and exit'
	'-v[Display pkg(1) version]'
+
	'-N[Test if pkg(1) is activated and avoid auto-activation]'
	)

	subcmd=(
@@ -29,6 +32,7 @@ _pkg() {
		'backup[Backs-up and restores the local package database]'
		'check[Checks for missing dependencies and database consistency]'
		'clean[Cleans old packages from the cache]'
+
		'convert[Convert database from/to pkgng]'
		'create[Creates software package distributions]'
		'delete[Deletes packages from the database and the system]'
		'fetch[Fetches packages from a remote repository]'
@@ -106,6 +110,11 @@ _pkg() {
		(clean)
			return 0
			;;
+
		(convert)
+
			_arguments -s \
+
				'-r[Revert conversion]' \
+
				&& return 0
+
			;;
		(create)
			_arguments -s \
				'-r[Root directory]:rootdir:_files -/' \