2009-07-28 21:07:51 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
export DH_VERBOSE=1
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
dh_testdir
|
|
|
|
LDFLAGS="-Wl,-z,defs" ./configure
|
|
|
|
|
|
|
|
|
|
|
|
#Architecture
|
|
|
|
build: build-arch build-indep
|
|
|
|
|
|
|
|
build-arch: build-arch-stamp
|
|
|
|
build-arch-stamp: config.status
|
|
|
|
|
|
|
|
# Add here commands to compile the arch part of the package.
|
|
|
|
#$(MAKE)
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
build-indep: build-indep-stamp
|
|
|
|
build-indep-stamp: config.status
|
|
|
|
|
|
|
|
# Add here commands to compile the indep part of the package.
|
|
|
|
#$(MAKE) doc
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-arch-stamp build-indep-stamp
|
|
|
|
make clean
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: install-indep install-arch
|
|
|
|
install-indep:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k -i
|
|
|
|
dh_installdirs -i
|
|
|
|
dh_install -i
|
|
|
|
|
|
|
|
install-arch:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k -s
|
|
|
|
dh_installdirs -s
|
|
|
|
|
|
|
|
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install
|
2009-07-29 15:11:46 +02:00
|
|
|
mkdir -p debian/tmp/etc/init.d
|
2009-07-28 21:07:51 +02:00
|
|
|
mkdir -p debian/tmp/etc/cron.daily
|
|
|
|
mkdir -p debian/tmp/var/run/sogo
|
|
|
|
mkdir -p debian/tmp/var/log/sogo
|
|
|
|
mkdir -p debian/tmp/var/spool/sogo
|
|
|
|
mkdir -p debian/tmp/etc/default
|
|
|
|
mkdir -p debian/tmp/etc/apache2/conf.d
|
|
|
|
mkdir -p debian/tmp/usr/sbin
|
2009-07-30 22:44:04 +02:00
|
|
|
echo "DAEMON=/usr/sbin/sogod-launcher" >> debian/tmp/etc/default/sogo
|
2009-07-28 21:07:51 +02:00
|
|
|
cp Scripts/sogo-init.d-debian debian/tmp/etc/init.d/sogod
|
|
|
|
cp Scripts/tmpwatch debian/tmp/etc/cron.daily/sogo-tmpwatch
|
2009-07-30 22:44:04 +02:00
|
|
|
cp Apache/SOGo-debian.conf debian/tmp/etc/apache2/conf.d/SOGo.conf
|
|
|
|
cp Scripts/sogod-wrapper debian/tmp/usr/sbin/sogod-launcher
|
2009-07-28 21:07:51 +02:00
|
|
|
|
|
|
|
dh_install -s
|
|
|
|
|
|
|
|
binary-common:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installchangelogs ChangeLog
|
|
|
|
dh_installdocs
|
|
|
|
dh_installexamples
|
|
|
|
dh_installman
|
|
|
|
dh_link
|
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_makeshlibs
|
|
|
|
dh_installdeb
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary-indep: build-indep install-indep
|
|
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
|
|
|
|
|
|
|
|
# Build architecture dependant packages using the common target.
|
|
|
|
binary-arch: build-arch install-arch
|
|
|
|
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
|
|
|
|
|
|
|
|
binary: binary-arch binary-indep
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch
|