[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: emboss-explorer



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Tille ha scritto:
> On Mon, 21 May 2007, Charles Plessy wrote:
> 
>> If other packages do this, I have nothing against. However, as Andreas
>> said, it need to be done on postinst, otherwise the chown is reverted at
>> some point:
>>
>> sorbetÿÿbuild-areaÿÿ$ dpkg -c emboss-explorer_2.2.0-1_all.deb | grep
>> output
>> drwxr-xr-x root/root         0 2007-05-20 18:29 ./var/www/emboss/output/
> 
> This is correct.  All files in the deb package belong to root.  Changes
> have to be done after installing the package (i.e. in postinst).

I've fixed this, with a "chown www-data" in the postinst.

>> If I understand correctly, the output directory is more or less a tmp
>> directory. Once a job is executed, users can download output files, but
>> they are not given an accession number for retreiving it again (OK: it
>> justifies why it is in /var/www).
> 
> In this case /tmp or /var/tmp might be apropriate as well (this is what
> I intende to say that it depends from the application and the taste of
> the maintainer which directory to use) which makes changing the permissions
> of the directory unnecessary.

I'd prefer using /var/www/, as these output files should be (IMHO) accessible
also from outside (i.e. the Internet) without any further configuration (i.e.
symlinking or some other hack).

> Well, I don't know exactly what might be the problem here

The problem is that the config file is in /usr/share/perl5/blablabla/Conf.pm.
When the package gets updated, the file is flawlessly substituted, because it's
not a conffile.

The package I'm uploading now has a /etc/emboss-explorer.conf symlink pointing
to /usr/share/perl5/EMBOSS/GUI/Conf.pm. I'm adding that path also to
debian/emboss-explorer.conffiles.

Please, tell me if this is the correct way to do it.

In the meanwhile, since Conf.pm is a bit messy and confused for a "normal user",
I'm trying to patch Conf.pm so as to include the config from a _real_ file in /etc/.
So far, I think of something like:

open (config, "</etc/emboss-explorer.conf") or die "Cannot load
/etc/emboss-explorer.conf!";
@conf = <config>;
eval join("\n", @conf);
die $@ if $@;

but I should test it first.

>>> I've changed the approach a bit, but I still don't have a "clean" way
>>> to install things. 
> 
> As I said: Have a look into "man dh_install".

I've already read that manpage. But, maybe, I did miss something: now everything
works just fine.


As regards the crontab,
> Kind regards and thanks for your work on emboss-explorer
> 
>             Andreas.

Regards,
David

- --
 . ''`.  Debian packager! | http://snipurl.com/gofoxygo/
 : :'  :   User #334216   |  http://www.hanskalabs.net/
 `. `'`   GPG: 1392B174   | http://www.debianizzati.org/
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUbpj5qqQFxOSsXQRAg4mAJ9PkpfLj05Xhl5UfhNMswAZ7dOK2ACfVBDO
uk4FE4AIr9+hUP3RiuLnX48=
=zbs8
-----END PGP SIGNATURE-----



Reply to: