From 35674ce8dfb65cf42e06986486742dcefad473ad Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 30 Jul 2002 05:20:00 +0000 Subject: [PATCH] Initial add. --- debian/changelog | 5 + debian/control | 22 +++++ debian/copyright | 13 +++ debian/docs | 2 + debian/files | 2 + debian/libphysfs0-dev.dirs | 2 + debian/libphysfs0-dev.doc-base | 9 ++ debian/libphysfs0-dev.files | 4 + debian/libphysfs0-dev.postinst.debhelper | 5 + debian/libphysfs0-dev.prerm.debhelper | 6 ++ debian/libphysfs0.dirs | 1 + debian/libphysfs0.files | 1 + debian/libphysfs0.postinst.debhelper | 5 + debian/libphysfs0.postrm.debhelper | 5 + debian/libphysfs0.substvars | 1 + debian/postinst | 47 +++++++++ debian/postrm | 38 ++++++++ debian/preinst | 44 +++++++++ debian/prerm | 40 ++++++++ debian/rules | 117 +++++++++++++++++++++++ debian/shlibs.local | 1 + 21 files changed, 370 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/files create mode 100644 debian/libphysfs0-dev.dirs create mode 100644 debian/libphysfs0-dev.doc-base create mode 100644 debian/libphysfs0-dev.files create mode 100644 debian/libphysfs0-dev.postinst.debhelper create mode 100644 debian/libphysfs0-dev.prerm.debhelper create mode 100644 debian/libphysfs0.dirs create mode 100644 debian/libphysfs0.files create mode 100644 debian/libphysfs0.postinst.debhelper create mode 100644 debian/libphysfs0.postrm.debhelper create mode 100644 debian/libphysfs0.substvars create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100644 debian/preinst create mode 100644 debian/prerm create mode 100755 debian/rules create mode 100644 debian/shlibs.local diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..745fb948 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libphysfs0 (0.1.7-1) unstable; urgency=low + + * Initial Release. + + -- Colin Bayer Mon, 29 Jul 2002 07:47:31 -0700 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..e8fcaaea --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: libphysfs0 +Priority: optional +Maintainer: Colin Bayer +Build-Depends: debhelper (>> 3.0.0), binutils (>= 2.12.90.0.1-4 ), fileutils (>= 4.1-10 ), gcc-2.95 (>= 1 ), libc6 (>= 2.2.5-10 ), libncurses5 (>= 5.2.20020112a-8 ), zlib1g (>= 1 ), libncurses5-dev (>= 5.2.20020112a-8 ), zlib1g-dev (>= 1 ), doxygen +Standards-Version: 3.5.2 + +Package: libphysfs0-dev +Section: devel +Architecture: any +Depends: libphysfs0 (= ${Source-Version}) +Description: A filesystem abstraction for game programmers. + libphysfs0-dev is the set of header files needed to compile programs that + utilize the libphysfs0 library. + +Package: libphysfs0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: A filesystem abstraction for game programmers. + libphysfs0 is the PhysicsFS filesystem abstraction library, a library that + provides a simple C interface to aid game programmers in utilizing game + assets packaged in many different types of archive files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..0a11e27b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,13 @@ +This package was debianized by Colin Bayer on +Mon, 29 Jul 2002 04:41:27 -0700. + +It was downloaded from http://icculus.org/physfs/downloads/physfs-0.1.7.tar.gz + +Upstream Author(s): Ryan Gordon + +This software is copyright (c) 2001-02 by Ryan Gordon, icculus.org. + +You are free to distribute this software under the terms of the GNU Lesser +General Public License. +On Debian systems, the complete text of the GNU Lesser General Public License +can be found in the file `/usr/share/common-licenses/LGPL'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 00000000..8f1794e0 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +TODO +CREDITS diff --git a/debian/files b/debian/files new file mode 100644 index 00000000..f377f7f4 --- /dev/null +++ b/debian/files @@ -0,0 +1,2 @@ +libphysfs0-dev_0.1.7-1_i386.deb devel optional +libphysfs0_0.1.7-1_i386.deb libs optional diff --git a/debian/libphysfs0-dev.dirs b/debian/libphysfs0-dev.dirs new file mode 100644 index 00000000..44188162 --- /dev/null +++ b/debian/libphysfs0-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libphysfs0-dev.doc-base b/debian/libphysfs0-dev.doc-base new file mode 100644 index 00000000..5965f527 --- /dev/null +++ b/debian/libphysfs0-dev.doc-base @@ -0,0 +1,9 @@ +Document: libphysfs0-api +Title: PhysicsFS API Documentation +Author: Ryan Gordon +Abstract: This document outlines the C API for libphysfs0. +Section: unknown + +Format: HTML +Index: /usr/share/doc/libphysfs0-dev/html/index.html +Files: /usr/share/doc/libphysfs0-dev/html/*.html diff --git a/debian/libphysfs0-dev.files b/debian/libphysfs0-dev.files new file mode 100644 index 00000000..99b60cf7 --- /dev/null +++ b/debian/libphysfs0-dev.files @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/share/doc/libphysfs0-dev/* diff --git a/debian/libphysfs0-dev.postinst.debhelper b/debian/libphysfs0-dev.postinst.debhelper new file mode 100644 index 00000000..56f9e1b7 --- /dev/null +++ b/debian/libphysfs0-dev.postinst.debhelper @@ -0,0 +1,5 @@ +# Automatically added by dh_installdocs +if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then + install-docs -i /usr/share/doc-base/libphysfs0-api +fi +# End automatically added section diff --git a/debian/libphysfs0-dev.prerm.debhelper b/debian/libphysfs0-dev.prerm.debhelper new file mode 100644 index 00000000..6259f7da --- /dev/null +++ b/debian/libphysfs0-dev.prerm.debhelper @@ -0,0 +1,6 @@ +# Automatically added by dh_installdocs +if [ "$1" = remove ] || [ "$1" = upgrade ] && \ + which install-docs >/dev/null 2>&1; then + install-docs -r libphysfs0-api +fi +# End automatically added section diff --git a/debian/libphysfs0.dirs b/debian/libphysfs0.dirs new file mode 100644 index 00000000..68457717 --- /dev/null +++ b/debian/libphysfs0.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libphysfs0.files b/debian/libphysfs0.files new file mode 100644 index 00000000..d0dbfd18 --- /dev/null +++ b/debian/libphysfs0.files @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/libphysfs0.postinst.debhelper b/debian/libphysfs0.postinst.debhelper new file mode 100644 index 00000000..3d89d3ef --- /dev/null +++ b/debian/libphysfs0.postinst.debhelper @@ -0,0 +1,5 @@ +# Automatically added by dh_makeshlibs +if [ "$1" = "configure" ]; then + ldconfig +fi +# End automatically added section diff --git a/debian/libphysfs0.postrm.debhelper b/debian/libphysfs0.postrm.debhelper new file mode 100644 index 00000000..7f440472 --- /dev/null +++ b/debian/libphysfs0.postrm.debhelper @@ -0,0 +1,5 @@ +# Automatically added by dh_makeshlibs +if [ "$1" = "remove" ]; then + ldconfig +fi +# End automatically added section diff --git a/debian/libphysfs0.substvars b/debian/libphysfs0.substvars new file mode 100644 index 00000000..056b84e9 --- /dev/null +++ b/debian/libphysfs0.substvars @@ -0,0 +1 @@ +shlibs:Depends=libc6 (>= 2.2.4-4), zlib1g (>= 1:1.1.4) diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 00000000..cbce7c47 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for libphysfs0 +# +# 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 http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# 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) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 00000000..fd5d1234 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for libphysfs0 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 00000000..76e7f00c --- /dev/null +++ b/debian/preinst @@ -0,0 +1,44 @@ +#! /bin/sh +# preinst script for libphysfs0 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/libphysfs0.pid \ +# --exec /usr/sbin/libphysfs0 2>/dev/null || true +# fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 00000000..b7a94996 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for libphysfs0 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/libphysfs0.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..7b9cc8dc --- /dev/null +++ b/debian/rules @@ -0,0 +1,117 @@ +#!/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 compatibility version to use. +export DH_COMPAT=3 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +# shared library versions, option 1 +version=0.1.7 +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)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + doxygen + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + -test -r /usr/share/misc/config.sub && \ + cp -f /usr/share/misc/config.sub config.sub + -test -r /usr/share/misc/config.guess && \ + cp -f /usr/share/misc/config.guess config.guess + + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr + install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex + install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/man/man3 + install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html + install -D docs/README $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/README + install -D docs/latex/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex + install -D docs/html/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html + install -D docs/man/man3/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/man/man3 + +# 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_movefiles + +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs CHANGELOG + dh_link + dh_strip + dh_compress + dh_fixperms + 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 diff --git a/debian/shlibs.local b/debian/shlibs.local new file mode 100644 index 00000000..3d7d94d1 --- /dev/null +++ b/debian/shlibs.local @@ -0,0 +1 @@ +libPACKAGE# 0.1.7 libphysfs0 (>> 0.1.7-0), libphysfs0 (<< 0.1.7-99)