From: Kevin M. Rosenberg Date: Fri, 9 Mar 2007 07:39:44 +0000 (+0000) Subject: r11566: add debian files X-Git-Tag: v0.1.3~8 X-Git-Url: http://git.kpe.io/?p=cluck.git;a=commitdiff_plain;h=61dae25375e543656148a22362971ff82c7d7baf r11566: add debian files --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c873036 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +cl-cluck (0.1-1) unstable; urgency=low + + * Initial release + + -- Kevin M. Rosenberg Fri, 9 Mar 2007 00:31:24 -0700 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..0cbf41e --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: cl-cluck +Section: devel +Priority: optional +Maintainer: Kevin M. Rosenberg +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.7.2.2 + +Package: cl-cluck +Architecture: all +Depends: common-lisp-controller (>= 3.37) +Description: Common Lisp Microcontroller Clock Calculator + Cluck provides several functions to help select crystal frequencies, + clock prescalers, and compare values to configuring timers on + microcontroller chips. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..5f3f6e6 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,34 @@ +Debian Copyright Section +======================== + +Upstream Source URL: http://files.b9.com/cluck +Upstream Author: Kevin Rosenberg +Debian Maintainer: Kevin M. Rosenberg + + +Copyright (c) 2007 Kevin M. Rosenberg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the author nor the names of the contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..83453b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +cluck.txt diff --git a/debian/make-upstream.sh b/debian/make-upstream.sh new file mode 100755 index 0000000..bfabb95 --- /dev/null +++ b/debian/make-upstream.sh @@ -0,0 +1,6 @@ +#!/bin/bash -e + +bups cluck -d"-name .bin" + +exit 0 + diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..113b998 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,28 @@ +#! /bin/sh +# postinst script for cl-cluck + +set -e + +case "$1" in + configure) + /usr/sbin/register-common-lisp-source cluck + ;; + + 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..f11ed15 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,24 @@ +#! /bin/sh + +set -e + +case "$1" in + remove|upgrade|deconfigure) + /usr/sbin/unregister-common-lisp-source cluck + ;; + 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..30e5ea6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f + +pkg := cluck +debpkg := cl-$(pkg) + +clc-source := usr/share/common-lisp/source +clc-systems := usr/share/common-lisp/systems +clc-files := $(clc-source)/$(pkg) +clc-tests := $(clc-source)/$(pkg-tests) + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs --all $(clc-systems) $(clc-source) + + # Add here commands to install the package into debian/uffi. + dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src + dh_install $(pkg).asd $(clc-files) + dh_install "src/*.lisp" $(clc-files)/src + dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd + +binary: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installmenu + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +.PHONY: build clean binary install configure + diff --git a/debian/upload.sh b/debian/upload.sh new file mode 100755 index 0000000..cce603e --- /dev/null +++ b/debian/upload.sh @@ -0,0 +1,4 @@ +#!/bin/bash -e + +dup cluck -Ufiles.b9.com -D/home/ftp/cluck -su \ + -C"(umask 022; cd /opt/apache/htdocs/cluck; make install; find . -type d |xargs chmod go+rx; find . -type f | xargs chmod go+r)" $*