From 56de8c02ddac4543aefdb69230d711fb24f62fb6 Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Sat, 1 Feb 2003 18:34:07 +0000 Subject: [PATCH] rough Debian package --- deptrack/ChangeLog | 3 ++ deptrack/README | 24 ++++++++++++++ deptrack/debian/changelog | 6 ++++ deptrack/debian/control | 13 ++++++++ deptrack/debian/copyright | 11 +++++++ deptrack/debian/docs | 2 ++ deptrack/debian/examples | 1 + deptrack/debian/rules | 84 +++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 144 insertions(+) create mode 100644 deptrack/ChangeLog create mode 100644 deptrack/README create mode 100644 deptrack/debian/changelog create mode 100644 deptrack/debian/control create mode 100644 deptrack/debian/copyright create mode 100644 deptrack/debian/docs create mode 100644 deptrack/debian/examples create mode 100755 deptrack/debian/rules diff --git a/deptrack/ChangeLog b/deptrack/ChangeLog new file mode 100644 index 0000000..8172193 --- /dev/null +++ b/deptrack/ChangeLog @@ -0,0 +1,3 @@ +deptrack 0.3 + * started versioning + * tracks includes/requires diff --git a/deptrack/README b/deptrack/README new file mode 100644 index 0000000..cef2545 --- /dev/null +++ b/deptrack/README @@ -0,0 +1,24 @@ +deptrack - a PHP dependency tracker + +DISTRIBUTING +============ + +deptrack is distributed under the terms of the GNU General Public +License (GPL). + +USAGE +===== + +In order to use deptrack, you need to have a MySQL database with the tables +to hold the PHP dependencies that deptrack finds. You can create the necessary +tables by using the deptrack.sql which is provided. + +The user that runs deptrack will also need to install a ~/.deptrackrc file +configured to match your database setup. You can use the provided deptrackrc +example. + +HOMEPAGE +======== + +The project's homepage is http://opensource.polytechnique.org/ + diff --git a/deptrack/debian/changelog b/deptrack/debian/changelog new file mode 100644 index 0000000..d117f2c --- /dev/null +++ b/deptrack/debian/changelog @@ -0,0 +1,6 @@ +deptrack (0.3-1) unstable; urgency=low + + * Initial Release. + + -- Jeremy Laine Sat, 1 Feb 2003 18:56:33 +0100 + diff --git a/deptrack/debian/control b/deptrack/debian/control new file mode 100644 index 0000000..4d5b759 --- /dev/null +++ b/deptrack/debian/control @@ -0,0 +1,13 @@ +Source: deptrack +Section: net +Priority: optional +Maintainer: Jeremy Laine +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.2 + +Package: deptrack +Architecture: all +Description: a PHP dependency tracker + Deptrack takes a set of PHP files, calculates their dependencies + and outputs the results to a MySQL database. + diff --git a/deptrack/debian/copyright b/deptrack/debian/copyright new file mode 100644 index 0000000..ebeca57 --- /dev/null +++ b/deptrack/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Jeremy Laine on +Sat, 1 Feb 2003 18:56:33 +0100. + +It was downloaded from http://opensource.polytechnique.org/ + +Upstream Authors: Jeremy Lainé and Pierre Habouzit + +Copyright: GNU GPL Version 2 + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License may be found in `/usr/share/common-licenses/GPL'. diff --git a/deptrack/debian/docs b/deptrack/debian/docs new file mode 100644 index 0000000..d6db2ea --- /dev/null +++ b/deptrack/debian/docs @@ -0,0 +1,2 @@ +README +deptrack.sql diff --git a/deptrack/debian/examples b/deptrack/debian/examples new file mode 100644 index 0000000..34e3e70 --- /dev/null +++ b/deptrack/debian/examples @@ -0,0 +1 @@ +deptrackrc diff --git a/deptrack/debian/rules b/deptrack/debian/rules new file mode 100755 index 0000000..a097e7d --- /dev/null +++ b/deptrack/debian/rules @@ -0,0 +1,84 @@ +#!/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 + +config.status: configure + dh_testdir + # Add here commands to configure the package. + ./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) + #/usr/bin/docbook-to-man debian/deptrack.sgml > deptrack.1 + + 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/deptrack + $(MAKE) install prefix=$(CURDIR)/debian/deptrack/usr + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installman + dh_installchangelogs ChangeLog + dh_compress + dh_fixperms + dh_installdeb + dh_perl + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install -- 2.1.4