LDAPAccountManager/lam-packaging/debian/rules

91 lines
4.5 KiB
Plaintext
Raw Normal View History

2006-01-20 15:33:13 +00:00
#!/usr/bin/make -f
clean:
dh_testdir
dh_testroot
debconf-updatepo
dh_clean
2011-07-21 18:45:57 +00:00
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
2014-03-08 13:43:17 +00:00
debian/minify
2011-07-21 18:45:57 +00:00
build-stamp:
2006-01-20 15:33:13 +00:00
2017-02-20 17:36:08 +00:00
install:
2006-01-20 15:33:13 +00:00
dh_testdir
dh_testroot
2009-03-28 19:02:28 +00:00
dh_prep
2006-01-20 15:33:13 +00:00
dh_installdirs
install -D --mode=644 index.html debian/ldap-account-manager/usr/share/ldap-account-manager/index.html
install -D --mode=644 VERSION debian/ldap-account-manager/usr/share/ldap-account-manager/VERSION
install -D --mode=644 tmp/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/tmp/.htaccess
2012-01-26 20:01:38 +00:00
install -D --mode=644 tmp/internal/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/tmp/internal/.htaccess
2006-01-20 15:33:13 +00:00
install -D --mode=644 config/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/config/.htaccess
install -D --mode=644 config/language debian/ldap-account-manager/var/lib/ldap-account-manager/config/language
2015-01-01 16:53:58 +00:00
install -D --mode=644 config/*.conf.sample debian/ldap-account-manager/var/lib/ldap-account-manager/config/
2014-07-12 14:24:05 +00:00
install -D --mode=644 config/config.cfg.sample debian/ldap-account-manager/var/lib/ldap-account-manager/config/config.cfg.sample
2012-10-28 17:37:11 +00:00
install -d --mode=755 debian/ldap-account-manager/var/lib/ldap-account-manager/config/pdf
install -d --mode=755 debian/ldap-account-manager/var/lib/ldap-account-manager/config/profiles
2014-10-05 18:24:02 +00:00
install -d --mode=755 debian/ldap-account-manager/var/lib/ldap-account-manager/config/selfService
2008-02-16 10:13:21 +00:00
install -d --mode=755 debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples
2012-10-28 16:41:40 +00:00
cp -r config/templates/profiles debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
cp -r config/templates/pdf debian/ldap-account-manager/usr/share/ldap-account-manager/config-samples/
2006-01-20 15:33:13 +00:00
cp -r graphics debian/ldap-account-manager/usr/share/ldap-account-manager/
install -D --mode=644 help/help.inc debian/ldap-account-manager/usr/share/ldap-account-manager/help/help.inc
install -D --mode=644 lib/.htaccess debian/ldap-account-manager/usr/share/ldap-account-manager/lib/.htaccess
install -D --mode=644 lib/*.inc debian/ldap-account-manager/usr/share/ldap-account-manager/lib
2015-10-28 18:32:57 +00:00
install -D --mode=755 lib/*.sh debian/ldap-account-manager/usr/share/ldap-account-manager/lib
2006-01-20 15:33:13 +00:00
cp -r lib/modules debian/ldap-account-manager/usr/share/ldap-account-manager/lib/
cp -r lib/types debian/ldap-account-manager/usr/share/ldap-account-manager/lib/
2009-11-07 18:52:56 +00:00
cp -r lib/tools debian/ldap-account-manager/usr/share/ldap-account-manager/lib/
2018-06-28 11:46:44 +00:00
# link 3rd party libs
2018-06-28 11:52:44 +00:00
rm -rf debian/ldap-account-manager/usr/share/ldap-account-manager/lib/3rdParty/*
2018-06-28 11:46:44 +00:00
ln -s /usr/share/php/phpseclib debian/ldap-account-manager/usr/share/ldap-account-manager/lib/3rdParty/
ln -s /usr/share/php/tcpdf debian/ldap-account-manager/usr/share/ldap-account-manager/lib/3rdParty/
2006-01-20 15:33:13 +00:00
cp -r locale debian/ldap-account-manager/usr/share/ldap-account-manager/
install -D --mode=644 sess/.htaccess debian/ldap-account-manager/var/lib/ldap-account-manager/sess/.htaccess
2010-10-28 18:25:01 +00:00
cp -r style debian/ldap-account-manager/usr/share/ldap-account-manager/
2006-01-20 15:33:13 +00:00
cp -r templates debian/ldap-account-manager/usr/share/ldap-account-manager/
2008-07-22 18:31:35 +00:00
install -D --mode=755 lib/lamdaemon.pl debian/ldap-account-manager-lamdaemon/usr/share/ldap-account-manager/lib/lamdaemon.pl
2008-10-20 18:16:26 +00:00
install -D --mode=755 debian/README-lamdaemon.Debian debian/ldap-account-manager-lamdaemon/usr/share/doc/ldap-account-manager-lamdaemon/README.Debian
2008-07-22 18:14:03 +00:00
2006-01-20 15:33:13 +00:00
# Build architecture-independent files here.
binary-dep: build install
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs HISTORY
dh_installdocs
dh_install
dh_compress
dh_fixperms
2017-10-22 15:10:13 +00:00
dh_link /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf /usr/share/ldap-account-manager/lib/3rdParty/tcpdf/fonts/DejaVuSerif.ttf
dh_link /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf /usr/share/ldap-account-manager/lib/3rdParty/tcpdf/fonts/DejaVuSerif-Bold.ttf
2011-02-17 20:09:26 +00:00
dh_link /usr/share/doc/ldap-account-manager/docs /usr/share/ldap-account-manager/docs
2006-01-20 15:33:13 +00:00
install -D --mode=644 debian/lam.apache.conf debian/ldap-account-manager/etc/ldap-account-manager/apache.conf
2014-07-27 17:48:59 +00:00
install -D --mode=644 debian/lam.nginx.conf debian/ldap-account-manager/etc/ldap-account-manager/nginx.conf
2014-07-12 14:24:05 +00:00
install -D --mode=644 config/config.cfg.sample debian/ldap-account-manager/etc/ldap-account-manager/config.cfg
2006-01-20 15:33:13 +00:00
dh_link /etc/ldap-account-manager/config.cfg /var/lib/ldap-account-manager/config/config.cfg
dh_installdebconf
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep
.PHONY: build clean binary-indep binary install configure
2006-05-22 12:30:28 +00:00
binary-arch: