From 318518e17bace1b7dc0a4526af267edd88feb447 Mon Sep 17 00:00:00 2001 From: ranke Date: Mon, 8 Aug 2005 15:23:33 +0000 Subject: Debianization. git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/drfit@35 d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 22 ++++++++++++++++++++++ debian/copyright | 16 ++++++++++++++++ debian/postinst | 24 ++++++++++++++++++++++++ debian/postrm | 24 ++++++++++++++++++++++++ debian/rules | 24 ++++++++++++++++++++++++ 7 files changed, 116 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d698567 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +drfit (0.04-34) unstable; urgency=low + + * Initial Debian Release + + -- Johannes Ranke Mon, 08 Aug 2005 14:58:34 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..900feb4 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: drfit +Section: math +Priority: optional +Maintainer: Johannes Ranke +Build-Depends: debhelper (>>4.1.0), cdbs, r-base-dev (>= 2.0.0) +Standards-Version: 3.6.2.1 + +Package: r-cran-drfit +Architecture: any +Depends: ${shlibs:Depends}, r-base-core (>= 2.0.0), r-cran-rodbc +Suggests: odbc-postgresql, libmyodbc +Description: GNU R package for dose-response data evaluation + This CRAN package provides provides basic functions for fitting dose-response + curves to dose-response data, calculating some (eco)toxicological parameters + and plotting the results. Functions that are fitted are the cumulative + densitiy function of the lognormal distribution (probit fit), of the logistic + distribution (logit fit), of the weibull distribution (weibull fit) and a + linear-logistic model ("linlogit" fit), derived from the latter, which is used + to describe data showing stimulation at low doses (hormesis). + . + In addition, functions checking, plotting and retrieving dose-response data of + the UFT Bremen, Department of Bioorganic Chemistry, are provided. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5ebde10 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +This is the Debian GNU/Linux r-cran-drfit package of drfit, an +dose-response data evaluation package for GNU R. + +The sources were taken from the subversion repository + http://kriemhild.uft.uni-bremen.de/svn/drfit +as browseable under + http://kriemhild.uft.uni-bremen.de/viewcvs/?root=drfit + +The package was renamed from its upstream name 'drfit' to 'r-cran-drfit' +to highlight the fact that is it a CRAN package for R. + +drfit is copyright Johannes Ranke and released under +(version 2 or higher of) the GNU General Public License (GPL). + +On a Debian GNU/Linux system, the GPL license is included in the file +/usr/share/common-licenses/GPL. diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..cd2b3af --- /dev/null +++ b/debian/postinst @@ -0,0 +1,24 @@ +#!/bin/sh +# debian/postinst file for r-cran-packages +# Copyright 2004, 2005 by Dirk Eddelbuettel + +set -e + +#DEBHELPER# + +case "$1" in + configure) + if test -x /usr/bin/R; then + /usr/bin/R CMD perl /usr/lib/R/share/perl/build-help.pl --htmllists + fi + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + ;; +esac + + +exit 0 + diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..9d19fd3 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,24 @@ +#!/bin/sh +# debian/postrm file for r-cran packages +# Copyright 2004, 2005 by Dirk Eddelbuettel + +set -e + +#DEBHELPER# + +case "$1" in + upgrade|remove|purge) + if test -x /usr/bin/R; then + /usr/bin/R CMD perl /usr/lib/R/share/perl/build-help.pl --htmllists + fi + ;; + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + ;; +esac + + +exit 0 + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c82d270 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian/rules file for the Debian/GNU Linux r-cran packages +# Copyright 2004 by Dirk Eddelbuettel + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/langcore.mk + +## We need the CRAN (upstream) name +cranName := $(shell grep Package: DESCRIPTION | cut -f2 -d" ") +## and we need to build a Debian Policy-conformant lower-case package name +cranNameLC := $(shell echo $(cranName) | tr "[A-Z]" "[a-z]" | tr "." "-" ) +## which we can use to build the package directory +package := r-cran-$(cranNameLC) +## which we use for the to-be-installed-in directory +debRlib := $(CURDIR)/debian/$(package)/usr/lib/R/site-library + +common-install-indep:: R_any_arch +common-install-arch:: R_any_arch + +R_any_arch: + dh_installdirs usr/lib/R/site-library + R CMD INSTALL -l $(debRlib) --clean . + rm -vf $(debRlib)/R.css $(debRlib)/$(cranNameLC)/COPYING -- cgit v1.2.1