[equivs] 02/36: Import Debian version 1.999.12
Axel Beckert
abe at deuxchevaux.org
Fri Jul 28 23:04:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository equivs.
commit 45f9cb2f6e84d90b73f8ddb1b7a25ef88e87d2ac
Author: Martin Bialasinski <martinb at debian.org>
Date: Sun Oct 31 02:48:59 1999 +0100
Import Debian version 1.999.12
equivs (1.999.12) unstable; urgency=low
* Fixed some perl -w warnings
equivs (1.999.11) unstable; urgency=low
* Standards Version 3.0.1 also in the equivs-control template
equivs (1.999.10) unstable; urgency=low
* Made FHS complient.
* Changed license location in copyright file
* Standard 3.0.1 in the template
equivs (1.999.9) unstable; urgency=low
* Depende on perl|perl5, so that the package can still be used with slink
equivs (1.999.8) unstable; urgency=low
* Added dependency on perl (lintian)
* corrected spelling (lintian)
equivs (1.999.7) unstable; urgency=low
* Added a Extra-Files: field to the control file where one can add
files to be put into /usr/doc/packagename
* Added the --full option, that makes a full build using debuild,
suitable for upload to the distribution
equivs (1.999.6) unstable; urgency=low
* Added the Readme, Copyright and Changelog fields, so one can
use own files
* Renamed make-control to equivs-control and
make-equivs to equivs-build
Makes it easier for tab completition. I had to look up the
names after some time not working on equivs, so the scripts were
obviously named wrong.
* Added version header in template control file (Closes #39959)
* Added manpages (Closes #38148)
equivs (1.999.5) unstable; urgency=low
* Fixed typos in the examples. Closing #36354
Thanks to "Carl R. Witty" <cwitty at newtonlabs.com>
equivs (1.999.4) unstable; urgency=low
* Examples for Staroffice and Word Perfect were foobar
equivs (1.999.3) unstable; urgency=low
* Make the config parse routine chop trailing whitespace
* Removed call of dh_link from template rules file, as it is not necessary.
Fixes #31670
* Fixed spelling error in description
* Added a small check, if the equivs directory is not a symlink
before removing it
* Changed Depends: fakeroot to Depends: libtricks | fakeroot, until a new
version of libtricks is released, which provides fakeroot (#31682)
* Added an example config for a locally installed MTA
equivs (1.999.2) unstable; urgency=low
* Forgot about the "Provides:" dependency
* Added a umask call, as somehow the README.Debian file was not copied
correctly
* Fixes wishlist bug #27215
equivs (1.999.1) unstable; urgency=low
* New Maintainer
* Complete rewrite. Instead recreating the equivs package, one now
creates new fake packages
* No problem with apt anymore. To apt, the information fetched from
it's sources has precedence over information hold localy by dpkg.
So a recompiled equivs packages was not recognised correctly.
* Changed versionnumber to a debian-only one.
---
debian/README.Debian | 107 ++++++
debian/README.debian | 61 ----
debian/TODO | 2 +
debian/changelog | 104 ++++++
debian/control | 24 +-
debian/copyright | 20 +-
debian/dirs | 3 +
debian/equivs-build.pod | 87 +++++
debian/equivs-control.pod | 40 +++
debian/example.conf | 1 -
debian/examples | 5 +
debian/postinst | 5 -
debian/preinst | 7 -
debian/purge | 1 -
debian/rules | 109 ++++---
examples/communicator45-full.ctl | 9 +
examples/mail-transport-agent.ctl | 7 +
examples/so5.ctl | 10 +
examples/webserver.ctl | 10 +
examples/wp8.ctl | 10 +
usr/bin/equivs-build | 361 +++++++++++++++++++++
usr/bin/equivs-control | 11 +
usr/lib/equivs/template.ctl | 21 ++
usr/lib/equivs/template/debian/README.Debian.in | 20 ++
.../lib/equivs/template/debian/control.in | 17 +-
.../lib/equivs/template/debian}/copyright | 5 +-
usr/lib/equivs/template/debian/rules | 52 +++
27 files changed, 948 insertions(+), 161 deletions(-)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..0a1e3ca
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,107 @@
+equivs for DEBIAN
+-----------------
+
+This is a package, that creates Debian packages that can be
+used to inform dpkg about localy installed packages and their
+dependencies. Also empty packages that just require other packages
+can be created with equivs. These can be used as "profile" packages
+that just mark otherones for installation.
+
+Please note that this is a crude hack and if thoughtlessly used
+might possibly do damage to your packaging system. And please
+note as well that using it is not the recommended way of dealing
+with broken dependencies. Better file a bug report instead.
+
+In contrast to prior versions of equivs, it does not recreate the
+equivs package, but creates new dummy packages.
+
+History of the package: (by Paul Seelig)
+-----------------------
+
+I once made this package based on my preference to run my own
+installation of teTeX in "/usr/local/" because i didn't want to
+depend on any package maintainer's update frequency. On the other
+hand i still wanted to take advantage of other TeX/LaTeX packages
+which depend upon the Debian teTeX packages. While Debian's teTeX
+maintainer does an incredibly fine job i wanted to be able to
+take advantage of Thomas Esser's update shell scripts as soon as
+they come out. In this very special case the needed "Provides:"
+field of the 'equivs' control file had to contain the entries
+"tetex-base, tetex-bin, tetex-dev, tetex-doc, tetex-extra".
+
+The idea for this package is BTW based upon an article in the
+teTeX mailing list by Markus Dickebohm <m.dickebohm at uni-koeln.de>
+on 10 Dec 1996 21:40:50 +0100 with the subject "Re: [TETEX 1551]
+teTeX for Debian Linux?". Thanks a lot, Markus! :-)
+
+How to use this package:
+------------------------
+
+When you call the "equivs-build" program, it will create a
+subdirectory "equivs", containing the files necessary to create
+a Debian package and build that package.
+
+You need a control file for make-equivs. You will find examples
+of control files in /usr/doc/equivs/examples.
+
+The control file has a structure like the control files in "real"
+Debian packages, but it doesn't have to define all keys, as default
+ones will be used, if you omit one.
+
+There are four additional fields that can be used:
+
+- Changelog: file to be used as the changelog
+
+- Version: if you don't use a local changelog, equivs will create a
+ dummy one. As the version of the package is defined in the
+ changelog, equivs will asume the version 1.0. With this
+ field, you can set an explicit version.
+
+- Readme: a file to be used as the README.Debian file. You can use the
+ strings �packagename� and �depends� to insert the package
+ name and the dependency information used.
+
+- Copyright: the copyright file to by used. If ommited, the GPL 2
+ will be used.
+
+- Extra-Files: A comma-seperated list of files to copy to the
+ /usr/doc/packagename directory.
+
+
+Check the Debian Packaging Manual Chapter 8, if you are unsure
+about the different level of package relationsships (dependencies)
+http://www.debian.org/doc/packaging-manuals/packaging.html/ch-relationships.html
+, also available in the packaging-manual package.
+
+You can create full packages, suitable for a upload
+to the Debian servers. To do this, use the option
+--full or -f, and equivs-build will use debuild to create the package.
+
+The ID used to signed is taken from, in that order, the User from
+the last entry of a supplied changelog, the Maintainer: field in the
+equivs control file, the local username.
+
+
+The program "equivs-control" will create a dummy control file
+you have to alter to be useful.
+
+So to use equivs, you do:
+
+a. cd /tmp
+
+b.1. equivs-control ns-control
+or
+b.2. cp /usr/doc/equivs/examples/<a control file> ns-control
+
+c. edit ns-control
+
+d. equivs-build ns-control
+
+e. su -
+
+f. dpkg -i /tmp/ns-dummy_1.0_all.deb
+
+Deinstallation of this package is only possible when all pending
+dependency issues are properly resolved in some other way.
+
+Martin Bialasinski <martinb at debian.org>, Mon, 4 Jan 1999 12:35:16 +0100
diff --git a/debian/README.debian b/debian/README.debian
deleted file mode 100644
index 4fc1d4f..0000000
--- a/debian/README.debian
+++ /dev/null
@@ -1,61 +0,0 @@
-equivs for DEBIAN
------------------
-
-This is a dummy package that makes Debian's package management
-system believe that equivalents to packages on which other
-packages do depend on are actually installed.
-
-Please note that this is a crude hack and if thoughtlessly used
-might possibly do damage to your packaging system. And please
-note as well that using it is not the recommended way of dealing
-with broken dependencies. Better file a bug report instead.
-
-I once made this package based on my preference to run my own
-installation of teTeX in "/usr/local/" because i didn't want to
-depend on any package maintainer's update frequency. On the other
-hand i still wanted to take advantage of other TeX/LaTeX packages
-which depend upon the Debian teTeX packages. While Debian's teTeX
-maintainer does an incredibly fine job i wanted to be able to
-take advantage of Thomas Esser's update shell scripts as soon as
-they come out. In this very special case the needed "Provides:"
-field of the 'equivs' control file had to contain the entries
-"tetex-base, tetex-bin, tetex-dev, tetex-doc, tetex-extra".
-
-The idea for this package is BTW based upon an article in the
-teTeX mailing list by Markus Dickebohm <m.dickebohm at uni-koeln.de>
-on 10 Dec 1996 21:40:50 +0100 with the subject "Re: [TETEX 1551]
-teTeX for Debian Linux?". Thanks a lot, Markus! :-)
-
-How to use this package:
-------------------------
-
-Install the sources for this package by either untarring it
-manually to wherever you please or simply by the Debian way of
-executing "dpkg-source -x equivs_*.dsc", which will install it
-into "/usr/src/equivs-1.0x/".
-
-Edit the configuration file "/etc/equivs.conf" into which you
-should insert the package names 'equivs' is supposed to provide.
-This will be added to the "Provides:" field of the 'control' file
-upon repackaging of the 'equivs' .deb archive. Note that this has
-to be just *one* single line without any trailing newline
-character and that the package names are to be separated by
-commas like shown in the example file 'example.conf' in the
-sources directory. Move into the directory where the sources
-reside and then run the command "debian/rules binary" under the
-superuser ID "root" to build the final package.
-
-The resulting new "equivs_*_all.deb" file which has been build
-one directory level up can then be cleanly installed executing
-"dpkg -i equivs_*_all.deb". After a succesful installation
-'dselect' won't molest you again about unfulfilled dependencies
-and other silly nuisances.
-
-Deinstallation of this package is only possible when all pending
-dependency issues are properly resolved in some other way. A more
-brutal approach for it's deinstallation is to create and install
-'equivs' configured using an empty "/etc/equivs.conf" (or simply
-delete it) to remove all of the existing dependencies with any
-installed package on the system.
-
-Paul Seelig <pseelig at goofy.zdv.uni-mainz.de>, Sat, 07 Feb 1997 16:30:03 +0100
diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..f104141
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,2 @@
+Man files for the scripts
+"Usage" message in the scripts
diff --git a/debian/changelog b/debian/changelog
index 8a39245..6cb8529 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,107 @@
+equivs (1.999.12) unstable; urgency=low
+
+ * Fixed some perl -w warnings
+
+ -- Martin Bialasinski <martinb at debian.org> Sun, 31 Oct 1999 02:48:59 +0100
+
+equivs (1.999.11) unstable; urgency=low
+
+ * Standards Version 3.0.1 also in the equivs-control template
+
+ -- Martin Bialasinski <martinb at debian.org> Thu, 23 Sep 1999 22:11:20 +0200
+
+equivs (1.999.10) unstable; urgency=low
+
+ * Made FHS complient.
+ * Changed license location in copyright file
+ * Standard 3.0.1 in the template
+
+ -- Martin Bialasinski <martinb at debian.org> Thu, 16 Sep 1999 17:28:39 +0200
+
+equivs (1.999.9) unstable; urgency=low
+
+ * Depende on perl|perl5, so that the package can still be used with slink
+
+ -- Martin Bialasinski <martinb at debian.org> Thu, 29 Jul 1999 23:42:19 +0200
+
+equivs (1.999.8) unstable; urgency=low
+
+ * Added dependency on perl (lintian)
+ * corrected spelling (lintian)
+
+ -- Martin Bialasinski <martinb at debian.org> Wed, 7 Jul 1999 03:47:20 +0200
+
+equivs (1.999.7) unstable; urgency=low
+
+ * Added a Extra-Files: field to the control file where one can add
+ files to be put into /usr/doc/packagename
+ * Added the --full option, that makes a full build using debuild,
+ suitable for upload to the distribution
+
+ -- Martin Bialasinski <martinb at debian.org> Thu, 24 Jun 1999 21:37:57 +0200
+
+equivs (1.999.6) unstable; urgency=low
+
+ * Added the Readme, Copyright and Changelog fields, so one can
+ use own files
+ * Renamed make-control to equivs-control and
+ make-equivs to equivs-build
+ Makes it easier for tab completition. I had to look up the
+ names after some time not working on equivs, so the scripts were
+ obviously named wrong.
+ * Added version header in template control file (Closes #39959)
+ * Added manpages (Closes #38148)
+
+ -- Martin Bialasinski <martinb at debian.org> Tue, 22 Jun 1999 23:11:10 +0200
+
+equivs (1.999.5) unstable; urgency=low
+
+ * Fixed typos in the examples. Closing #36354
+ Thanks to "Carl R. Witty" <cwitty at newtonlabs.com>
+
+ -- Martin Bialasinski <martinb at debian.org> Tue, 20 Apr 1999 18:23:16 +0200
+
+equivs (1.999.4) unstable; urgency=low
+
+ * Examples for Staroffice and Word Perfect were foobar
+
+ -- Martin Bialasinski <martinb at debian.org> Sun, 18 Apr 1999 15:24:35 +0200
+
+equivs (1.999.3) unstable; urgency=low
+
+ * Make the config parse routine chop trailing whitespace
+ * Removed call of dh_link from template rules file, as it is not necessary.
+ Fixes #31670
+ * Fixed spelling error in description
+ * Added a small check, if the equivs directory is not a symlink
+ before removing it
+ * Changed Depends: fakeroot to Depends: libtricks | fakeroot, until a new
+ version of libtricks is released, which provides fakeroot (#31682)
+ * Added an example config for a locally installed MTA
+
+ -- Martin Bialasinski <martinb at debian.org> Wed, 6 Jan 1999 21:13:37 +0100
+
+equivs (1.999.2) unstable; urgency=low
+
+ * Forgot about the "Provides:" dependency
+ * Added a umask call, as somehow the README.Debian file was not copied
+ correctly
+ * Fixes wishlist bug #27215
+
+ -- Martin Bialasinski <martinb at debian.org> Wed, 6 Jan 1999 13:24:59 +0100
+
+equivs (1.999.1) unstable; urgency=low
+
+ * New Maintainer
+ * Complete rewrite. Instead recreating the equivs package, one now
+ creates new fake packages
+ * No problem with apt anymore. To apt, the information fetched from
+ it's sources has precedence over information hold localy by dpkg.
+ So a recompiled equivs packages was not recognised correctly.
+ * Changed versionnumber to a debian-only one.
+
+ -- Martin Bialasinski <martinb at debian.org> Mon, 4 Jan 1999 12:35:16 +0100
+
equivs (1.0.5-3) unstable; urgency=low
* Upgraded to standards version 2.4.0.0 (no changes).
diff --git a/debian/control b/debian/control
index b393171..7d2d388 100644
--- a/debian/control
+++ b/debian/control
@@ -1,24 +1,26 @@
Source: equivs
Section: admin
Priority: optional
-Maintainer: Paul Seelig <pseelig at goofy.zdv.uni-mainz.de>
-Standards-Version: 2.4.0.0
+Maintainer: Martin Bialasinski <martinb at debian.org>
+Standards-Version: 3.0.1
Package: equivs
+Depends: perl|perl5, debhelper, dpkg-dev, devscripts, make, fakeroot
Architecture: all
-Provides:
Description: Circumventing Debian package dependencies
- This is a dummy package that makes Debian's package management
+ This is a dummy package which can be used to create Debian
+ packages, which only contain dependency information.
+ .
+ This way, you can make the Debian package management
system believe that equivalents to packages on which other
packages do depend on are actually installed.
.
- Deinstallation of this package is only possible when all pending
- dependency issues are properly resolved in some other way. A more
- brutal approach for it's deinstallation is to create and install
- 'equivs' configured using an empty "/etc/equivs.conf" (or simply
- delete it) to remove all of the existing dependencies with any
- installed package on the system.
- .
+ Another possibility is creation of a meta package. When this
+ package contains a dependency as "Depends: a, b, c", then
+ installing this package will also select packages a, b and c.
+ Instead of "Depends", you can also use "Recommends:" or
+ "Suggests:" for less demanding dependency.
+ .
Please note that this is a crude hack and if thoughtlessly used
might possibly do damage to your packaging system. And please
note as well that using it is not the recommended way of dealing
diff --git a/debian/copyright b/debian/copyright
index a98a067..f982330 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,19 +1,13 @@
Copyright 1997 by Paul Seelig <pseelig at goofy.zdv.uni-mainz.de>
+Copyright 1999 by Martin Bialasinski <agr30 at uni-koeln.de>
The files in this package are free software; you can redistribute them
and/or modify them under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2, or (at
-your option) any later version.
-
-The files in this package are distributed in the hope that they will
-be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
-of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-with your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with
-the Debian GNU/Linux bash source package as the file COPYING.
-If not, write to the Free Software Foundation, Inc., 59 Temple Place -
-Suite 330, Boston, MA 02111-1307, USA.
-
+your option) any later version. Full text of the license can be found
+at /usr/doc/copyright/GPL
+For the control file parser used in make-equivs:
+doc-base Copyright (C) 1997,1998 Christian Schwarz,
+Also licensed under the GPL2
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..856b78c
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,3 @@
+usr/lib/equivs
+usr/lib/equivs/debian
+usr/bin
\ No newline at end of file
diff --git a/debian/equivs-build.pod b/debian/equivs-build.pod
new file mode 100644
index 0000000..c9b9ae6
--- /dev/null
+++ b/debian/equivs-build.pod
@@ -0,0 +1,87 @@
+=head1 NAME
+
+equivs-build - make a debian package to register local software
+
+=head1 SYNOPSIS
+
+B<equivs-build [--full|-f] controlfile>
+
+=head1 DESCRIPTION
+
+This is a package, that creates Debian packages that can be
+used to inform dpkg about localy installed packages and their
+dependancies. Also empty packages that just require other packages
+can be created with equivs. These can be used as "profile" packages
+that just mark otherones for installation.
+
+Please note that this is a crude hack and if thoughtlessly used
+might possibly do damage to your packaging system. And please
+note as well that using it is not the recommended way of dealing
+with broken dependencies. Better file a bug report instead.
+
+The control file has a structure like the control files in "real"
+Debian packages, but it doesn't have to define all keys, as default
+ones will be used, if you omit one.
+
+There are four additional fields that can be used:
+
+=over 4
+
+=item Changelog:
+
+File to be used as the changelog
+
+=item Version:
+
+If you don't use a local changelog, equivs will create a
+dummy one. As the version of the package is defined in the
+changelog, equivs will asume the version 1.0. With this
+field, you can set an explicit version.
+
+=item Readme:
+
+A file to be used as the README.Debian file. You can use the
+strings �packagename� and �depends� to insert the package
+name and the dependency information used.
+
+=item Copyright:
+
+The copyright file to by used. If ommited, the GPL 2
+will be used.
+
+=item Extra-Files:
+
+A comma-seperated list of files to copy to the
+/usr/doc/packagename directory.
+
+=back
+
+See /usr/doc/equivs/README.Debian for more information.
+
+=head1 OPTIONS
+
+=over 4
+
+=item --full | -f
+
+Do a complete build. debuild will be called, that is a
+full package will be build and signed, suitable for a upload
+to the Debian servers.
+
+The ID used to signed is taken from, in that order, the User from
+the last entry of a supplied changelog, the Maintainer: field in the
+equivs control file, the local username.
+
+=back
+
+=head1 DISTRIBUTION
+
+Distribution is subject to the GNU public licence version 2.
+
+=head1 AUTHOR
+
+Martin Bialasinski <martinb at debian.org>
+
+=head1 SEE ALSO
+
+equivs-control(1), /usr/doc/equivs/README.Debian
diff --git a/debian/equivs-control.pod b/debian/equivs-control.pod
new file mode 100644
index 0000000..7a3033d
--- /dev/null
+++ b/debian/equivs-control.pod
@@ -0,0 +1,40 @@
+=head1 NAME
+
+make-control - create a configuration file for make-equivs
+
+=head1 SYNOPSIS
+
+B<make-control filename>
+
+=head1 DESCRIPTION
+
+This programm copies a template control file as needed by
+the make-equivs command as the specified filename.
+
+You then have to edit the created file to reflect your choices.
+The controlfile has the form used by regular controlfiles
+in source packages. You can delete the unneeded fields
+in the generated file.
+
+=head1 FILES
+
+=over 4
+
+=item F</usr/lib/equivs/template.ctl>
+
+This is the template file that gets copied to the given filename.
+
+=back
+
+=head1 DISTRIBUTION
+
+Distribution is subject to the GNU public licence version 2.
+
+=head1 AUTHOR
+
+Martin Bialasinski <martinb at debian.org>
+
+=head1 SEE ALSO
+
+equivs-build(1)
+
diff --git a/debian/example.conf b/debian/example.conf
deleted file mode 100644
index 08d00c3..0000000
--- a/debian/example.conf
+++ /dev/null
@@ -1 +0,0 @@
-tetex-base, tetex-bin, tetex-dev, tetex-doc, tetex-extra
\ No newline at end of file
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..d89f843
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1,5 @@
+examples/communicator45-full.ctl
+examples/so5.ctl
+examples/wp8.ctl
+examples/webserver.ctl
+examples/mail-transport-agent.ctl
diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644
index 5c10945..0000000
--- a/debian/postinst
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-if [ ! -f /etc/equivs.conf ]; then
- touch /etc/equivs.conf
-fi
diff --git a/debian/preinst b/debian/preinst
deleted file mode 100644
index 108815f..0000000
--- a/debian/preinst
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-if [ -f /usr/doc/equivs/current.conf ]; then
- if [ ! -f /etc/equivs.conf ]; then
- mv /usr/doc/equivs/current.conf /etc/equivs.conf
- fi
-fi
\ No newline at end of file
diff --git a/debian/purge b/debian/purge
deleted file mode 100644
index eb980df..0000000
--- a/debian/purge
+++ /dev/null
@@ -1 +0,0 @@
-/etc/equivs.conf
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 638e874..138b56e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,63 +1,72 @@
#!/usr/bin/make -f
-# Sample debian.rules file - for GNU Hello (1.3).
-# Copyright 1994,1995 by Ian Jackson.
-# I hereby give you perpetual unlimited permission to copy,
-# modify and relicense this file, provided that you do not remove
-# my name from the file itself. (I assert my moral right of
-# paternity under the Copyright, Designs and Patents Act 1988.)
-# This file may have to be extensively modified
-#
-# Modified to be a prototype for debmake by Christoph Lameter <clameter at debian.org>
-
-package=equivs
-version=1.0.5
-
-build:
- @echo >&2 ''
- @echo >&2 'There is nothing needed to be build! Just edit debian/equivs.conf'
- @echo >&2 'for adding or removing entries for the packages you want to make'
- @echo >&2 '"dpkg" believe that they are installed and just go ahead with'
- @echo >&2 '"debian/rules binary-arch" to build it!'
- @echo >&2 ''
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# This version is for packages that are architecture independent.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ # Add here commands to compile the package.
+
+ pod2man --section=1 --release="`date +'%d %b %Y'`"\
+ --center="Debian/GNU" --date=' '\
+ debian/equivs-control.pod > debian/equivs-control.1
+
+ pod2man --section=1 --release="`date +'%d %b %Y'`"\
+ --center="Debian/GNU" --date=' '\
+ debian/equivs-build.pod > debian/equivs-build.1
+
+ touch build-stamp
+
clean:
- $(checkdir)
- -rm -rf debian/tmp debian/files* debian/current.conf core /tmp/tmp.tar
- -cp debian/control.clean debian/control
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
-binary-arch: checkroot clean
- $(clean)
- tar cvf /tmp/equivs-tmp.tar .
- mkdir -p `pwd`/debian/tmp/usr/src/$(package)-$(version)
- cd `pwd`/debian/tmp/usr/src/$(package)-$(version) && tar xvf /tmp/equivs-tmp.tar
- rm -f /tmp/equivs-tmp.tar
+ # Add here commands to clean up after the build process.
- if [ -f /etc/equivs.conf ]; then\
- (sed -e s/^Provides:/"Provides: `cat /etc/equivs.conf`"/ debian/control > debian/control.new);\
- fi
+ -rm -f debian/equivs-build.1 debian/equivs-control.1
+ dh_clean
- if [ -f debian/control.new ]; then\
- mv debian/control.new debian/control;\
- fi
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
- debstd $(package) debian/example.conf
- dpkg-gencontrol
- chown -R root.root debian/tmp
- chmod -R go=rX debian/tmp
- dpkg --build debian/tmp ..
+ # Add here commands to install the package into debian/tmp.
+ cp -R usr debian/tmp
-define checkdir
- test -f debian/rules
-endef
+ touch install-stamp
-# Below here is fairly generic really
+# Build architecture-independent files here.
+binary-indep: build install
+# dh_testversion
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installexamples
+ dh_installmanpages
+# dh_undocumented
+ dh_installchangelogs
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
-binary: binary-arch
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do by default.
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-checkroot:
- $(checkdir)
- test root = "`whoami`"
-
-.PHONY: binary binary-arch clean checkroot
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
diff --git a/examples/communicator45-full.ctl b/examples/communicator45-full.ctl
new file mode 100644
index 0000000..0a7e039
--- /dev/null
+++ b/examples/communicator45-full.ctl
@@ -0,0 +1,9 @@
+Section: non-free/web
+Package: communicator45-full-static-dummy
+Depends: communicator-base-45, netscape-base-45, netscape-base-4, netscape-base-45, netscape-java-45, netscape-java-45, communicator-smotif-45
+Recommends: communicator-spellchk-45, communicator-nethelp-45
+Description: Communicator 4.5 full install (smotif)
+ This is an installation of Communicator 4.5 full blown,
+ that is with all modules, just as if it came as a tarball
+ .
+ You don't have to select the spellchecker and nethelp though.
diff --git a/examples/mail-transport-agent.ctl b/examples/mail-transport-agent.ctl
new file mode 100644
index 0000000..c7da865
--- /dev/null
+++ b/examples/mail-transport-agent.ctl
@@ -0,0 +1,7 @@
+Package: mta-local
+Provides: mail-transport-agent
+Conflicts: mail-transport-agent
+Description: A local MTA package
+ A package, which can be used to establish a locally installed
+ mail transport agent.
+
diff --git a/examples/so5.ctl b/examples/so5.ctl
new file mode 100644
index 0000000..c0d6d73
--- /dev/null
+++ b/examples/so5.ctl
@@ -0,0 +1,10 @@
+Section: non-free/editors
+Package: so5-dummy
+Depends: libc6, xlib6g
+Description: Star Office 5 dummy package
+ This package will ensure the libraries used by Star Office are
+ installed.
+ .
+ Download site for Star Office 5 Personal Edition is
+ http://www.stardivision.com/office/so5linux_license.html
+
\ No newline at end of file
diff --git a/examples/webserver.ctl b/examples/webserver.ctl
new file mode 100644
index 0000000..0c3a4f8
--- /dev/null
+++ b/examples/webserver.ctl
@@ -0,0 +1,10 @@
+Section: web
+Package: webserver-dummy
+Provides: httpd
+Description: Webserver dummy package
+ This package provides dpkg with the information that
+ there is a local webserver installed.
+ .
+ Installing dwww, man2html etc. won't bug you to
+ install apache any more
+
\ No newline at end of file
diff --git a/examples/wp8.ctl b/examples/wp8.ctl
new file mode 100644
index 0000000..ab8d7f1
--- /dev/null
+++ b/examples/wp8.ctl
@@ -0,0 +1,10 @@
+Section: non-free/editors
+Package: wp8-dummy
+Depends: xlib6, xpm4.7, libc5
+Description: Word Perfect dummy package
+ This package will ensure the libraries used by Word Perfect are
+ installed.
+ .
+ You can download the Linux version of Word Perfect 8 from
+ http://linux.corel.com/linux8/download.htm
+
\ No newline at end of file
diff --git a/usr/bin/equivs-build b/usr/bin/equivs-build
new file mode 100755
index 0000000..10a1b4f
--- /dev/null
+++ b/usr/bin/equivs-build
@@ -0,0 +1,361 @@
+#!/usr/bin/perl -w
+
+# Copyright 1999 Martin Bialasinski
+# This programm is subject to the GNU Public License Version 2
+
+# doc-base Copyright (C) 1997,1998 Christian Schwarz,
+# Also licensed under the GPL2
+
+use strict;
+use Cwd;
+use Getopt::Long;
+use File::Copy;
+use File::Basename;
+
+sub usage{
+ print <<EOU;
+Usage: equivs [--full|-f] controlfile
+controlfile is the name of an equivs controlfile.
+You can use "equivs-control filename" to create one.
+EOU
+ exit 1;
+}
+
+my $full_package;
+
+my $result = GetOptions("full" => \$full_package);
+usage() if (!$result);
+
+my $debug=0;
+
+my $builddir= cwd . "/equivs"; # directory to put the files in needed for
+ # creating the debian package
+
+my $cwd = cwd; # save the current working directory. The created
+ # package will be put there
+
+umask(022);
+
+# We need a control file
+
+my $controlfile = $ARGV[0];
+
+my %control; # holds the control elements
+#my ($username, $fullname, $systemname);
+
+if (! $controlfile) {
+ print "No control file was specified";
+ usage();
+}
+
+if (! -f $controlfile) {
+ die "The control file [$controlfile] could not be opened";
+}
+
+
+# Create the build directory
+
+system ("[ ! -L $builddir ] && rm -rf $builddir"); # empty the builddir
+mkdir $builddir, 0755 or die "Can not create build directory $builddir: $!";
+
+# Copy the default files
+
+my $ret = system("cp -R /usr/lib/equivs/template/* $builddir");
+
+if ( 0xffff & $ret != 0 ) {
+ die "Error on copy of the template files: $!";
+}
+
+# Parse the equivs control file
+
+&read_control_file($controlfile);
+
+ # Debug
+ if ($debug) {
+ my ($k, $v);
+ while (($k, $v) = each %control ) {
+ print "$k -> $v \n";
+ }
+ }
+
+# Copy any additional files
+
+my @extra_files = split ",", $control{"Extra-Files"} || "";
+
+mkdir "$builddir/docs", 0755;
+open DOCS, "> $builddir/debian/docs" or
+ die "Can't open $builddir/debian/docs for writing: $!";
+
+foreach my $file (@extra_files){
+ $file =~ s/ +//g;
+ my $destination = basename($file);
+ copy $file, "$builddir/docs/$destination" or
+ die "Error on copying $file to $builddir/docs/$destination : $!";
+ print DOCS "docs/$destination\n";
+}
+close DOCS;
+
+# Write the control file
+
+&write_control_file;
+
+# Create the changelog
+
+if ($control{"Changelog"}){
+ if(-f $control{"Changelog"}){
+ # Changelog specified, copy it
+ copy $control{'Changelog'}, "$builddir/debian/changelog" or
+ die "Error on copy of your changelog file: $!";
+
+ } else {
+ die "Can't open the changelog [$control{'Changelog'}] you specified";
+ }
+} else {
+ # Create a standard changelog file
+ &make_changelog;
+}
+
+# Create the README.Debian file
+
+if ($control{"Readme"}){
+ if (-f $control{"Readme"}){
+ # Readme specified, copy it
+ copy $control{'Readme'}, "$builddir/debian/README.Debian.in" or
+ die "Error on copy of your readme file: $!";
+ } else {
+ die "Can't open the readme file [$control{'Readme'}] you specified";
+ }
+}
+
+# Make substitutions in the Readme
+
+&make_readme;
+
+# Copy a copyright file, otherwise use GPL2
+
+if ($control{"Copyright"}) {
+ if (-f $control{"Copyright"}){
+ # Copyright specified, copy it
+ copy $control{'Copyright'}, "$builddir/debian/copyright" or
+ die "Error on copy of your copyright file: $!";
+ } else {
+ die "Can't open the copyright file [$control{'Copyright'}] you specified";
+ }
+}
+
+# Cleanup a bit
+
+unlink "$builddir/debian/README.Debian.in";
+unlink "$builddir/debian/control.in";
+
+# Create the package
+
+chdir $builddir;
+
+if ($full_package){
+ $ret = system("debuild -rfakeroot");
+} else {
+ $ret = system("fakeroot debian/rules binary");
+}
+
+if ( 0xffff & $ret != 0 ) {
+ die "Error during the build process: $!";
+} else {
+ print "\nThe package has been created.\n";
+ print "Attention, the package has been created in the ";
+ print "current directory,\nnot in \"..\" as indicated by the message above!\n";
+}
+
+
+sub read_control_file {
+ my($file) = shift;
+
+ open(IN, "$builddir/debian/control.in") or
+ die "$builddir/debian/control.in: cannot open control file for reading: $!";
+
+ read_control_file_section(\%control) or die "error: empty control file";
+
+# Fix the Maintainer field
+ my (@user) = getpwuid $>;
+ my $gecos;
+ my ($username, $systemname, $fullname);
+
+ ($username, $gecos) = @user[0,6];
+ $fullname = (split ",", $gecos)[0];
+
+ $systemname = `hostname --fqdn`;
+ chomp($systemname);
+
+ $control{"Maintainer"} = "$fullname <$username\@$systemname>";
+
+ open(IN, $file) or
+ die "$file: cannot open control file for reading: $!";
+
+ read_control_file_section(\%control) or die "error: empty control file";
+
+ # Fix Source: entry
+
+ $control{"Source"} = $control{"Package"};
+
+ # remove trailing whitespace
+
+# foreach my $key (keys %control) {
+# $control{$key} =~ s/\s$//;
+# }
+
+}
+
+sub read_control_file_section {
+ my ($pfields) = @_;
+
+ my $empty = 1;
+ my ($cf,$v);
+ while (<IN>) {
+ chomp;
+
+ # empty line?
+ if (/^\s*$/o) {
+ next;
+ }
+
+ # new field?
+ if (/^(\S+)\s*:\s*(.*?)\s*$/) {
+ ($cf,$v) = (ucfirst $1,$2);
+# print STDERR "$cf -> $v\n" if ($debug);
+# if (exists $$pfields{$cf}) {
+# warn "warning: $cf: overwriting previous setting of control field";
+# }
+ $$pfields{$cf} = $v;
+ } elsif (/^(\s+\S.*)$/) {
+ $v = $1;
+ defined($cf) or die "syntax error in control file: no field specified";
+# print STDERR "$cf -> $v (continued)\n" if ($debug);
+ $$pfields{$cf} .= "\n$v";
+ } else {
+ die "syntax error in control file: $_";
+ }
+ }
+
+ return 1;
+}
+
+# Write control fields
+
+sub control_fields {
+ my $retval;
+ my @fields = @_;
+
+ foreach my $str (@fields) {
+ my $t = $control{$str};
+ if ($t) {
+ $retval .= "$str: $t\n";
+ }
+ }
+
+ return $retval;
+}
+
+# Write control file
+
+sub write_control_file {
+ open OUT, ">$builddir/debian/control";
+ my ($k, $v);
+
+ my $deps;
+# foreach my $str (("Source",
+# "Section",
+# "Priority",
+# "Maintainer",
+# "Standards-Version")) {
+# my $t = $control{$str};
+# if ($t) {
+# $deps .= "$str: $t\n";
+# }
+# }
+ $deps = control_fields(("Source",
+ "Section",
+ "Priority",
+ "Maintainer",
+ "Standards-Version"));
+ $deps .= "\n";
+# my $str;
+# foreach $str (("Package",
+# "Architecture",
+ # "Pre-Depends",
+ # "Depends",
+ # "Recommends",
+ # "Suggests",
+# "Conflicts",
+ # "Provides",
+ # "Description")) {
+ # my $t = $control{$str};
+ # if ($t) {
+ # $deps .= "$str: $t\n";
+ # }
+ $deps .= control_fields(("Package",
+ "Architecture",
+ "Pre-Depends",
+ "Depends",
+ "Recommends",
+ "Suggests",
+ "Conflicts",
+ "Provides",
+ "Description"));
+ print OUT $deps;
+}
+
+
+# Create the changelog file
+
+sub make_changelog {
+ open OUT, ">$builddir/debian/changelog" || die "Couldn't write changelog: $!";
+ my($date) = `822-date`; chop $date;
+ my $version = $control{"Version"} || "1.0";
+
+ print OUT <<EOINPUT;
+$control{Package} ($version) unstable; urgency=low
+
+ * First version
+
+ -- $control{"Maintainer"} $date
+EOINPUT
+
+}
+
+# Read the control file. Adopted from install-doc (doc-base package)
+
+
+# Create the README.Debian file
+
+sub make_readme {
+ undef $/;
+ open IN, "$builddir/debian/README.Debian.in" or die "Can't open the readme file: $!";
+ my ($content) = <IN>;
+ $/="\n";
+ $content =~ s/�packagename�/$control{"Package"}/g;
+ my $deps;
+ my $str;
+
+ $deps = control_fields(("Pre-Depends",
+ "Depends",
+ "Recommends",
+ "Suggests",
+ "Conflicts",
+ "Provides"));
+# foreach $str (("Pre-Depends",
+# "Depends",
+# "Recommends",
+# "Suggests",
+# "Conflicts",
+# "Provides")) {
+# my $t = $control{$str};
+# if ($t) {
+# $deps .= "$str: $t\n";
+# }
+# }
+ $content =~ s/�depends�/$deps || " "/eg;
+ open OUT, ">$builddir/debian/README.Debian";
+ print OUT $content;
+ close OUT or die "$!";
+}
+
diff --git a/usr/bin/equivs-control b/usr/bin/equivs-control
new file mode 100755
index 0000000..c8142a9
--- /dev/null
+++ b/usr/bin/equivs-control
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ $# -eq 0 ]
+then
+ echo Usage: $0 filename
+ echo filename is the name of the equivs control file to create
+ exit 1
+fi
+
+cp /usr/lib/equivs/template.ctl $1
+
diff --git a/usr/lib/equivs/template.ctl b/usr/lib/equivs/template.ctl
new file mode 100644
index 0000000..a271462
--- /dev/null
+++ b/usr/lib/equivs/template.ctl
@@ -0,0 +1,21 @@
+Section: misc
+Priority: optional
+Standards-Version: 3.0.1
+
+Package: <enter package name; defaults to equivs-dummy>
+Version: <enter version here; defaults to 1.0>
+Maintainer: <your name and email address; defaults to username>
+Pre-Depends: <packages>
+Depends: <packages>
+Recommends: <packages>
+Suggests: <package>
+Provides: <(virtual)package>
+Architecture: all
+Copyright: <copyright file; defaults to GPL2>
+Changelog: <changelog file; defaults to a generic changelog>
+Readme: <README.Debian file; defaults to a generic one>
+Extra-Files: <additional files for the doc directory, commaseperated>
+Description: <short description; defaults to some wise words>
+ long description and info
+ .
+ second paragraph
diff --git a/usr/lib/equivs/template/debian/README.Debian.in b/usr/lib/equivs/template/debian/README.Debian.in
new file mode 100644
index 0000000..2de64ae
--- /dev/null
+++ b/usr/lib/equivs/template/debian/README.Debian.in
@@ -0,0 +1,20 @@
+�packagename� for DEBIAN
+
+
+This is a dummy package that makes Debian's package management
+system believe that equivalents to packages on which other
+packages do depend on are actually installed.
+
+The special dependencies used in this package are:
+
+�depends�
+
+Please note that this is a crude hack and if thoughtlessly used
+might possibly do damage to your packaging system. And please
+note as well that using it is not the recommended way of dealing
+with broken dependencies. Better file a bug report instead.
+
+Deinstallation of this package is only possible when all pending
+dependency issues are properly resolved in some other way. A more
+brutal approach for it's deinstallation is to create and install
+the package configured using an empty control file.
diff --git a/debian/control.clean b/usr/lib/equivs/template/debian/control.in
similarity index 65%
rename from debian/control.clean
rename to usr/lib/equivs/template/debian/control.in
index b393171..08ca1be 100644
--- a/debian/control.clean
+++ b/usr/lib/equivs/template/debian/control.in
@@ -1,13 +1,12 @@
-Source: equivs
-Section: admin
+Source: equivs-dummy
+Section: misc
Priority: optional
-Maintainer: Paul Seelig <pseelig at goofy.zdv.uni-mainz.de>
-Standards-Version: 2.4.0.0
+Maintainer: Martin Bialasinski <martinb at debian.org>
+Standards-Version: 3.0.1
-Package: equivs
+Package: equivs-dummy
Architecture: all
-Provides:
-Description: Circumventing Debian package dependencies
+Description: Dummy package to fulfil package dependencies
This is a dummy package that makes Debian's package management
system believe that equivalents to packages on which other
packages do depend on are actually installed.
@@ -15,9 +14,7 @@ Description: Circumventing Debian package dependencies
Deinstallation of this package is only possible when all pending
dependency issues are properly resolved in some other way. A more
brutal approach for it's deinstallation is to create and install
- 'equivs' configured using an empty "/etc/equivs.conf" (or simply
- delete it) to remove all of the existing dependencies with any
- installed package on the system.
+ this package configured using an empty control file.
.
Please note that this is a crude hack and if thoughtlessly used
might possibly do damage to your packaging system. And please
diff --git a/debian/copyright b/usr/lib/equivs/template/debian/copyright
similarity index 78%
copy from debian/copyright
copy to usr/lib/equivs/template/debian/copyright
index a98a067..0b2ef1c 100644
--- a/debian/copyright
+++ b/usr/lib/equivs/template/debian/copyright
@@ -1,4 +1,5 @@
Copyright 1997 by Paul Seelig <pseelig at goofy.zdv.uni-mainz.de>
+Copyright 1999 by Martin Bialasinski <agr30 at uni-koeln.de>
The files in this package are free software; you can redistribute them
and/or modify them under the terms of the GNU General Public License
@@ -11,8 +12,8 @@ of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
-with your Debian GNU/Linux system, in /usr/doc/copyright/GPL, or with
-the Debian GNU/Linux bash source package as the file COPYING.
+with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL,
+or with the Debian GNU/Linux bash source package as the file COPYING.
If not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
diff --git a/usr/lib/equivs/template/debian/rules b/usr/lib/equivs/template/debian/rules
new file mode 100755
index 0000000..79eb261
--- /dev/null
+++ b/usr/lib/equivs/template/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+
+ # Add here commands to clean up after the build process.
+
+ dh_clean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ # Add here commands to install the package into debian/tmp.
+
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installchangelogs
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/equivs.git
More information about the Pkg-perl-cvs-commits
mailing list