rules 799 Bytes
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4
#!/usr/bin/make -f

#export DH_VERBOSE=1

5 6 7
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
Matt Tucker's avatar
Matt Tucker committed
8

9 10 11 12 13 14
DEST := $(CURDIR)/debian/openfire
TARGET := $(CURDIR)/target/openfire
OPENFIRE := $(DEST)/usr/share/openfire
ETCDIR := $(DEST)/etc/openfire
LOGDIR := $(DEST)/var/log/openfire
VARDIR := $(DEST)/var/lib/openfire
Matt Tucker's avatar
Matt Tucker committed
15

16
JAVA_HOME ?= /usr/lib/jvm/java-6-sun
17 18
DEB_ANT_BUILDFILE := build/build.xml
DEB_ANT_CLEAN_TARGET := clean
19

20 21
install/openfire::
	cp $(TARGET)/lib/*.jar $(OPENFIRE)/lib/
22
	cp $(TARGET)/lib/log4j.xml $(ETCDIR)
23 24 25 26
	cp -r $(TARGET)/resources/database $(OPENFIRE)/resources/database
	cp $(TARGET)/conf/openfire.xml $(ETCDIR)
	cp -r $(TARGET)/resources/security $(ETCDIR)/security
	cp -r $(TARGET)/plugins $(VARDIR)/plugins