From 647acda15d0d197a829dbdb928afeadd8800c381 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 19 Apr 2005 09:41:13 +0000 Subject: [PATCH] r10409: updates for cl-photo --- debian/changelog | 5 ++++ debian/compat | 1 + debian/control | 15 ++++++++++ debian/copyright | 18 ++++++++++++ debian/postinst | 47 ++++++++++++++++++++++++++++++ debian/prerm | 38 ++++++++++++++++++++++++ debian/rules | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/upload.sh | 3 ++ 8 files changed, 203 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/prerm create mode 100755 debian/rules create mode 100755 debian/upload.sh diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..11a4004 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +cl-photo (0.1-1) unstable; urgency=low + + * Initial upload + + -- Kevin M. Rosenberg Tue, 19 Apr 2005 03:34:27 -0600 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..0f441ea --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: cl-photo +Section: devel +Priority: optional +Maintainer: Kevin M. Rosenberg +Build-Depends-Indep: debhelper (>> 4.0.0) +Standards-Version: 3.6.1.1 + +Package: cl-photo +Architecture: all +Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-kmrcl +Description: photographic calculator in Common Lisp + cl-photo provides multiple photographic formulas for photography. Currently, field of view and depth of field +are well supported. + + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ee5c81b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,18 @@ +Debian Copyright Section +======================== + +Upstream Source URL: http://files.b9.com/cl-photo/ +Upstream Author: Kevin M. Rosenberg +Debian Maintainer: Kevin M. Rosenberg + + +cl-photo is written and Copyright (c) 2005 by Kevin M. Rosenberg. + +cl-photo users are granted the rights to distribute and use this software +as governed by the terms of the GNU General Public License v2 +preamble as the "LIBRARY." The GPL is stored on a Debian system +in the file /usr/share/common-licenses/GPL. + +cl-photo 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. diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..b7977ba --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#! /bin/sh +set -e + +LISP_PKG=cl-photo + +# 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) + /usr/sbin/register-common-lisp-source ${LISP_PKG} + + ;; + + 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/prerm b/debian/prerm new file mode 100644 index 0000000..8d4e4ed --- /dev/null +++ b/debian/prerm @@ -0,0 +1,38 @@ +#! /bin/sh +set -e + +# package name according to lisp +LISP_PKG=cl-photo + +# 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) + /usr/sbin/unregister-common-lisp-source ${LISP_PKG} + ;; + 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 0000000..342050b --- /dev/null +++ b/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f + +pkg := cl-photo +debpkg := cl-photo + +clc-source := usr/share/common-lisp/source +clc-systems := usr/share/common-lisp/systems +clc-photo := $(clc-source)/$(pkg) + +doc-dir := usr/share/doc/$(debpkg) + +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. + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + rm -f debian/cl-photo.postinst.* debian/cl-photo.prerm.* + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + # Add here commands to install the package into debian/photo. + dh_installdirs $(clc-systems) $(clc-photo) $(doc-dir) + dh_install photo.asd $(shell echo *.lisp) $(clc-photo) + dh_link $(clc-photo)/cl-photo.asd $(clc-systems)/cl-photo.asd + +# Build architecture-independent files here. +binary-indep: build install + + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + 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 configure + diff --git a/debian/upload.sh b/debian/upload.sh new file mode 100755 index 0000000..4d187ac --- /dev/null +++ b/debian/upload.sh @@ -0,0 +1,3 @@ +#!/bin/bash -e + +dup cl-photo -Uftp.med-info.com -D/home/ftp/cl-photo -C"(umask 022; cd /opt/apache/htdocs/cl-photo; make install)" -su $* -- 2.34.1