From 2a09fb070e935ab2115fadb18f0f2b377f0f0d9f Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Fri, 7 Jan 2005 22:09:43 +0000 Subject: [PATCH] debian packaging git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-10 --- Makefile | 7 ++++--- debian/changelog | 6 ++++++ debian/control | 16 ++++++++++++++++ debian/copyright | 15 +++++++++++++++ debian/php-banana.install | 4 ++++ debian/php-banana.postinst | 8 ++++++++ debian/php-banana.postrm | 16 ++++++++++++++++ debian/rules | 20 ++++++++++++++++++++ 8 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/php-banana.install create mode 100644 debian/php-banana.postinst create mode 100644 debian/php-banana.postrm create mode 100755 debian/rules diff --git a/Makefile b/Makefile index af7b7ed..41c71f2 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,9 @@ PKG_DIST = banana-$(VERSION) PKG_FILES = AUTHORS Changelog COPYING README Makefile TODO -PKG_DIRS = banana po +PKG_DIRS = banana po css examples img -VCS_FILTER = ! -name .arch-ids ! -name CVS +VCS_FILTER = ! -name .arch-ids ! -name .arch-inventory # global targets @@ -27,6 +27,7 @@ clean: pkg-build: banana/banana.inc.php make -C po + make -C po clean pkg-dist: pkg-build rm -rf $(PKG_DIST) $(PKG_DIST).tar.gz @@ -35,7 +36,7 @@ pkg-dist: pkg-build for dir in `find $(PKG_DIRS) -type d $(VCS_FILTER)`; \ do \ mkdir -p $(PKG_DIST)/$$dir; \ - find $$dir -type f -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \ + find $$dir -type f $(VCS_FILTER) -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \ done tar czf $(PKG_DIST).tar.gz $(PKG_DIST) rm -rf $(PKG_DIST) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..939edce --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +banana (1.0-0) unstable; urgency=low + + * First upstream release. + + -- Pierre Habouzit Fri, 7 Jan 2005 22:37:03 +0100 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ad41c6d --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: banana +Section: web +Priority: optional +Maintainer: Pierre Habouzit +Standards-Version: 3.6.1 +Build-Depends-Indep: cdbs, debhelper (>= 4.1.16) + +Package: php-banana +Architecture: all +Depends: php4-cli +Recommends: compface, imagemagick +Description: foobar + Foobar + . + Homepage: http://opensource.polytechnique.org/banana/ + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7fb510d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by Pierre Habouzit on +Fri, 07 Jan 2005 22:40:08 +0100 + +It was downloaded from http://opensource.polytechnique.org/banana/ + +Upstream Author: David Bachelart + +* Banana is licensed under the terms of the GPL version 2 + or later and is copyright : + + (c) 2003-2004 David Bachelart. + (c) 2005 Pierre Habouzit. + +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/debian/php-banana.install b/debian/php-banana.install new file mode 100644 index 0000000..4853713 --- /dev/null +++ b/debian/php-banana.install @@ -0,0 +1,4 @@ +banana/ /usr/share/php/banana +img/ /usr/share/banana +css/ /usr/share/banana +locale/ /usr/share/ diff --git a/debian/php-banana.postinst b/debian/php-banana.postinst new file mode 100644 index 0000000..92e96ab --- /dev/null +++ b/debian/php-banana.postinst @@ -0,0 +1,8 @@ +#! /bin/sh + +chown -R www-data /var/spool/banana + +#DEBHELPER# + +exit 0 + diff --git a/debian/php-banana.postrm b/debian/php-banana.postrm new file mode 100644 index 0000000..81c71ae --- /dev/null +++ b/debian/php-banana.postrm @@ -0,0 +1,16 @@ +#!/bin/sh -e + +ACTION=$1 +case "$ACTION" in + purge) + rm -rf /var/spool/banana + ;; + + *) + ;; +esac + + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8ee2817 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk + +# documentation +DEB_INSTALL_DOCS_ALL := +DEB_INSTALL_DOCS_php-banana := AUTHORS TODO examples/ + +# changelogs +DEB_INSTALL_CHANGELOGS_ALL := +DEB_INSTALL_CHANGELOGS_php-banana := Changelog + +#directories +DEB_INSTALL_DIRS_php-banana := var/spool/banana/ + +install/php-banana:: + make + +clean:: + rm -f debian/compat + make clean -- 2.1.4