A web application has no make file unlike C++ or anything like that. However, it needs to be placed into specific directories...e.g /var/www.
I'm new to linux packaging, so my question is, how do I package my app into a .deb such that when its being installed, it gets put into something like /etc/myprogram/bundles/myprogram-3.4? Mine in particular is a java app running on apache tomcat.
I've managed to create a .deb file by reading painstakingly every word in http://www.debian.org/doc/manuals/maint-guide. However when I follow the instructions I end up getting
1) a .deb file that is 1.7kb instead of the ~240mb that it should be, because apparently it is lacking all my source code. 2) confused because I don't know whether I was supposed to write some sort of makefile. I am not even sure where to go about learning the answer to that question, and then I'd have to deal with how to write a makefile.
I've posted a similar question to ubuntuforums, but I feel like I'm more likely to get a response here.
I've created .deb packages from a Java project on Ubuntu 10.04LTS with the following commands:
cd $PROJECT_DIR
sudo checkinstall -D javac *.java
The build tool for Java programs is ANT. With ANT you build a WAR file and deploy that to Tomcat.
Here is a brief glimpse at how it looks: http://javabeanz.wordpress.com/2009/02/12/how-to-create-a-war-file-using-ant/
and here is a tutorial on building a war file with ANT: http://techtracer.com/2007/04/16/the-great-ant-tutorial-a-great-jump-start/