From 7cc9ab59c94a9088e9f519d5c406042a9068c584 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 31 Mar 2013 05:25:54 +0200 Subject: [PATCH] Added initial Debian packaging files --- debian/.gitignore | 4 ++ debian/changelog | 5 ++ debian/compat | 1 + debian/conf/apache.conf | 8 ++++ debian/control | 22 +++++++++ debian/copyright | 18 ++++++++ debian/dirs | 4 ++ debian/docs | 2 + debian/ldapsaisie.logrotate | 8 ++++ debian/ldapsaisie.postinst | 4 ++ debian/rules | 74 ++++++++++++++++++++++++++++++ doc/exports/html/Makefile | 9 +++- doc/exports/html/debian/.gitignore | 1 + doc/styles/LS-debian.xsl | 11 +++++ 14 files changed, 170 insertions(+), 1 deletion(-) create mode 100644 debian/.gitignore create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/conf/apache.conf create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/ldapsaisie.logrotate create mode 100644 debian/ldapsaisie.postinst create mode 100755 debian/rules create mode 100644 doc/exports/html/debian/.gitignore create mode 100644 doc/styles/LS-debian.xsl diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 00000000..0ba0bb10 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,4 @@ +files +ldapsaisie.debhelper.log +ldapsaisie.substvars +ldapsaisie diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..9b60e651 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ldapsaisie (1.0-1) unstable; urgency=low + + * Initial Debian release + + -- Benjamin Renard Tue, 31 Mar 2013 05:25:12 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..c7930257 --- /dev/null +++ b/debian/compat @@ -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 index 00000000..5c9b297b --- /dev/null +++ b/debian/conf/apache.conf @@ -0,0 +1,8 @@ +Alias /ldapsaisie /usr/share/ldapsaisie/public_html + + + + php_flag magic_quotes_gpc Off + php_flag register_globals Off + + diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..94eb27e9 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: ldapsaisie +Section: admin +Priority: extra +Build-Depends: debhelper, xsltproc, docbook-xsl +Maintainer: Benjamin Renard + +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 +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 index 00000000..1541c4a1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,18 @@ +This package was initiated by Benjamin Renard 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 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 index 00000000..f5043290 --- /dev/null +++ b/debian/dirs @@ -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 index 00000000..715300c2 --- /dev/null +++ b/debian/docs @@ -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 index 00000000..77b31539 --- /dev/null +++ b/debian/ldapsaisie.logrotate @@ -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 index 00000000..5917f0af --- /dev/null +++ b/debian/ldapsaisie.postinst @@ -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 index 00000000..5525134a --- /dev/null +++ b/debian/rules @@ -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 diff --git a/doc/exports/html/Makefile b/doc/exports/html/Makefile index 8629159d..32fb9697 100644 --- a/doc/exports/html/Makefile +++ b/doc/exports/html/Makefile @@ -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 index 00000000..001481c6 --- /dev/null +++ b/doc/exports/html/debian/.gitignore @@ -0,0 +1 @@ +LdapSaisie.html diff --git a/doc/styles/LS-debian.xsl b/doc/styles/LS-debian.xsl new file mode 100644 index 00000000..345e4618 --- /dev/null +++ b/doc/styles/LS-debian.xsl @@ -0,0 +1,11 @@ + + + + + + +5 +