summaryrefslogtreecommitdiff
path: root/Packages.txt
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2001-05-01 16:06:27 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2001-05-01 16:06:27 +0000
commit74198db1cf1106caa868f94df608ad20a820d9eb (patch)
treedb5b7e1888e3237be78d2e7680669b1d08fd9bc4 /Packages.txt
parent5efb6adb107a83625173658c43d5dd4e5cc54199 (diff)
downloadpkgsrc-74198db1cf1106caa868f94df608ad20a820d9eb.tar.gz
provide 2 examples of cdpack usage in the bulk->cdpack section. Suggested
by Hubert.
Diffstat (limited to 'Packages.txt')
-rw-r--r--Packages.txt34
1 files changed, 33 insertions, 1 deletions
diff --git a/Packages.txt b/Packages.txt
index c806f31215e..c949f1a12d5 100644
--- a/Packages.txt
+++ b/Packages.txt
@@ -1,4 +1,4 @@
-# $NetBSD: Packages.txt,v 1.154 2001/04/28 14:28:26 dmcmahill Exp $
+# $NetBSD: Packages.txt,v 1.155 2001/05/01 16:06:27 dmcmahill Exp $
###########################################################################
==========================
@@ -479,6 +479,38 @@ creating the ISO 9660 images. `cdpack' arranges the packages on the CD-ROM's
in a way that keeps all the dependencies for given package on the same
CD as that package.
+ 3.3.1 Example of cdpack
+ =============================
+
+Complete documentation for cdpack is found in cdpack(1). The following
+short example assumes that the binary packages are left in
+/usr/pkgsrc/packages/All and that sufficient disk space exists in /u2
+to hold the ISO 9660 images.
+
+ mkdir /u2/images
+ pkg_add /usr/pkgsrc/packages/All/cdpack
+ rehash
+ cdpack /usr/pkgsrc/packages/All /u2/images
+
+If you wish to include a common set of files (COPYRIGHT, README, etc)
+on each CD in the collection, then you need to create a directory which
+contains these files. For example
+
+ mkdir /tmp/common
+ echo "This is a README" > /tmp/commmon/README
+ echo "Another file" > /tmp/common/COPYING
+ mkdir /tmp/common/bin
+ echo "#!/bin/sh" > /tmp/common/bin/myscript
+ echo "echo Hello world" >> /tmp/common/bin/myscript
+ chmod 755 /tmp/common/bin/myscript
+
+Now create the images with
+
+ cdpack -x /tmp/common /usr/pkgsrc/packages/All /u2/images
+
+and each image will contain "README", "COPYING", and "bin/myscript"
+in their root directories.
+
====================================
Part II: Package Constructor's Guide
====================================