mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
Improve debian rules file
This commit is contained in:
parent
d45373222b
commit
5d3aadbbd7
6 changed files with 17 additions and 82 deletions
3
debian/dirs
vendored
3
debian/dirs
vendored
|
@ -3,6 +3,7 @@ etc/ldap/schema
|
||||||
usr/bin
|
usr/bin
|
||||||
usr/share
|
usr/share
|
||||||
usr/share/doc/ldapsaisie
|
usr/share/doc/ldapsaisie
|
||||||
usr/local/share
|
usr/local/share/ldapsaisie/conf
|
||||||
|
usr/share/ldapsaisie/local
|
||||||
var/tmp/ldapsaisie
|
var/tmp/ldapsaisie
|
||||||
var/log/ldapsaisie
|
var/log/ldapsaisie
|
||||||
|
|
5
debian/ldapsaisie.install
vendored
Normal file
5
debian/ldapsaisie.install
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
debian/conf/apache.conf etc/ldapsaisie/
|
||||||
|
debian/bin/* usr/bin/
|
||||||
|
lsexample/schema/lsexample.schema etc/ldap/schema/
|
||||||
|
lsexample/schema/lsexample.ldif etc/ldap/schema/
|
||||||
|
public_html/* usr/share/ldapsaisie/
|
3
debian/ldapsaisie.links
vendored
Normal file
3
debian/ldapsaisie.links
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
var/tmp/ldapsaisie usr/share/ldapsaisie/tmp
|
||||||
|
usr/local/share/ldapsaisie usr/share/ldapsaisie/local
|
||||||
|
usr/local/share/ldapsaisie etc/ldapsaisie/local
|
6
debian/ldapsaisie.postinst
vendored
6
debian/ldapsaisie.postinst
vendored
|
@ -2,12 +2,6 @@
|
||||||
|
|
||||||
chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
|
chown www-data:adm /var/tmp/ldapsaisie /var/log/ldapsaisie
|
||||||
chmod 750 /var/tmp/ldapsaisie /var/log/ldapsaisie
|
chmod 750 /var/tmp/ldapsaisie /var/log/ldapsaisie
|
||||||
if test ! -L /etc/ldapsaisie/local
|
|
||||||
then
|
|
||||||
echo "Install /etc/ldapsaisie/local symbolic link"
|
|
||||||
[ -e /etc/ldapsaisie/local ] && mv -f /etc/ldapsaisie/local /etc/ldapsaisie/local.dpkg-old
|
|
||||||
ln -s /usr/local/share/ldapsaisie /etc/ldapsaisie/local
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move ]
|
if [ -f /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move ]
|
||||||
then
|
then
|
||||||
|
|
8
debian/ldapsaisie.preinst
vendored
8
debian/ldapsaisie.preinst
vendored
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if test -e /etc/ldapsaisie/local -a ! -L /etc/ldapsaisie/local
|
|
||||||
then
|
|
||||||
echo "Move /etc/ldapsaisie/local in /usr/local/share/ldapsaisie"
|
|
||||||
mv /etc/ldapsaisie/local /usr/local/share/ldapsaisie
|
|
||||||
mv /usr/local/share/ldapsaisie/conf/config.inc.php /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move
|
|
||||||
fi
|
|
74
debian/rules
vendored
74
debian/rules
vendored
|
@ -1,81 +1,21 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
# -*- makefile -*-
|
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
%:
|
||||||
#export DH_VERBOSE=1
|
dh $@
|
||||||
|
|
||||||
build: build-doc
|
override_dh_auto_build:
|
||||||
|
|
||||||
build-doc:
|
|
||||||
make -C $(CURDIR)/doc/exports/html -f Makefile debian
|
make -C $(CURDIR)/doc/exports/html -f Makefile debian
|
||||||
|
|
||||||
clean:
|
override_dh_clean:
|
||||||
dh_testdir
|
|
||||||
dh_testroot
|
|
||||||
|
|
||||||
dh_clean
|
dh_clean
|
||||||
make -C $(CURDIR)/doc -f Makefile clean
|
make -C $(CURDIR)/doc -f Makefile clean
|
||||||
|
|
||||||
install: build
|
override_dh_install:
|
||||||
dh_testdir
|
dh_install -X .gitignore -X .placefolder -X tmp
|
||||||
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 {} \;
|
|
||||||
find $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie -name .placefolder -exec rm -f {} \;
|
|
||||||
|
|
||||||
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie
|
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie
|
||||||
find $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie -type f -exec rm -f \{\} \;
|
find $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie -type f -exec rm -f \{\} \;
|
||||||
dh_link /usr/local/share/ldapsaisie /usr/share/ldapsaisie/local
|
|
||||||
sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
|
sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php
|
||||||
cp $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie/conf/config.inc.example.php
|
cp $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie/conf/config.inc.example.php
|
||||||
|
|
||||||
rm -fr $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/tmp
|
override_dh_usrlocal:
|
||||||
dh_link /var/tmp/ldapsaisie /usr/share/ldapsaisie/tmp
|
|
||||||
|
|
||||||
cp -fr $(CURDIR)/debian/bin/* $(CURDIR)/debian/ldapsaisie/usr/bin/
|
|
||||||
|
|
||||||
cp -f $(CURDIR)/lsexample/schema/lsexample.schema $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/
|
|
||||||
cp -f $(CURDIR)/lsexample/schema/lsexample.ldif $(CURDIR)/debian/ldapsaisie/etc/ldap/schema/
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
Loading…
Reference in a new issue