tags 553496 + patch
thanks

Hello,

the following debdiff output would produce an NMU packaging
'doc-central_1.8.2+nmu3'. It would resolve the RC-bug positively.

Observe that the corresponding package will not be uploaded
by me, but I seek the cooperation with the maintainer instead.

My method is to inform and ask the system Administrator to manually
create a soft link in order to activate full webserver support.
Uwe Hermann, the maintainer of 'info2www', on which this package
directly depends, he used the same kind of solution in 2008, so I
more or less mapped my solution and text on his excellent model.


Kind regards,

Mats Erik Andersson

--------------------

diff -Nru doc-central-1.8.2+nmu2/debian/changelog 
doc-central-1.8.2+nmu3/debian/changelog
--- doc-central-1.8.2+nmu2/debian/changelog     2008-11-11 10:43:06.000000000 
+0100
+++ doc-central-1.8.2+nmu3/debian/changelog     2010-01-12 20:22:52.000000000 
+0100
@@ -1,3 +1,16 @@
+doc-central (1.8.2+nmu3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Resolve the 'dir-or-file-in-var-www' RC-bug. (Closes: #553496)
+    + debian/dirs: Replace '/var/www/dc' by '/var/lib/doc-central'.
+    + Install the source files 'html/*.html' in '/var/lib/doc-central/'.
+    + debian/NEWS.Debian: New file to elucidate new behaviour due to FHS.
+    + debian/README.Debian: New file explaining the manual linking to
+        '/var/www/dc/' needed in order to avoid violating FHS policy.
+    + debian/docs: Register NEWS.Debian for inclusion.
+
+ -- Mats Erik Andersson <mats.anders...@gisladisker.se>  Tue, 12 Jan 2010 
20:22:11 +0100
+
 doc-central (1.8.2+nmu2) unstable; urgency=medium
 
   * Non-maintainer upload to fix bugs related to processing of the
diff -Nru doc-central-1.8.2+nmu2/debian/dirs doc-central-1.8.2+nmu3/debian/dirs
--- doc-central-1.8.2+nmu2/debian/dirs  2005-01-27 23:11:11.000000000 +0100
+++ doc-central-1.8.2+nmu3/debian/dirs  2010-01-12 18:47:41.000000000 +0100
@@ -1,3 +1,3 @@
 usr/bin
 usr/lib/cgi-bin/doc-central
-var/www/dc
\ Ingen nyrad vid filslut
+var/lib/doc-central
diff -Nru doc-central-1.8.2+nmu2/debian/doc-central.install 
doc-central-1.8.2+nmu3/debian/doc-central.install
--- doc-central-1.8.2+nmu2/debian/doc-central.install   2005-12-13 
02:08:27.000000000 +0100
+++ doc-central-1.8.2+nmu3/debian/doc-central.install   2010-01-12 
18:49:40.000000000 +0100
@@ -1,3 +1,3 @@
 doccentral usr/bin
-html/*.html var/www/dc
+html/*.html var/lib/doc-central
 cgi/*.{cgi,py} usr/lib/cgi-bin/doc-central
diff -Nru doc-central-1.8.2+nmu2/debian/docs doc-central-1.8.2+nmu3/debian/docs
--- doc-central-1.8.2+nmu2/debian/docs  1970-01-01 01:00:00.000000000 +0100
+++ doc-central-1.8.2+nmu3/debian/docs  2010-01-12 20:21:32.000000000 +0100
@@ -0,0 +1 @@
+debian/NEWS.Debian
diff -Nru doc-central-1.8.2+nmu2/debian/NEWS.Debian 
doc-central-1.8.2+nmu3/debian/NEWS.Debian
--- doc-central-1.8.2+nmu2/debian/NEWS.Debian   1970-01-01 01:00:00.000000000 
+0100
+++ doc-central-1.8.2+nmu3/debian/NEWS.Debian   2010-01-12 20:43:34.000000000 
+0100
@@ -0,0 +1,12 @@
+doc-central (1.8.2+nmu3) unstable; urgency=low
+
+  Due to FHS compliance policy, this package neither creates, nor
+  installs any content in '/var/www/dc/'. Instead, the source content
+  of previous packages, only two html-files, are now deposited in
+  '/var/lib/doc-central/'. Observe that the old '/var/www/dc/', i.e.,
+  from a previous version of Doc-central, will be removed upon upgrade.
+  
+  The file README.Debian now gives a suggestion for generating
+  a suitable link in order to get the old functionality back.
+
+ -- Mats Erik Andersson <mats.anders...@gisladisker.se>  Tue, 12 Jan 2010 
20:41:08 +0100
diff -Nru doc-central-1.8.2+nmu2/debian/README.Debian 
doc-central-1.8.2+nmu3/debian/README.Debian
--- doc-central-1.8.2+nmu2/debian/README.Debian 1970-01-01 01:00:00.000000000 
+0100
+++ doc-central-1.8.2+nmu3/debian/README.Debian 2010-01-12 20:11:30.000000000 
+0100
@@ -0,0 +1,18 @@
+doc-central as of 1.8.2+nmu3
+----------------------------
+
+  Doc-central is no longer allowed to automatically set up web content
+  for a server, since the location of such cannot be reliably predicted
+  and are thus prohibited by FHS. The simple solution is to manually
+  create a file link:
+
+     ln -s /var/lib/doc-central /path-to-content/dc
+
+  if you decide to let "http://localhost/dc/"; be your location.
+  For example, Apache2 often uses '/var/www/' for the web root.
+
+  The directory '/var/lib/doc-central/' only contains two html-files,
+  One of these, in itself, contains an anchor "http://localhost/cgi-bin/...";
+  so the webserver must be configured to fetch these CGI-scripts from
+  the standard directory '/usr/lib/cgi-bin/'.
+



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to