dbfb83d24e
Updated the spec and deb rules to install it by default Updated the doc to mention this new cronjob. Monotone-Parent: f5ba6db440f5a8ba817af65dea12b4a616fdfe71 Monotone-Revision: 29783e64b9a7d49e5e0be8ac1b56c15bb344190f Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-01-10T17:03:48
76 lines
1.6 KiB
Makefile
Executable file
76 lines
1.6 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)
|
|
touch $@
|
|
|
|
clean:
|
|
dh_testdir
|
|
dh_testroot
|
|
rm -f build-arch-stamp
|
|
if [ -f config.make ]; then 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
|
|
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
|
|
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
|