| 1 |
#!/usr/bin/make -f
|
| 2 |
# debian/rules for lucene
|
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode.
|
| 5 |
#export DH_VERBOSE=1
|
| 6 |
|
| 7 |
# Set a locale; currently using default
|
| 8 |
export LANG=C
|
| 9 |
|
| 10 |
# Include dpatch stuff per the documentation
|
| 11 |
include /usr/share/dpatch/dpatch.make
|
| 12 |
|
| 13 |
VERSION=1.4.3
|
| 14 |
PNAME=lucene
|
| 15 |
|
| 16 |
TEMPDIR=debian/tmp
|
| 17 |
|
| 18 |
# Set JAVA_HOME to be used for Java commands
|
| 19 |
JAVA_HOME=/usr/lib/kaffe
|
| 20 |
|
| 21 |
# Set the invocation of the java command;
|
| 22 |
JAVACMD=$(JAVA_HOME)/bin/java
|
| 23 |
|
| 24 |
# Class path: Ant requires a JAXP-compatible XML parser
|
| 25 |
# You need to set CLASSPATH here (even if your build.xml assembles its own
|
| 26 |
# class path) to ensure the same build results in all cases
|
| 27 |
JAVA_LIB=/usr/share/java
|
| 28 |
ANT_HOME=/usr/share/ant
|
| 29 |
ANT_CLASSPATH=$(JAVA_LIB)/gnujaxp.jar:$(ANT_HOME)/lib/ant.jar:$(ANT_HOME)/lib/ant-launcher.jar:$(ANT_HOME)/lib/ant-junit.jar:$(JAVA_LIB)/junit.jar:$(JAVA_LIB)/xalan2.jar:/usr/share/kaffe/Klasses.jar
|
| 30 |
|
| 31 |
# Set path to Ant properties file
|
| 32 |
ANT_PROPS=debian/ant.properties
|
| 33 |
|
| 34 |
# Universal Ant invocation for reliable builds;
|
| 35 |
# place '-verbose' before -propertyfile to
|
| 36 |
# obtain detailed build output.
|
| 37 |
ANT=$(JAVACMD) -classpath $(ANT_CLASSPATH) \
|
| 38 |
org.apache.tools.ant.Main -verbose -propertyfile $(ANT_PROPS)
|
| 39 |
|
| 40 |
build: build-stamp
|
| 41 |
|
| 42 |
build-stamp: patch-stamp
|
| 43 |
dh_testdir
|
| 44 |
$(ANT) javacc
|
| 45 |
$(ANT) package
|
| 46 |
$(ANT) test
|
| 47 |
touch build-stamp
|
| 48 |
|
| 49 |
clean: unpatch
|
| 50 |
dh_testdir
|
| 51 |
dh_testroot
|
| 52 |
rm -f build-stamp
|
| 53 |
$(ANT) clean
|
| 54 |
dh_clean
|
| 55 |
rm -rf $(TEMPDIR)/usr/share/java
|
| 56 |
rm -rf $(TEMPDIR)/var/lib/tomcat4/webapps
|
| 57 |
|
| 58 |
install: build
|
| 59 |
dh_testdir
|
| 60 |
dh_testroot
|
| 61 |
dh_clean -k
|
| 62 |
dh_installdirs
|
| 63 |
mkdir -p $(TEMPDIR)/usr/share/java
|
| 64 |
mkdir -p $(TEMPDIR)/var/lib/tomcat4/webapps
|
| 65 |
|
| 66 |
# Add here commands to install the package into debian/lucene.
|
| 67 |
install -m 644 build/$(PNAME)-$(VERSION).jar \
|
| 68 |
build/$(PNAME)-demos-$(VERSION).jar \
|
| 69 |
$(TEMPDIR)/usr/share/java
|
| 70 |
|
| 71 |
install -m 644 build/luceneweb.war \
|
| 72 |
$(TEMPDIR)/var/lib/tomcat4/webapps
|
| 73 |
|
| 74 |
dh_movefiles
|
| 75 |
|
| 76 |
# Build architecture-independent files here.
|
| 77 |
binary-indep: build install
|
| 78 |
# We have nothing to do by default.
|
| 79 |
|
| 80 |
# Build architecture-dependent files here.
|
| 81 |
binary-arch: build install
|
| 82 |
dh_testdir
|
| 83 |
dh_testroot
|
| 84 |
# dh_installdebconf
|
| 85 |
dh_installdocs
|
| 86 |
dh_installexamples
|
| 87 |
dh_installmenu
|
| 88 |
# dh_installlogrotate
|
| 89 |
# dh_installemacsen
|
| 90 |
# dh_installpam
|
| 91 |
# dh_installmime
|
| 92 |
# dh_installinit
|
| 93 |
dh_installcron
|
| 94 |
dh_installman
|
| 95 |
dh_installinfo
|
| 96 |
# dh_undocumented
|
| 97 |
dh_installchangelogs
|
| 98 |
dh_link
|
| 99 |
dh_strip
|
| 100 |
dh_compress
|
| 101 |
dh_fixperms
|
| 102 |
# dh_makeshlibs
|
| 103 |
dh_installdeb
|
| 104 |
# dh_perl
|
| 105 |
dh_shlibdeps
|
| 106 |
dh_gencontrol
|
| 107 |
dh_md5sums
|
| 108 |
dh_builddeb
|
| 109 |
|
| 110 |
binary: binary-indep binary-arch
|
| 111 |
.PHONY: build clean binary-indep binary-arch binary install patch unpatch
|