Added initial Debian packaging files

This commit is contained in:
Benjamin Renard 2013-03-31 05:25:54 +02:00
parent 05ff27515b
commit 7cc9ab59c9
14 changed files with 170 additions and 1 deletions

4
debian/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
files
ldapsaisie.debhelper.log
ldapsaisie.substvars
ldapsaisie

5
debian/changelog vendored Normal file
View file

@ -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

1
debian/compat vendored Normal file
View file

@ -0,0 +1 @@
7

8
debian/conf/apache.conf vendored Normal file
View file

@ -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>

22
debian/control vendored Normal file
View file

@ -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.

18
debian/copyright vendored Normal file
View file

@ -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

4
debian/dirs vendored Normal file
View file

@ -0,0 +1,4 @@
etc/ldapsaisie
usr/share/doc/ldapsaisie
var/tmp/ldapsaisie
var/log/ldapsaisie

2
debian/docs vendored Normal file
View file

@ -0,0 +1,2 @@
doc/exports/html/debian/LdapSaisie.html
lsexample/

8
debian/ldapsaisie.logrotate vendored Normal file
View file

@ -0,0 +1,8 @@
/var/log/ldapsaisie/ldapsaisie.log {
daily
missingok
rotate 7
compress
delaycompress
create 640 www-data adm
}

4
debian/ldapsaisie.postinst vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
chmod 640 /var/tmp/ldapsaisie /var/log/ldapsaisie

74
debian/rules vendored Executable file
View file

@ -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

View 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

1
doc/exports/html/debian/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
LdapSaisie.html

11
doc/styles/LS-debian.xsl Normal file
View file

@ -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>