about summary refs log tree commit diff
path: root/Completion/Linux
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-08-22 15:03:11 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-08-22 15:03:11 +0000
commit3b01959864997c8b74b5a005a01f671227ab64f6 (patch)
tree6c1050e741a176c19b0c25a2877205bb967ce311 /Completion/Linux
parentc25a63a02f081bcf0adc47ba527f624fc411d5cf (diff)
downloadzsh-3b01959864997c8b74b5a005a01f671227ab64f6.tar.gz
zsh-3b01959864997c8b74b5a005a01f671227ab64f6.tar.xz
zsh-3b01959864997c8b74b5a005a01f671227ab64f6.zip
add new _pkgtool, _rar and _vorbis functions from 4.1
Diffstat (limited to 'Completion/Linux')
-rw-r--r--Completion/Linux/Command/.distfiles2
-rw-r--r--Completion/Linux/Command/_pkgtool53
2 files changed, 54 insertions, 1 deletions
diff --git a/Completion/Linux/Command/.distfiles b/Completion/Linux/Command/.distfiles
index 5968b219d..a5445a0a7 100644
--- a/Completion/Linux/Command/.distfiles
+++ b/Completion/Linux/Command/.distfiles
@@ -1,4 +1,4 @@
 DISTFILES_SRC='
 .distfiles
-_losetup _modutils _mondo _uml _valgrind
+_iptables _losetup _modutils _mondo _pkgtool _uml _valgrind
 '
diff --git a/Completion/Linux/Command/_pkgtool b/Completion/Linux/Command/_pkgtool
new file mode 100644
index 000000000..146467d36
--- /dev/null
+++ b/Completion/Linux/Command/_pkgtool
@@ -0,0 +1,53 @@
+#compdef installpkg upgradepkg removepkg pkgtool explodepkg makepkg 
+
+case "$service" in
+  installpkg)
+    _arguments \
+      '-warn[warn if files would be overwritten, but do not install]' \
+      '-root=[specify alternate install location]:root directory:_path_files -/' \
+      '-infobox[use dialog to draw an info box]' \
+      '-menu[confirm package installation with a menu]' \
+      "-ask[always ask on package installation regardless of package's priority]" \
+      '-priority[provide a priority for the entire package list to use]:priority list:(ADD REC OPT SKP)' \
+      '-tagfile[specify a different file to use for package priorities]:tagfile:_files -/' \
+      '*:package file:_files -g \*.tgz'
+  ;;
+
+  removepkg)
+    _arguments \
+      '-warn[list which files & directories would be removed, skip actual removal]' \
+      '-preserve[reconstruct complete package subtree in /tmp/preserved_packages]' \
+      '-copy[construct a copy of the package in /tmp/preserved_packages]' \
+      '-keep[save the intermediate files created]' \
+      '*:package:_files -W /var/log/packages/ -/'
+  ;;
+
+  upgradepkg)
+    _arguments \
+      '--install-new[install new packages in addition to upgrading existing ones]' \
+      '--reinstall[upgrade even when the same version is already installed]' \
+      '--verbose[show all the gory details of the upgrade]' \
+      '*:package file:_files -g \*.tgz'
+  ;;
+
+  explodepkg)
+    _wanted file expl 'package file' _files -g \*.tgz
+  ;;
+
+  makepkg)
+    _arguments -s \
+      '(--linkadd -l)'{--linkadd,-l}'[move symlinks into doinst.sh]:answer:(y n)' \
+      '(--chown -c)'{--chown,-c}'[reset all permissions to root:root 755]:answer:(y n)'
+  ;;
+
+  pkgtool)
+    _arguments \
+      "-sets[install the disk sets A, B, C]" \
+      "(-source_device)-source_mounted[don't attempt to unmount and remount source device with each disk]" \
+      '-ignore_tagfile[install every package encountered regardless of tagfiles]' \
+      '-tagfile[specify tagfile to be used for the installation]:tagfile:_files -/' \
+      '-source_dir[specify directory containing each disk subdirectory]:source directory:_path_files -/' \
+      '-target_dir[specify directory where the target root directory is located]:target directory:_path_files -W -/' \
+      '(-source_mounted)-source_device[specify source device to install from]:source device:{compadd "$expl[@]" /dev/*}'
+  ;;
+esac