From: moeller Date: Tue, 8 Feb 2011 14:02:55 +0000 (+0000) Subject: Added code for a nicely working Debian package. X-Git-Url: https://git.donarmstrong.com/?p=cran2deb.git;a=commitdiff_plain;h=718a4784f5472ec5619259da384bdda3cd8e274a Added code for a nicely working Debian package. This is meant to help ourselves for the development of cran2deb. As much as possible for the maintenance of a cran2deb installation should go in there (and into the README). git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@335 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- diff --git a/trunk/debian/changelog b/trunk/debian/changelog new file mode 100644 index 0000000..4d1bbd7 --- /dev/null +++ b/trunk/debian/changelog @@ -0,0 +1,5 @@ +r-cran-cran2deb (0.0.1) unstable; urgency=low + + * Some initial testing of the packaging. + + -- Steffen Moeller Tue, 08 Feb 2011 14:47:28 +0100 diff --git a/trunk/debian/compat b/trunk/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/trunk/debian/compat @@ -0,0 +1 @@ +7 diff --git a/trunk/debian/control b/trunk/debian/control new file mode 100644 index 0000000..3d340c8 --- /dev/null +++ b/trunk/debian/control @@ -0,0 +1,25 @@ +Source: r-cran-cran2deb +Section: gnu-r +Priority: optional +Maintainer: Steffen Moeller +DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 7.0), cdbs, r-base-dev +Homepage: http://debian.cran.r-project.org/ +Standards-Version: 3.9.1 + +Package: r-cran-cran2deb +Architecture: any +Depends: ${shlibs:Depends}, ${R:Depends}, littler, r-cran-digest, rc, r-cran-ctv, reprepro, r-cran-rsqlite, xvfb, curl +Recommends: mini-dinstall +Suggests: r-cran-hwriter, r-cran-getopt +Description: GNU R initiative to prepare Debian packages + The cran2deb repository provides Debian apt repositories of + essentially all R packages found in CRAN. cran2deb builds new + packages daily to provide the latest packages from CRAN as + Debian packages, with correct dependencies upon other Debian + and Debianized R packages. + . + This package provides the software with which the repository + is maintained. This may be of interest for a support of other + architectures than i386 of cran2deb, or to address another + repository than cran2deb's CRAN alone. diff --git a/trunk/debian/copyright b/trunk/debian/copyright new file mode 100644 index 0000000..4ad0a4d --- /dev/null +++ b/trunk/debian/copyright @@ -0,0 +1,26 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Author: Charles Blundell and Dirk Eddelbuettel +Packaged-By: Steffen Moeller +Packaged-Date: Mon, 24 Nov 2008 13:12:38 +0100 +Upstream-Source: https://r-forge.r-project.org/projects/cran2deb/ + +Files: * +License: GPL-3 +Copyright: 2010-2011 Charles Blundell and Dirk Eddelbuettel + 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, either version 3 of the License. + . + 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, see . +X-Comment: On Debian systems, the complete text of the GNU Public + License can be found in `/usr/share/common-licenses/GPL-3'. + +Files: debian/* +Copyright: © 2010-2011 Steffen Moeller +License: Same as cran2deb itelf (see above) diff --git a/trunk/debian/r-cran-cran2deb.dirs b/trunk/debian/r-cran-cran2deb.dirs new file mode 100644 index 0000000..415f082 --- /dev/null +++ b/trunk/debian/r-cran-cran2deb.dirs @@ -0,0 +1 @@ +/usr/bin diff --git a/trunk/debian/r-cran-cran2deb.links b/trunk/debian/r-cran-cran2deb.links new file mode 100644 index 0000000..7bfc027 --- /dev/null +++ b/trunk/debian/r-cran-cran2deb.links @@ -0,0 +1,29 @@ +# These binary names are too generic to appear in /usr/bin +# The cran2deb application is the only application that +# will be allowed in + +#/usr/lib/R/site-library/cran2deb/exec/autobuild /usr/bin/autobuild +#/usr/lib/R/site-library/cran2deb/exec/build /usr/bin/build +#/usr/lib/R/site-library/cran2deb/exec/build_all /usr/bin/build_all +#/usr/lib/R/site-library/cran2deb/exec/build_ctv /usr/bin/build_ctv +#/usr/lib/R/site-library/cran2deb/exec/build_some /usr/bin/build_some +#/usr/lib/R/site-library/cran2deb/exec/copy_find /usr/bin/copy_find +/usr/lib/R/site-library/cran2deb/exec/cran2deb /usr/bin/cran2deb +#/usr/lib/R/site-library/cran2deb/exec/cran_pkgs /usr/bin/cran_pkgs +#/usr/lib/R/site-library/cran2deb/exec/db_release /usr/bin/db_release +#/usr/lib/R/site-library/cran2deb/exec/depclosure /usr/bin/depclosure +#/usr/lib/R/site-library/cran2deb/exec/depend /usr/bin/depend +#/usr/lib/R/site-library/cran2deb/exec/diagnose /usr/bin/diagnose +#/usr/lib/R/site-library/cran2deb/exec/diagnose_ctv /usr/bin/diagnose_ctv +#/usr/lib/R/site-library/cran2deb/exec/get_base_pkgs /usr/bin/get_base_pkgs +#/usr/lib/R/site-library/cran2deb/exec/help /usr/bin/help +#/usr/lib/R/site-library/cran2deb/exec/latest_log /usr/bin/latest_log +#/usr/lib/R/site-library/cran2deb/exec/license /usr/bin/license +#/usr/lib/R/site-library/cran2deb/exec/progress /usr/bin/progress +#/usr/lib/R/site-library/cran2deb/exec/repopulate /usr/bin/repopulate +#/usr/lib/R/site-library/cran2deb/exec/root /usr/bin/root +#/usr/lib/R/site-library/cran2deb/exec/showbuilds /usr/bin/showbuilds +#/usr/lib/R/site-library/cran2deb/exec/update /usr/bin/update +#/usr/lib/R/site-library/cran2deb/exec/update_cache /usr/bin/update_cache +#/usr/lib/R/site-library/cran2deb/exec/web /usr/bin/web +#/usr/lib/R/site-library/cran2deb/exec/which_system /usr/bin/which_system diff --git a/trunk/debian/rules b/trunk/debian/rules new file mode 100755 index 0000000..99faf0f --- /dev/null +++ b/trunk/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/R/debian/r-cran.mk + +DEB_COMPRESS_EXCLUDE := .pdf + +install/$(package):: + # Require a number equal or superior than the R version the package was built with. + echo "R:Depends=r-base-core (>= $(shell R --version | head -n1 | perl -ne 'print / +([0-9]\.[0-9]+\.[0-9])/')~)" >> debian/r-$(debRreposname)-$(cranName).substvars diff --git a/trunk/debian/source/format b/trunk/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/trunk/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)