1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
DESTDIR=$(CURDIR)/debian/b2evolution
GVARDIR=$(DESTDIR)/var/lib/b2evolution
MINDEBCONFVER := 1.2.0
clean:
dh_testdir
dh_testroot
dh_clean
debconf-updatepo
install:
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
dh_install -XCVS -Xmedia
#commands to create the media directory and its index file
install -m 750 -o www-data -g www-data -d $(GVARDIR)/media
install -m 640 -o www-data -g www-data debian/media-index.html $(GVARDIR)/media/index.html
install -m 755 -d $(DESTDIR)/usr/share/lintian/overrides
install -m 644 debian/b2evolution.lintian.override $(DESTDIR)/usr/share/lintian/overrides/b2evolution
build:
# Build architecture-dependent files here.
binary-arch: install
# We have nothing to do by default.
# Build architecture-independent files here.
binary-indep: install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_link
dh_fixperms -Xmedia
dh_compress
dh_installdebconf
dh_installdeb
dh_gencontrol -- -V'debconf-depends=debconf (>= $(MINDEBCONFVER))'
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install #PHONY_CONFIGURE#
|