2009-07-28 21:07:51 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
export DH_VERBOSE=1
|
2009-08-12 17:25:33 +02:00
|
|
|
# export DH_OPTIONS="-p sogo"
|
2009-07-28 21:07:51 +02:00
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
config.make: configure
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_testdir
|
2009-08-12 17:25:33 +02:00
|
|
|
./configure
|
2009-07-28 21:07:51 +02:00
|
|
|
|
|
|
|
#Architecture
|
2010-09-09 18:04:27 +02:00
|
|
|
build: build-arch
|
2009-07-28 21:07:51 +02:00
|
|
|
|
|
|
|
build-arch: build-arch-stamp
|
2009-08-12 17:25:33 +02:00
|
|
|
build-arch-stamp: config.make
|
|
|
|
# Add here commands to compile the arch part of the package.
|
2010-08-20 18:04:57 +02:00
|
|
|
$(MAKE)
|
2009-07-28 21:07:51 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2010-09-09 18:04:27 +02:00
|
|
|
rm -f build-arch-stamp
|
2009-08-12 17:25:33 +02:00
|
|
|
if [ -f config.make ]; then make clean; fi
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_clean
|
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
install: install-arch
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-08-12 17:25:33 +02:00
|
|
|
dh_prep -i
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_installdirs -i
|
|
|
|
dh_install -i
|
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
install-arch: build-arch
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-08-12 17:25:33 +02:00
|
|
|
dh_prep -i
|
|
|
|
# dh_installdirs -s
|
2009-07-28 21:07:51 +02:00
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install
|
2009-07-28 21:07:51 +02:00
|
|
|
mkdir -p debian/tmp/etc/default
|
2009-08-12 17:25:33 +02:00
|
|
|
cp Scripts/sogo-default debian/tmp/etc/default/sogo
|
|
|
|
cp Scripts/sogod-wrapper debian/tmp/usr/sbin/sogod-wrapper
|
|
|
|
mkdir -p debian/tmp/usr/share/lintian/overrides
|
|
|
|
cp debian/sogo.overrides debian/tmp/usr/share/lintian/overrides/sogo
|
2009-08-18 19:41:14 +02:00
|
|
|
mkdir -p debian/tmp/etc/apache2/conf.d
|
|
|
|
cp Apache/SOGo-debian.conf debian/tmp/etc/apache2/conf.d/SOGo.conf
|
2009-07-28 21:07:51 +02:00
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
# Build architecture dependant packages using the common target.
|
|
|
|
binary-arch: build-arch install-arch
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2009-08-12 17:25:33 +02:00
|
|
|
dh_installinit -r
|
|
|
|
dh_installlogrotate
|
|
|
|
dh_installcron
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_installchangelogs ChangeLog
|
|
|
|
dh_installdocs
|
2010-02-17 17:06:55 +01:00
|
|
|
# dh_installexamples
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_installman
|
2009-08-12 17:25:33 +02:00
|
|
|
dh_install
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_link
|
2010-09-09 18:33:12 +02:00
|
|
|
dh_strip --dbg-package=sogo-dbg
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_makeshlibs
|
2009-08-12 17:25:33 +02:00
|
|
|
dh_shlibdeps
|
2009-07-28 21:07:51 +02:00
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
2010-09-09 18:35:31 +02:00
|
|
|
binary-indep: build install
|
|
|
|
# We have nothing to do by default.
|
2010-09-09 17:51:13 +02:00
|
|
|
|
2010-09-09 18:36:56 +02:00
|
|
|
binary: binary-arch binary-indep
|
2010-09-09 18:33:12 +02:00
|
|
|
.PHONY: build clean binary-arch binary install install-arch
|