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
|
|
|
|
build: build-arch build-indep
|
|
|
|
|
|
|
|
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.
|
|
|
|
$(MAKE)
|
2009-07-28 21:07:51 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
build-indep: build-indep-stamp
|
2009-08-12 17:25:33 +02:00
|
|
|
build-indep-stamp: config.make
|
|
|
|
# Add here commands to compile the indep part of the package.
|
|
|
|
# $(MAKE) doc
|
2009-07-28 21:07:51 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-arch-stamp build-indep-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
|
|
|
install-indep:
|
|
|
|
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
|
|
|
binary-indep: build-indep install-indep
|
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
|
|
|
|
dh_strip
|
|
|
|
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
|
|
|
|
|
2009-08-12 17:25:33 +02:00
|
|
|
binary: binary-arch
|
2009-07-28 21:07:51 +02:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch
|