2007-04-15 19:26:34 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
|
|
# dh-make output file, you may use that output file without restriction.
|
|
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
export PERL_MM_USE_DEFAULT=1
|
|
|
|
|
2010-10-31 11:35:29 +01:00
|
|
|
LMSHAREDIR=/usr/share/lemonldap-ng
|
|
|
|
LMVARDIR=/var/lib/lemonldap-ng
|
2007-04-15 19:26:34 +02:00
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
2008-12-24 08:22:42 +01:00
|
|
|
|
2007-04-15 19:26:34 +02:00
|
|
|
# Add here commands to configure the package.
|
2009-12-03 11:08:33 +01:00
|
|
|
$(MAKE) configure STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
|
2008-12-24 08:22:42 +01:00
|
|
|
PERLOPTIONS="INSTALLDIRS=vendor"
|
2007-04-15 19:26:34 +02:00
|
|
|
|
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
|
2011-06-28 05:46:37 +02:00
|
|
|
build-indep: build-stamp
|
|
|
|
|
|
|
|
build-arch:
|
|
|
|
|
2007-04-15 19:26:34 +02:00
|
|
|
build-stamp: configure-stamp
|
|
|
|
dh_testdir
|
|
|
|
|
|
|
|
# Add here commands to compile the package.
|
2008-12-24 08:22:42 +01:00
|
|
|
$(MAKE)
|
2007-04-15 19:26:34 +02:00
|
|
|
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2007-07-08 15:49:23 +02:00
|
|
|
debconf-updatepo
|
2007-04-15 19:26:34 +02:00
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
|
|
|
|
# Add here commands to clean up after the build process.
|
2007-10-15 07:44:34 +02:00
|
|
|
[ ! -f Makefile ] || $(MAKE) clean
|
2007-04-15 19:26:34 +02:00
|
|
|
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-11-01 14:13:39 +01:00
|
|
|
dh_prep
|
2007-04-15 19:26:34 +02:00
|
|
|
dh_installdirs
|
|
|
|
|
|
|
|
# Add here commands to install the package into debian/lemonldap-ng.
|
2008-11-22 19:09:57 +01:00
|
|
|
$(MAKE) test
|
2008-12-24 08:22:42 +01:00
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp \
|
|
|
|
PREFIX=/usr/ \
|
2010-05-02 12:52:56 +02:00
|
|
|
LMPREFIX=/usr/share/lemonldap-ng/ \
|
2010-10-31 11:35:29 +01:00
|
|
|
BINDIR=$(LMSHAREDIR)/bin/ \
|
2008-12-24 08:22:42 +01:00
|
|
|
DOCUMENTROOT=$(LMVARDIR) \
|
|
|
|
EXAMPLESDIR=/examples/ \
|
2010-10-31 11:35:29 +01:00
|
|
|
HANDLERDIR=$(LMVARDIR)/handler/ \
|
|
|
|
PORTALSKINSDIR=$(LMSHAREDIR)/portal-skins/ \
|
|
|
|
MANAGERSKINSDIR=$(LMSHAREDIR)/manager-skins/ \
|
|
|
|
SESSIONSEXPLORERDATADIR=$(LMSHAREDIR)/sessions-explorer-imgs/ \
|
2009-12-03 11:08:33 +01:00
|
|
|
STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
|
2010-10-31 11:35:29 +01:00
|
|
|
TOOLSDIR=$(LMSHAREDIR)/ressources/ \
|
2008-12-24 08:22:42 +01:00
|
|
|
CONFDIR=/etc/lemonldap-ng/ \
|
|
|
|
CRONDIR=/etc/cron.d/ \
|
|
|
|
DATADIR=$(LMVARDIR) \
|
|
|
|
APACHEUSER=www-data \
|
2010-10-31 11:35:29 +01:00
|
|
|
APACHEGROUP=www-data \
|
2010-11-06 09:08:11 +01:00
|
|
|
DOCDIR=/usr/share/doc/lemonldap-ng-doc
|
2008-12-24 08:22:42 +01:00
|
|
|
|
2012-06-18 10:37:55 +02:00
|
|
|
test -n "$$LOCALBUILD" || ./scripts/minifierjs $$(find debian/tmp/ -name '*.js')
|
|
|
|
test -n "$$LOCALBUILD" || ./scripts/minifiercss $$(find debian/tmp/ -name '*.css')
|
2010-11-06 09:08:11 +01:00
|
|
|
|
|
|
|
# Move perl scripts in /usr/share, links are created by *.postinst scripts
|
2010-09-06 10:39:39 +02:00
|
|
|
mkdir debian/tmp/usr/share/lemonldap-ng/manager debian/tmp/usr/share/lemonldap-ng/portal
|
|
|
|
mv debian/tmp/var/lib/lemonldap-ng/portal/*.pl debian/tmp/usr/share/lemonldap-ng/portal/
|
|
|
|
mv debian/tmp/var/lib/lemonldap-ng/manager/*pl debian/tmp/usr/share/lemonldap-ng/manager/
|
2008-11-26 08:40:42 +01:00
|
|
|
|
2007-04-15 19:26:34 +02:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2007-10-15 07:29:29 +02:00
|
|
|
dh_installchangelogs changelog
|
2007-04-15 19:26:34 +02:00
|
|
|
dh_installdocs
|
2007-04-29 14:07:20 +02:00
|
|
|
dh_installexamples
|
|
|
|
dh_install
|
2010-10-31 11:35:29 +01:00
|
|
|
chmod +x debian/liblemonldap-ng-portal-perl$(LMSHAREDIR)/bin/purgeCentralCache
|
|
|
|
chmod +x debian/liblemonldap-ng-handler-perl$(LMSHAREDIR)/bin/purgeLocalCache
|
2007-04-15 19:26:34 +02:00
|
|
|
# dh_installmenu
|
2007-04-29 14:07:20 +02:00
|
|
|
dh_installdebconf
|
2007-04-15 19:26:34 +02:00
|
|
|
# dh_installlogrotate
|
|
|
|
# dh_installemacsen
|
|
|
|
# dh_installpam
|
|
|
|
# dh_installmime
|
|
|
|
# dh_python
|
|
|
|
# dh_installinit
|
2007-05-01 16:53:26 +02:00
|
|
|
dh_installcron
|
2007-04-15 19:26:34 +02:00
|
|
|
# dh_installinfo
|
|
|
|
dh_installman
|
|
|
|
dh_link
|
|
|
|
dh_strip
|
2009-01-03 09:49:30 +01:00
|
|
|
dh_compress -X.pm -X.pl
|
2007-04-15 19:26:34 +02:00
|
|
|
dh_fixperms
|
|
|
|
# dh_perl
|
|
|
|
# dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
2008-02-26 20:43:05 +01:00
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
|
|
|
|
2007-04-15 19:26:34 +02:00
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|