On 11:21 Sat 19 Oct , intrigeri wrote: > Hi, > > Vasudev Kamath wrote (19 Oct 2013 05:59:12 GMT) : > >> It seems to me that the attached patch symlinks > >> /usr/share/xmail/sample to /usr/share/doc/xmail/sample (while it > >> should do the contrary, right?) and does not move > >> /usr/share/doc/xmail/sample to /usr/share/xmail/sample. > > > Regarding the symbolic linking excerpt from � 12.3 > > >>> Packages must not require the existence of any files in /usr/share/doc/ > >>> in order to function 7 . Any files that are refer- enced by programs but > >>> are also useful as stand alone documentation should be installed under > >>> /usr/share/package/ with symbolic links from /usr/share/doc/package. > > > So did I do something wrong in understanding above? > > I believe you did it the wrong way. >
Yeah I actually read it in a wrong way, here is fixed patch Best Regards -- Vasudev Kamath http://copyninja.info Connect on ~friendica: copyninja@{frndk.de | vasudev.homelinux.net} IRC nick: copyninja | vasudev {irc.oftc.net | irc.freenode.net} GPG Key: C517 C25D E408 759D 98A4 C96B 6C8F 74AE 8770 0B7E
diff -Nru xmail-1.27/debian/changelog xmail-1.27/debian/changelog --- xmail-1.27/debian/changelog 2013-11-01 20:52:44.000000000 +0530 +++ xmail-1.27/debian/changelog 2013-10-26 20:11:32.000000000 +0530 @@ -1,3 +1,13 @@ +xmail (1.27-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Symlink contents of /usr/share/doc/xmail/sample to /usr/share/xmail/ + in rules file and use the file from /usr/share/xmail/ in maintainer + script. + Closes: bug#710311. Thanks to Andreas Beckmann. + + -- Vasudev Kamath <kamathvasu...@gmail.com> Sat, 21 Sep 2013 14:01:46 +0530 + xmail (1.27-1.1) unstable; urgency=low * Non-maintainer upload. diff -Nru xmail-1.27/debian/dirs xmail-1.27/debian/dirs --- xmail-1.27/debian/dirs 2013-11-01 20:52:44.000000000 +0530 +++ xmail-1.27/debian/dirs 2013-10-31 22:53:55.000000000 +0530 @@ -19,6 +19,6 @@ var/spool/xmail/spool/temp var/spool/xmail/pop3linklocks var/spool/xmail/pop3locks -usr/share/doc/xmail -usr/share/doc/xmail/sample +usr/share/xmail +usr/share/xmail/sample usr/share/lintian/overrides diff -Nru xmail-1.27/debian/postinst xmail-1.27/debian/postinst --- xmail-1.27/debian/postinst 2013-11-01 20:52:44.000000000 +0530 +++ xmail-1.27/debian/postinst 2013-10-26 20:14:30.000000000 +0530 @@ -15,8 +15,8 @@ if [ -z "$2" ]; then #we are installing for the first time - cp /usr/share/doc/xmail/sample/*.tab /etc/xmail - cp /usr/share/doc/xmail/sample/dnsroots /etc/xmail + cp /usr/share/xmail/sample/*.tab /etc/xmail + cp /usr/share/xmail/sample/dnsroots /etc/xmail #make links to xmail config files ln -s /etc/xmail/*.tab /var/lib/xmail/ ln -s /etc/xmail/dnsroots /var/lib/xmail diff -Nru xmail-1.27/debian/rules xmail-1.27/debian/rules --- xmail-1.27/debian/rules 2013-11-01 20:52:44.000000000 +0530 +++ xmail-1.27/debian/rules 2013-11-01 09:44:01.000000000 +0530 @@ -82,8 +82,11 @@ chmod +x $(DESTDIR)/var/lib/xmail/sendmail/xsendmail #install sample cfgs - cp MailRoot/*.tab $(DESTDIR)/usr/share/doc/xmail/sample/ - cp MailRoot/dnsroots $(DESTDIR)/usr/share/doc/xmail/sample/ + cp MailRoot/*.tab $(DESTDIR)/usr/share/xmail/sample/ + cp MailRoot/dnsroots $(DESTDIR)/usr/share/xmail/sample/ + + # symlink the sample cfgs to /usr/share/xmail + dh_link /usr/share/xmail/sample /usr/share/doc/xmail/sample touch $(DESTDIR)/etc/xmail/cmd_line #Enable Logging
signature.asc
Description: Digital signature