aboutsummaryrefslogtreecommitdiff
path: root/packaging/deb
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/deb')
-rw-r--r--packaging/deb/changelog99
-rw-r--r--packaging/deb/conffiles1
-rw-r--r--packaging/deb/control19
-rw-r--r--packaging/deb/copyright25
-rw-r--r--packaging/deb/postinst8
-rw-r--r--packaging/deb/preinst15
-rwxr-xr-xpackaging/deb/rules105
-rw-r--r--packaging/deb/site.exp2
8 files changed, 274 insertions, 0 deletions
diff --git a/packaging/deb/changelog b/packaging/deb/changelog
new file mode 100644
index 0000000..fbcec15
--- /dev/null
+++ b/packaging/deb/changelog
@@ -0,0 +1,99 @@
+dejagnu (1.4-3) stable; urgency=low
+ * Update version number for new minor release.
+
+ -- Rob Savoye <rob@welcomehome.org> Tue, 12 Sept 2001 04:20:00 -0800
+
+dejagnu (1.4-2) stable; urgency=low
+ * Update version number for new minor release.
+
+ -- Rob Savoye <rob@welcomehome.org> Tue, 12 Sept 2001 04:20:00 -0800
+
+dejagnu (1.4-1) stable; urgency=low
+ * Update version number for new minor release.
+
+ -- Rob Savoye <rob@welcomehome.org> Wed, 2 May 2001 04:20:00 -0800
+
+dejagnu (1.4-0) stable; urgency=low
+ * Make this work again for the new release.
+
+ -- Rob Savoye <rob@welcomehome.org> Wed, 21 Feb 2001 04:20:00 -0800
+
+dejagnu (1.3-10) frozen unstable; urgency=low
+
+ * add example to /usr/doc (fixes bug #28491)
+ * changed permissions on runtest.exp so that it is not executable
+ * upgrade Standards-Version to 2.5.0.0
+
+ -- Kevin Dalley <kevind@rahul.net> Sat, 5 Dec 1998 04:37:07 -0800
+
+dejagnu (1.3-9) unstable; urgency=low
+
+ * install postinst, etc, which creates correct permissions on files
+ (fixes Bug #25044).
+ * corrected FSF address in copyright.
+
+ -- Kevin Dalley <kevind@rahul.net> Sun, 9 Aug 1998 18:08:06 -0700
+
+dejagnu (1.3-8) unstable; urgency=low
+
+ * corrected copyright (fixes bug #14864)
+ * changed maintainer email address
+
+ -- Kevin Dalley <kevind@rahul.net> Tue, 23 Dec 1997 22:47:14 -0800
+
+dejagnu (1.3-7) unstable; urgency=low
+
+ * changed dependency back from expect5.24 to expect, now that expect is
+ provided by various expect packages.
+
+ -- Kevin Dalley <kevin@aimnet.com> Tue, 30 Sep 1997 23:04:21 -0700
+
+dejagnu (1.3-6) unstable; urgency=low
+
+ * changed dependency to expect5.24
+
+ -- Kevin Dalley <kevin@aimnet.com> Sat, 20 Sep 1997 10:29:28 -0700
+
+dejagnu (1.3-5) unstable; urgency=low
+
+ * changed debian/control to satisfy standards and fix bug #3566,
+ summary incorrect
+ * moved files debian.* to debian/*
+ * converted to Standards-Version: 2.1.1.0
+
+ -- Kevin Dalley <kevin@aimnet.com> Sat, 12 Oct 1996 02:05:21 -0700
+
+
+
+
+Sun Jun 2 18:06:24 1996 Kevin Dalley <kevin@aplysia.iway.aimnet.com (Kevin Dalley)>
+
+ * debian.control, debian.rules: upgraded to Debian release 4
+ changed most instances of dejagnu to $(package) use debian.rules
+ package value to build control value of Package
+
+Fri May 24 01:57:31 1996 Kevin Dalley <kevin@aplysia.iway.aimnet.com (Kevin Dalley)>
+
+ * debian.postrm: change to -e
+
+
+ * debian.conffiles, debian.postinst, debian.rules, debian.preinst,
+ debian.prerm: moved conffile from /var/lib/dejagnu to /etc/dejagnu
+
+
+Thu May 23 00:52:57 1996 Kevin Dalley <kevin@aplysia.iway.aimnet.com (Kevin Dalley)>
+
+ * debian.rules: changed architecture to all and updated to debian
+ revision 2
+
+ * debian.control: changed architecture to all
+
+Sun May 19 14:02:47 1996 Kevin Dalley <kevin@aplysia.iway.aimnet.com (Kevin Dalley)>
+
+ * debian.README, debian.conffiles, debian.control,
+ debian.postinst, debian.postrm, debian.rules, debian.site.exp,
+ debian.ChangeLog added
+
+Local variables:
+mode: debian-changelog
+End:
diff --git a/packaging/deb/conffiles b/packaging/deb/conffiles
new file mode 100644
index 0000000..fb269a1
--- /dev/null
+++ b/packaging/deb/conffiles
@@ -0,0 +1 @@
+/etc/dejagnu/site.exp
diff --git a/packaging/deb/control b/packaging/deb/control
new file mode 100644
index 0000000..bc03b0d
--- /dev/null
+++ b/packaging/deb/control
@@ -0,0 +1,19 @@
+Source: dejagnu
+Section: devel
+Priority: optional
+Maintainer: Rob Savoye <welcomehome.org>
+Standards-Version: 2.5.0.0
+
+Package: dejagnu
+Architecture: all
+Depends: expect, dpkg (>=1.2.1)
+Description: framework for running test suites on software tools.
+ DejaGnu is a framework for testing other programs. Its purpose is to
+ provide a single front end for all tests.
+ .
+ DejaGnu provides a layer of abstraction which allows you to write
+ tests that are portable to any host or target where a program must
+ be tested. All tests have the same output format.
+ .
+ DejaGnu is written in `expect', which in turn uses "Tcl"--Tool
+ command language.
diff --git a/packaging/deb/copyright b/packaging/deb/copyright
new file mode 100644
index 0000000..ae28d5f
--- /dev/null
+++ b/packaging/deb/copyright
@@ -0,0 +1,25 @@
+This is the Debian GNU/Linux prepackaged version of GNU DejaGnu.
+
+Changes:
+ * added Debian GNU/Linux package maintenance system files
+ * skip compilation of tcl and expect
+
+GNU dejagnu are Copyright (C) 92 - 2001, 2002 Free Software
+Foundation, Inc.
+
+ 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; version 2 dated June, 1991.
+
+ 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.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/doc/copyright/GPL'.
diff --git a/packaging/deb/postinst b/packaging/deb/postinst
new file mode 100644
index 0000000..12a4ea5
--- /dev/null
+++ b/packaging/deb/postinst
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -i
+
+#install-info --quiet --section "Development" "Development" \
+#/usr/doc/dejagnu.info.gz
+
+echo "Edit the master configuration file, /etc/dejagnu/site.exp, if needed"
diff --git a/packaging/deb/preinst b/packaging/deb/preinst
new file mode 100644
index 0000000..dd7af9a
--- /dev/null
+++ b/packaging/deb/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+#
+# Debian package preinst
+
+case "$1" in
+ install|upgrade)
+ # need to move configuration file to proper directory
+ if [ -f /var/lib/dejagnu/site.exp ]; then
+ if [ ! -d /etc/dejagnu ]; then
+ install -d -g root -m 755 -o root /etc/dejagnu
+ fi
+ mv -f /var/lib/dejagnu/site.exp /etc/dejagnu
+ fi
+ ;;
+esac
diff --git a/packaging/deb/rules b/packaging/deb/rules
new file mode 100755
index 0000000..fcf0ea9
--- /dev/null
+++ b/packaging/deb/rules
@@ -0,0 +1,105 @@
+#! /usr/bin/make -f
+#
+# 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
+# Copyright 1996 by Kevin Dalley.
+
+# To make the binary distribution package, the ``Debianized'' source package
+# and the context diff to the original package, type `./debian.rules dist'.
+# Make sure that `debian.rules' is executable before the final distribution
+# is made.
+#
+# Invoke each target with `./debian.rules <target>'. All targets should be
+# invoked with the package root as the current directory.
+#
+# The `binary' target must be run as root, as it needs to install files with
+# specific ownerships.
+
+# The name of the package (for example, `emacs').
+package = dejagnu
+
+CC = gcc
+CFLAGS = -O2 -Wall # sane warning options vary between programs
+LDFLAGS = # none
+
+
+build:
+ $(checkdir)
+ ./configure --prefix=/usr
+ $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
+ libexecdir=/usr/lib/locate localstatedir=/var/lib/locate all
+# $(MAKE)
+ touch build
+
+clean:
+ $(checkdir)
+ -rm -f build
+ -$(MAKE) -i distclean
+ -rm -rf *~ debian/tmp debian/*~ debian/files*
+ rm -f config.cache doc/config.log testsuite/config.log \
+ testsuite/.tmp testsuite/dbg.log testsuite/runtest.log \
+ testsuite/runtest.sum testsuite/setval.tmp \
+ testsuite/testrun.log testsuite/testrun.sum \
+ example/testrun.sum
+
+binary-indep: checkroot build
+ $(checkdir)
+ -rm -rf debian/tmp
+ install -d debian/tmp debian/tmp/DEBIAN
+ install -d debian/tmp/usr/doc/$(package)
+ install -d -g root -m 755 -o root debian/tmp/etc/$(package)
+ install debian/{postinst,preinst} debian/tmp/DEBIAN/.
+ cd $(package); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
+ prefix=`pwd`/debian/tmp/usr install
+ chmod 0644 debian/tmp/usr/share/dejagnu/runtest.exp
+ cd $(package); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
+ pkgdatadir=debian/tmp/usr/doc/$(package) install-doc
+# gzip -9v debian/tmp/usr/info/*
+# gzip -9v debian/tmp/usr/man/man1/*
+ install -d debian/tmp/usr/doc/$(package)/html/stylesheet-images
+ install -m 0644 doc/overview.rtf debian/tmp/usr/doc/$(package)
+ install -m 0644 doc/overview.ps debian/tmp/usr/doc/$(package)
+ install -m 0644 doc/overview.pdf debian/tmp/usr/doc/$(package)
+ install -m 0644 doc/html/*.html debian/tmp/usr/doc/$(package)/html/
+ install -m 0644 debian/copyright debian/tmp/usr/doc/$(package)
+ install -m 0644 debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
+ gzip -9v debian/tmp/usr/doc/$(package)/changelog.Debian
+ install -m 0644 ChangeLog debian/tmp/usr/doc/$(package)
+ gzip -9v debian/tmp/usr/doc/$(package)/ChangeLog
+ ln -s ChangeLog.gz debian/tmp/usr/doc/$(package)/changelog.gz
+ install -g root -m 644 -o root debian/site.exp \
+ debian/tmp/etc/$(package)/site.exp
+ cd debian/tmp/usr/lib/$(package); ln -fs /etc/$(package)/site.exp .
+# install -d debian/tmp/usr/doc/$(package)/examples
+ -cd example; $(MAKE) -i distclean
+# (cd example; tar cf - . ) | \
+# (cd debian/tmp/usr/doc/$(package)/examples; tar xf -)
+# install debian/tmp/usr/doc/$(package)/examples
+ dpkg-gencontrol
+# chown -R root.root debian/tmp
+# chmod -R g-ws debian/tmp
+ dpkg --build debian/tmp ..
+
+binary-arch:
+
+define checkdir
+ test -f runtest.exp -a -f debian/rules
+endef
+# Below here is fairly generic really
+
+binary: binary-indep
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+ $(checkdir)
+ test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
diff --git a/packaging/deb/site.exp b/packaging/deb/site.exp
new file mode 100644
index 0000000..9454a7f
--- /dev/null
+++ b/packaging/deb/site.exp
@@ -0,0 +1,2 @@
+# The master configuration file should be here
+# There is currently not a meaningful default configuration file