fix packaging problems

This commit is contained in:
<bdauvergne@entrouvert.com> 1207326322 +0200 0001-01-01 00:00:00 +00:00
parent aa62025e5d
commit 2091b68c0b
7 changed files with 17 additions and 4 deletions

View File

@ -10,6 +10,8 @@ PHPINCLUDEDIR=/usr/share/php
DOCPREFIX=/usr/share/doc
DOCDIR=$(DOCPREFIX)/$(NAME)
HTTPD_USER=www-data
VARPREFIX=/var/lib
VARDIR=$(VARPREFIX)/$(NAME)
.PHONY: zip distclean dist install all clean
@ -33,11 +35,10 @@ install:
install -m 644 -t $(DESTDIR)$(DATADIR)/endpoints endpoints/*
install -m 644 -t $(DESTDIR)$(DOCDIR)/exemples exemples/*.*
install -d $(DESTDIR)$(DOCDIR)
ln -nfs $(DATADIR) $(DESTDIR)$(PHPINCLUDEDIR)/$(NAME)
ln -nfs $(DATADIR)/include $(DESTDIR)$(PHPINCLUDEDIR)/$(NAME)
install -m 644 -t $(DESTDIR)$(DOCDIR)/html doc/*.html
install -m 644 -t $(DESTDIR)$(DOCDIR) README INSTALL
-mkdir -m 755 /var/lib/spkitlasso
chown $(HTTPD_USER): /var/lib/spkitlasso
install -d -o $(HTTPD_USER) -m 755 $(DESTDIR)$(VARDIR)
distclean:
rm -rf $(FULL)

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
spkitlasso (0.2) unstable; urgency=low
* Setup the library into /usr/share/php/spkitlasso
* Setup a datadir for hosts into /var/lib/spkitlasso
-- Benjamin Dauvergne <bdauvergne@entrouvert.com> Thu, 20 Mar 2008 14:23:09 +0100
spkitlasso (0.1-1) unstable; urgency=low
* Initial release

2
debian/control vendored
View File

@ -7,7 +7,7 @@ Standards-Version: 3.7.2
Package: spkitlasso
Architecture: any
Depends: lasso-php
Depends: php-lasso
Description: Simple library to use Lasso PHP bindings inside service providers
This package provides PHP 5 classes and a procedural API to use Lasso basic
protocols like SSO, Identity Federation, Identity Defederation and SLO,

1
debian/dirs vendored
View File

@ -1,3 +1,4 @@
var/lib
usr/share/spkitlasso
usr/share/doc
usr/share/php

View File

@ -1 +1,2 @@
debian/tmp/usr/*
debian/tmp/var/lib/*

View File

@ -1,5 +1,7 @@
#! /bin/sh -e
# Automatically added by dh_installdocs
if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
install-docs -i /usr/share/doc-base/spkitlasso
fi
chown www-data /var/lib/spkitlasso
# End automatically added section

View File

@ -1,3 +1,4 @@
#! /bin/sh -e
# Automatically added by dh_installdocs
if [ "$1" = remove ] || [ "$1" = upgrade ] && \
which install-docs >/dev/null 2>&1; then