From 81458bf25c713db183ea1449b6fe021760fdc611 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 24 Jan 2001 10:04:53 +0000 Subject: [PATCH] Added debian dir for debian packaging --- helm/minidom/debian/changelog | 10 ++ helm/minidom/debian/control | 21 ++++ helm/minidom/debian/copyright | 23 ++++ helm/minidom/debian/docs | 6 ++ helm/minidom/debian/libminidom-dev.files | 5 + .../debian/libminidom-dev.undocumented | 1 + helm/minidom/debian/libminidom0.files | 1 + helm/minidom/debian/libminidom0.postinst | 47 ++++++++ helm/minidom/debian/rules | 102 ++++++++++++++++++ 9 files changed, 216 insertions(+) create mode 100644 helm/minidom/debian/changelog create mode 100644 helm/minidom/debian/control create mode 100644 helm/minidom/debian/copyright create mode 100644 helm/minidom/debian/docs create mode 100644 helm/minidom/debian/libminidom-dev.files create mode 100644 helm/minidom/debian/libminidom-dev.undocumented create mode 100644 helm/minidom/debian/libminidom0.files create mode 100644 helm/minidom/debian/libminidom0.postinst create mode 100755 helm/minidom/debian/rules diff --git a/helm/minidom/debian/changelog b/helm/minidom/debian/changelog new file mode 100644 index 000000000..fd7bcb2a0 --- /dev/null +++ b/helm/minidom/debian/changelog @@ -0,0 +1,10 @@ +minidom (0.1.0-1) unstable; urgency=low + + * Initial Release. + + -- Stefano Zacchiroli Sun, 21 Jan 2001 18:24:26 +0100 + +Local variables: +mode: debian-changelog +add-log-mailing-address "zacchiro@cs.unibo.it" +End: diff --git a/helm/minidom/debian/control b/helm/minidom/debian/control new file mode 100644 index 000000000..c42dfe7fe --- /dev/null +++ b/helm/minidom/debian/control @@ -0,0 +1,21 @@ +Source: minidom +Section: devel +Priority: optional +Maintainer: Stefano Zacchiroli +Build-Depends: debhelper (>> 2.0.0) +Standards-Version: 3.2.1 + +Package: libminidom0 +Architecture: any +Depends: ${shlibs:Depends} +Description: A minimal implementation of the Document Object Model + Minidom is a minimal implementation of the Document Object Model. + This package include the shared library. + +Package: libminidom-dev +Architecture: any +Depends: libminidom0 (= ${Source-Version}), libc6-dev +Description: A minimal implementation of the Document Object Model + Minidom is a minimal implementation of the Document Object Model. + This package includes the development and runtime support files. + diff --git a/helm/minidom/debian/copyright b/helm/minidom/debian/copyright new file mode 100644 index 000000000..5491c24df --- /dev/null +++ b/helm/minidom/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Stefano Zacchiroli on +Sun, 21 Jan 2001 18:24:26 +0100. + +It was packed from source obtained via cvs, with this CVSROOT: + :pserver:anonymous@phd.cs.unibo.it:/home/lpadovan/PHELM/ + +Upstream Author(s): Luca Padovani + +Copyright: + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it 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 along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + diff --git a/helm/minidom/debian/docs b/helm/minidom/debian/docs new file mode 100644 index 000000000..53b69b78b --- /dev/null +++ b/helm/minidom/debian/docs @@ -0,0 +1,6 @@ +AUTHORS +COPYING +INSTALL +NEWS +README +TODO diff --git a/helm/minidom/debian/libminidom-dev.files b/helm/minidom/debian/libminidom-dev.files new file mode 100644 index 000000000..afb977f37 --- /dev/null +++ b/helm/minidom/debian/libminidom-dev.files @@ -0,0 +1,5 @@ +usr/lib/*.so +usr/lib/*.a +usr/lib/*.la +usr/include/ +usr/bin/ diff --git a/helm/minidom/debian/libminidom-dev.undocumented b/helm/minidom/debian/libminidom-dev.undocumented new file mode 100644 index 000000000..8d08f8e71 --- /dev/null +++ b/helm/minidom/debian/libminidom-dev.undocumented @@ -0,0 +1 @@ +minidom-config.1 diff --git a/helm/minidom/debian/libminidom0.files b/helm/minidom/debian/libminidom0.files new file mode 100644 index 000000000..093956b17 --- /dev/null +++ b/helm/minidom/debian/libminidom0.files @@ -0,0 +1 @@ +usr/lib/*.so.* diff --git a/helm/minidom/debian/libminidom0.postinst b/helm/minidom/debian/libminidom0.postinst new file mode 100644 index 000000000..1b6c8ba16 --- /dev/null +++ b/helm/minidom/debian/libminidom0.postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for libminidom0 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + ldconfig + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/helm/minidom/debian/rules b/helm/minidom/debian/rules new file mode 100755 index 000000000..5f14b2a02 --- /dev/null +++ b/helm/minidom/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +# shared library versions, option 1 +#version=0.1.0 +#major=0 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +version=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/minidom. + $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr + + +# 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_testversion 2 + dh_testdir + dh_testroot + # + # build libminidom${major} package by moving files from minidom-dev + # +# dh_movefiles -plibminidom$(major) \ +# usr/lib/libminidom.so.$(major) \ +# usr/lib/libminidom.so.$(version) +# dh_movefiles get file contents from debian/*.files + dh_movefiles + +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installmanpages + dh_installinfo + dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure -- 2.39.2