From: Jeremy Laine Date: Sun, 2 Feb 2003 22:43:15 +0000 (+0000) Subject: initial commit X-Git-Tag: start~14 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a91b29e45b23ecbe594b4858ea67825f1abff27d;p=old-projects.git initial commit --- diff --git a/depview/debian/changelog b/depview/debian/changelog new file mode 100644 index 0000000..dfa8f11 --- /dev/null +++ b/depview/debian/changelog @@ -0,0 +1,6 @@ +depview (0.3.0-1) unstable; urgency=low + + * Initial Release. + + -- Jeremy Laine Sun, 2 Feb 2003 21:41:24 +0100 + diff --git a/depview/debian/config b/depview/debian/config new file mode 100644 index 0000000..cbbcfd5 --- /dev/null +++ b/depview/debian/config @@ -0,0 +1,12 @@ +#!/bin/sh -e + +#source debconf library +. /usr/share/debconf/confmodule + +cfg_input() { db_input $1 depview/$2 || true; } + +cfg_input high db_host +cfg_input high db_db +cfg_input high db_user +cfg_input high db_passwd +db_go || true diff --git a/depview/debian/control b/depview/debian/control new file mode 100644 index 0000000..1f591d4 --- /dev/null +++ b/depview/debian/control @@ -0,0 +1,14 @@ +Source: depview +Section: net +Priority: optional +Maintainer: Jeremy Laine +Build-Depends: debhelper (>> 3.0.0) +Standards-Version: 3.5.8 + +Package: depview +Architecture: all +Depends: php4, mysql-client, debconf (>= 0.2.17) +Recommends: deptrack +Description: a PHP dependency tracker + Depview allows you to view PHP dependencies that were + extracted using deptrack. diff --git a/depview/debian/copyright b/depview/debian/copyright new file mode 100644 index 0000000..b9b7e90 --- /dev/null +++ b/depview/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Jeremy Laine on +Sun, 2 Feb 2003 21:41:24 +0100. + +It was downloaded from http://opensource.polytechnique.org/ + +Upstream Authors: Jeremy Lainé + +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/depview/debian/dirs b/depview/debian/dirs new file mode 100644 index 0000000..94dfcc2 --- /dev/null +++ b/depview/debian/dirs @@ -0,0 +1,2 @@ +var/www/depview +var/www/depview/include diff --git a/depview/debian/postinst b/depview/debian/postinst new file mode 100644 index 0000000..0bf8cde --- /dev/null +++ b/depview/debian/postinst @@ -0,0 +1,69 @@ +#! /bin/sh +# postinst script for depview +# +# 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'. + +# source debconf library +. /usr/share/debconf/confmodule + +CFG=/var/www/depview/include/config.inc.php +rm -f $CFG + +set_line() { echo "$@" >> $CFG; } + +case "$1" in + configure) + db_get depview/db_host + db_host="$RET" + db_get depview/db_db + db_db="$RET" + db_get depview/db_user + db_user="$RET" + db_get depview/db_passwd + db_passwd="$RET" + + set_line "" + ;; + + 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/depview/debian/rules b/depview/debian/rules new file mode 100755 index 0000000..0125ffb --- /dev/null +++ b/depview/debian/rules @@ -0,0 +1,94 @@ +#!/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=4 + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + #$(MAKE) + #/usr/bin/docbook-to-man debian/depview.sgml > depview.1 + 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) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/depview. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/depview + + cp *.php debian/depview/var/www/depview + cp include/*.php debian/depview/var/www/depview/include + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + 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_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep +.PHONY: build clean binary-indep binary install configure diff --git a/depview/debian/templates b/depview/debian/templates new file mode 100644 index 0000000..81c3c4f --- /dev/null +++ b/depview/debian/templates @@ -0,0 +1,26 @@ +Template: depview/db_db +Type: string +Default: deptrack +Description: database name + This is the name of the database that holds the deptrack/depview + tables. + +Template: depview/db_host +Type: string +Default: localhost +Description: database server + This is the hostname of the server that hosts the deptrack/depview + database. + +Template: depview/db_user +Type: string +Default: deptrack +Description: database user + This is the username used to access the database. + +Template: depview/db_passwd +Type: password +Default: +Description: database password + This is the password used to access the database. +