I recently set up a PPA on Launchpad for distributing my web application.Since it's a server-app, I need to put my data into /var/www/html which apparently is not wanted by Lintian (dir-or-file-in-var-www).So far, I accomplish the task via a postinst script, which copies the files after installation, but there has to be a more elegant way, isn't there?
Make a deb package that installs data under /var/www/data
ubuntu;package management;deb;lintian
There is not a more elegant solution. A postinstall-script is allowed under certain conditions, and your package seems to satisfy these conditions. From https://lintian.debian.org/tags/dir-or-file-in-var-www.html: As an exception, packages are permitted to create the /var/www directory      due to its past history as the default document root, but should at most      copy over a default file in postinst for a new install. In this case,       please add a Lintian override.Please consult the rest of https://lintian.debian.org/tags/dir-or-file-in-var-www.html as well.