Added initial Debian packaging files 1.0-1
authorBenjamin Renard <bn8@zionetrix.net>
Sun, 31 Mar 2013 03:25:54 +0000 (05:25 +0200)
committerBenjamin Renard <bn8@zionetrix.net>
Sun, 31 Mar 2013 03:25:54 +0000 (05:25 +0200)
14 files changed:
debian/.gitignore [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/conf/apache.conf [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/ldapsaisie.logrotate [new file with mode: 0644]
debian/ldapsaisie.postinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]
doc/exports/html/Makefile
doc/exports/html/debian/.gitignore [new file with mode: 0644]
doc/styles/LS-debian.xsl [new file with mode: 0644]

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644 (file)
index 0000000..0ba0bb1
--- /dev/null
@@ -0,0 +1,4 @@
+files
+ldapsaisie.debhelper.log
+ldapsaisie.substvars
+ldapsaisie
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..9b60e65
--- /dev/null
@@ -0,0 +1,5 @@
+ldapsaisie (1.0-1) unstable; urgency=low
+
+  * Initial Debian release
+
+ -- Benjamin Renard <brenard@zionetrix.net>  Tue, 31 Mar 2013 05:25:12 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..c793025
--- /dev/null
@@ -0,0 +1 @@
+7
\ No newline at end of file
diff --git a/debian/conf/apache.conf b/debian/conf/apache.conf
new file mode 100644 (file)
index 0000000..5c9b297
--- /dev/null
@@ -0,0 +1,8 @@
+Alias /ldapsaisie /usr/share/ldapsaisie/public_html
+
+<Directory /usr/share/ldapsaisie/public_html>
+       <IfModule mod_php5.c>
+               php_flag magic_quotes_gpc Off
+               php_flag register_globals Off
+       </IfModule>
+</Directory>
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..94eb27e
--- /dev/null
@@ -0,0 +1,22 @@
+Source: ldapsaisie
+Section: admin
+Priority: extra
+Build-Depends: debhelper, xsltproc, docbook-xsl
+Maintainer: Benjamin Renard <brenard@easter-eggs.com>
+
+Package: ldapsaisie
+Architecture: all
+Depends: apache2 | httpd, php5-ldap, libapache2-mod-php5 | php5-cli, smarty, php-net-ldap2, php-net-ftp, php-mail
+Maintainer: Benjamin Renard <brenard@easter-eggs.com>
+Description:  web based interface for managing LDAP servers content
+ LdapSaisie is a Web application developed to manage LDAP directory.
+ It has been written in PHP / JavaScript and is published under the
+ GNU GPL license. This application is designed to abstract the
+ complexity of the directory through a simple and intuitive
+ administration interface. It was designed with the objective of
+ maximal modularity and easy extension or adaptation: you can use
+ modules, extensions and plugins. LdapSaisie allows any system
+ administrator to manage data stored inside a LDAP server, and thus
+ administrate its information system in a simple manner. It's also
+ possible to let users access their own data, with read-only or
+ read-write access.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..1541c4a
--- /dev/null
@@ -0,0 +1,18 @@
+This package was initiated by Benjamin Renard <brenard@easter-eggs.com> on
+Tue, 12 Mar 2013 16:49:12 +0100. 
+
+Copyright:
+
+    ldapsaisie is copyright (C) 2013 Easter-eggs
+
+    This software is issued from GNU GENERAL PUBLIC LICENSE Version 2
+
+License:
+
+    You can use it under GNU GENERAL PUBLIC LICENSE Version 2 policy
+
+    For more information on GNU GENERAL PUBLIC LICENSE Version 2 policy,
+    please refer to COPYING.
+
+The Debian packaging is (C) 2013, Benjamin Renard <brenard@easter-eggs.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.7
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..f504329
--- /dev/null
@@ -0,0 +1,4 @@
+etc/ldapsaisie
+usr/share/doc/ldapsaisie
+var/tmp/ldapsaisie
+var/log/ldapsaisie
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..715300c
--- /dev/null
@@ -0,0 +1,2 @@
+doc/exports/html/debian/LdapSaisie.html
+lsexample/
diff --git a/debian/ldapsaisie.logrotate b/debian/ldapsaisie.logrotate
new file mode 100644 (file)
index 0000000..77b3153
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/ldapsaisie/ldapsaisie.log {
+       daily
+       missingok
+       rotate 7
+       compress
+       delaycompress
+       create 640 www-data adm
+}
diff --git a/debian/ldapsaisie.postinst b/debian/ldapsaisie.postinst
new file mode 100644 (file)
index 0000000..5917f0a
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
+chmod 640 /var/tmp/ldapsaisie /var/log/ldapsaisie
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..5525134
--- /dev/null
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-doc
+
+build-doc:
+       make -C $(CURDIR)/doc/exports/html -f Makefile debian
+
+clean:
+       dh_testdir
+       dh_testroot
+
+       dh_clean
+       make -C $(CURDIR)/doc -f Makefile clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_prep
+       dh_installdirs
+
+       dh_install debian/conf/apache.conf /etc/ldapsaisie/
+
+       cp -fr $(CURDIR)/public_html $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie
+       find $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie -name .gitignore -exec rm -f {} \;
+
+       mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/etc/ldapsaisie/
+       dh_link /etc/ldapsaisie/local /usr/share/ldapsaisie/local
+       mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/etc/ldapsaisie/local/conf/
+       sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/etc/ldapsaisie/local/conf/config.inc.php
+
+       rm -fr $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/tmp
+       dh_link /var/tmp/ldapsaisie /usr/share/ldapsaisie/tmp
+       
+
+# Build architecture-independent files here.
+binary-indep: build install
+       dh_installdocs
+       dh_installlogrotate
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+#      dh_installchangelogs ChangeLog
+#      dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+#      dh_installman
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
index 8629159..32fb969 100644 (file)
@@ -2,6 +2,7 @@ DOCBOOK_FILE=../../LdapSaisie.docbook
 XSL_FILE=../../styles/LS.xsl
 XSL_MULTI_FILE=../../styles/LS-multi.xsl
 XSL_HELP_FILE=../../styles/LS-help.xsl
+XSL_DEBIAN_FILE=../../styles/LS-debian.xsl
 
 XSLTPROC=xsltproc
 
@@ -19,5 +20,11 @@ online/index.html:           $(DOCBOOK_FILE)
 help/index.html:               $(DOCBOOK_FILE)
                                                cd help; $(XSLTPROC) ../$(XSL_HELP_FILE)        ../$(DOCBOOK_FILE)
 
+debian: debian/LdapSaisie.html
+
+debian/LdapSaisie.html:                $(DOCBOOK_FILE)
+                                               $(XSLTPROC) --output debian/LdapSaisie.html $(XSL_DEBIAN_FILE) $(DOCBOOK_FILE)
+
+
 clean:
-                               rm -f all-in-one/LdapSaisie.html online/* help/*
+                               rm -f all-in-one/LdapSaisie.html online/* help/* debian/LdapSaisie.html
diff --git a/doc/exports/html/debian/.gitignore b/doc/exports/html/debian/.gitignore
new file mode 100644 (file)
index 0000000..001481c
--- /dev/null
@@ -0,0 +1 @@
+LdapSaisie.html
diff --git a/doc/styles/LS-debian.xsl b/doc/styles/LS-debian.xsl
new file mode 100644 (file)
index 0000000..345e461
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version='1.0'?> 
+<xsl:stylesheet  
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+    xmlns:fo="http://www.w3.org/1999/XSL/Format"
+    version="1.0"> 
+
+<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl"/> 
+
+<xsl:param name="section.autolabel" select="1"></xsl:param>
+<xsl:param name="toc.section.depth">5</xsl:param>
+</xsl:stylesheet>