mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-21 07:53:50 +01:00
79 lines
2.1 KiB
Makefile
Executable file
79 lines
2.1 KiB
Makefile
Executable file
#!/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 {} \;
|
|
find $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie -name .placefolder -exec rm -f {} \;
|
|
|
|
mv $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/local $(CURDIR)/debian/ldapsaisie/etc/ldapsaisie/
|
|
find $(CURDIR)/debian/ldapsaisie/etc/ldapsaisie/local -type f -exec rm -f \{\} \;
|
|
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
|
|
|
|
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
|