From 396f4b089b11a70de94eac21cb9ba3aca3fee281 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:44 +0000 Subject: [PATCH] dhelp support, sorta Author: jgg Date: 1999-02-02 02:19:46 GMT dhelp support, sorta --- debian/dhelp | 10 ++++++ debian/libapt-pkg-doc.dhelp | 61 ++++++++++++++++++++++++++++++++++ debian/libapt-pkg-doc.postinst | 10 ++++++ debian/libapt-pkg-doc.prerm | 11 ++++++ debian/postinst | 4 ++- debian/rules | 8 +++-- 6 files changed, 100 insertions(+), 4 deletions(-) create mode 100644 debian/dhelp create mode 100644 debian/libapt-pkg-doc.dhelp create mode 100755 debian/libapt-pkg-doc.postinst create mode 100755 debian/libapt-pkg-doc.prerm diff --git a/debian/dhelp b/debian/dhelp new file mode 100644 index 00000000..6f9ea465 --- /dev/null +++ b/debian/dhelp @@ -0,0 +1,10 @@ + +Debian +Debian Utilities +APT User's Guide +users-guide.html/index.html + +The APT User's Guide provides an overview of how to use the the APT package +manager, and provides a detailed look at the apt-get tool. + + diff --git a/debian/libapt-pkg-doc.dhelp b/debian/libapt-pkg-doc.dhelp new file mode 100644 index 00000000..cdf90680 --- /dev/null +++ b/debian/libapt-pkg-doc.dhelp @@ -0,0 +1,61 @@ + +devel +Development Tools +APT Cache Specification +/usr/doc/apt/cache.html/index.html + +The APT Cache Specification describes the complete implementation and +format of the APT Cache file. The APT Cache file is a way for APT to parse +and store a large number of package files for display in the UI. It's primary +design goal is to make display of a single package in the tree very +fast by pre-linking important things like dependencies and provides. +The specification doubles as documentation for one of the in-memory +structures used by the package library and the APT GUI. + + + + +devel +Development Tools +APT Design Document +/usr/doc/apt/design.html/index.html + +The APT Design Document is an overview of the specifications and design goals +of the APT project. It also attempts to give a broad description of the +implementation as well. + + + + +devel +Development Tools +DPkg Technical Manual +/usr/doc/apt/design.html/index.html + +The DPkg Technical Manual gives an overview of dpkg's external functions +and describes how it views the world. + + + + +devel +Development Tools +APT Files +/usr/doc/apt/files.html/index.html + +The APT Files document describes the complete implementation and format of +the installed APT directory structure. It also serves as guide to how +APT views the Debian archive. + + + + +devel +Development Tools +APT Method Interface +/usr/doc/apt/files.html/index.html + +The APT Method Interface document describes the interface that APT uses to +the archive access methods. + + diff --git a/debian/libapt-pkg-doc.postinst b/debian/libapt-pkg-doc.postinst new file mode 100755 index 00000000..250bd190 --- /dev/null +++ b/debian/libapt-pkg-doc.postinst @@ -0,0 +1,10 @@ +#! /bin/sh + +case "$1" in + configure) + if [ -f /usr/sbin/dhelp_parse ]; then + #/usr/sbin/dhelp_parse -a /usr/doc/libapt-pkg-doc + fi + ;; +esac + diff --git a/debian/libapt-pkg-doc.prerm b/debian/libapt-pkg-doc.prerm new file mode 100755 index 00000000..6893d2cd --- /dev/null +++ b/debian/libapt-pkg-doc.prerm @@ -0,0 +1,11 @@ +#! /bin/sh + +case "$1" in + remove|upgrade|remove-in-favour|deconfigure-in-favour) + if [ -f /usr/sbin/dhelp_parse ]; then + #/usr/sbin/dhelp_parse -d /usr/doc/libapt-pkg-doc + fi + ;; + failed-upgrade) + ;; +esac diff --git a/debian/postinst b/debian/postinst index 3de05418..87476bfc 100755 --- a/debian/postinst +++ b/debian/postinst @@ -46,6 +46,8 @@ case "$1" in else check_apt_conf fi - + if [ -f /usr/sbin/dhelp_parse ]; then + /usr/sbin/dhelp_parse -a /usr/doc/apt + fi esac diff --git a/debian/rules b/debian/rules index 0ee846a5..9ea0d45c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,7 @@ # Made with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Christoph Lameter. -# $Id: rules,v 1.3 1999/01/28 06:42:27 jgg Exp $ +# $Id: rules,v 1.4 1999/02/02 02:19:46 jgg Exp $ # Uncomment this to turn on verbose mode. @@ -61,7 +61,8 @@ apt: build cp build/docs/guide.text debian/tmp/usr/doc/apt/users-guide.txt mkdir debian/tmp/usr/doc/apt/users-guide.html/ cp -a build/docs/guide.html/* debian/tmp/usr/doc/apt/users-guide.html/ - + cp -a debian/dhelp debian/tmp/usr/doc/apt/.dhelp + # head -n 500 ChangeLog > debian/ChangeLog dh_installdocs -papt @@ -109,10 +110,11 @@ libapt-pkg-doc: build dh_testdir -plibapt-pkg-doc dh_testroot -plibapt-pkg-doc dh_clean -plibapt-pkg-doc -k - dh_installdirs -plibapt-pkg-doc usr/doc/apt + dh_installdirs -plibapt-pkg-doc usr/doc/apt usr/doc/libapt-pkg-doc cp -a build/docs/cache* build/docs/design* build/docs/dpkg-tech* \ build/docs/files* build/docs/method* debian/libapt-pkg-doc/usr/doc/apt/ +# sigh cp -a debian/libapt-pkg-doc.dhelp debian/libapt-pkg-doc/usr/doc/libapt-pkg-doc/.dhelp dh_installdocs -plibapt-pkg-doc dh_installchangelogs -plibapt-pkg-doc -- 2.20.1