sogo/debian/rules
Wolfgang Sourdeau 060b29f556 Monotone-Parent: 24970ed1a272e80da6d29bce76d7fb4093a1d2a6
Monotone-Revision: 4759c8b57eaf377a0e0d928df4a65adaa731ad74

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-03T20:56:58
Monotone-Branch: ca.inverse.sogo
2012-04-03 20:56:58 +00:00

90 lines
2.2 KiB
Makefile
Executable file

#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
# export DH_OPTIONS="-p sogo"
config.make: configure
dh_testdir
./configure
#Architecture
build: build-arch
build-arch: build-arch-stamp
build-arch-stamp: config.make
# Add here commands to compile the arch part of the package.
$(MAKE)
if pkg-config --atleast-version=1.0 libmapi; \
then (cd OpenChange; $(MAKE)); \
fi
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-arch-stamp
if [ -f config.make ]; then make clean; fi
if pkg-config --atleast-version=1.0 libmapi; \
then (cd OpenChange; make clean); \
fi
dh_clean
install: install-arch
dh_testdir
dh_testroot
dh_prep -i
dh_installdirs -i
dh_install -i
install-arch: build-arch
dh_testdir
dh_testroot
dh_prep -i
# dh_installdirs -s
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install
if pkg-config --atleast-version=1.0 libmapi; \
then (cd OpenChange; $(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install); \
fi
mkdir -p debian/tmp/etc/default
cp Scripts/sogo-default debian/tmp/etc/default/sogo
mkdir -p debian/tmp/usr/share/lintian/overrides
cp debian/sogo.overrides debian/tmp/usr/share/lintian/overrides/sogo
mkdir -p debian/tmp/etc/apache2/conf.d
cp Apache/SOGo.conf debian/tmp/etc/apache2/conf.d/SOGo.conf
install -D -m 600 Scripts/sogo.cron debian/tmp/etc/cron.d/sogo
# Build architecture dependant packages using the common target.
binary-arch: build-arch install-arch
dh_testdir
dh_testroot
dh_installinit -r
dh_installlogrotate
dh_installcron
dh_installchangelogs ChangeLog
dh_installdocs
# dh_installexamples
dh_installman
dh_install
dh_link
dh_strip --dbg-package=sogo-dbg
# workaround for http://sourceware.org/bugzilla/show_bug.cgi?id=9538
# to let gdb find the symbols for libSOGo
( cd debian/sogo-dbg/usr/lib/debug/usr/lib/; \
ln -s GNUstep/Frameworks/SOGo.framework/Versions/*/libSOGo* ./ )
dh_compress
dh_fixperms -X/etc/cron.d/sogo
dh_makeshlibs
dh_shlibdeps
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-indep: build install
# We have nothing to do by default.
binary: binary-arch binary-indep
.PHONY: build clean binary-arch binary install install-arch