debian packaging
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 7 Jan 2005 22:09:43 +0000 (22:09 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:23 +0000 (00:34 +0100)
git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-10

Makefile
debian/changelog [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/php-banana.install [new file with mode: 0644]
debian/php-banana.postinst [new file with mode: 0644]
debian/php-banana.postrm [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index af7b7ed..41c71f2 100644 (file)
--- 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 (file)
index 0000000..939edce
--- /dev/null
@@ -0,0 +1,6 @@
+banana (1.0-0) unstable; urgency=low
+
+  * First upstream release.
+
+ -- Pierre Habouzit <pierre.habouzit@m4x.org>  Fri,  7 Jan 2005 22:37:03 +0100
+
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..ad41c6d
--- /dev/null
@@ -0,0 +1,16 @@
+Source: banana
+Section: web
+Priority: optional
+Maintainer: Pierre Habouzit <pierre.habouzit@m4x.org>
+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 (file)
index 0000000..7fb510d
--- /dev/null
@@ -0,0 +1,15 @@
+This package was debianized by Pierre Habouzit <pierre.habouzit@m4x.org> 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 (file)
index 0000000..4853713
--- /dev/null
@@ -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 (file)
index 0000000..92e96ab
--- /dev/null
@@ -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 (file)
index 0000000..81c71ae
--- /dev/null
@@ -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 (executable)
index 0000000..8ee2817
--- /dev/null
@@ -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