On 4 July 2014 01:25, Jérémy Lal <[email protected]> wrote: > Le jeudi 03 juillet 2014 à 22:11 +0200, Leo Iannacone a écrit : >> On 2 July 2014 14:51, Leo Iannacone <[email protected]> wrote: >> > On 2 July 2014 11:18, Jérémy Lal <[email protected]> wrote: >> >> Le mercredi 02 juillet 2014 à 10:13 +0200, Leo Iannacone a écrit : >> >>> Hi, >> >>> >> >>> I would like to package mime-types for Debian. >> >>> >> >>> https://github.com/expressjs/mime-types >> >>> >> >>> Now.. during build, upstream makes HTTP requests to get mime >> >>> information externally and stores that in local files (already present >> >>> in git repository) - see build.js file in the repository. >> >>> >> >>> As far as I remember, making internet connections during package-build >> >>> is not allowed (am I wrong?.. is it only for Ubuntu?). On the other >> >>> hand, as far as I understood, I should not include those files already >> >>> downloaded and parsed by build.js and stored in lib/* directory... >> >>> >> >>> So, what can I do in this case? >> >>> Allow internet connections during build or use pre-downloaded files ? >> >> >> >> Absolutely not ! >> >> Source is downloaded, code-reviewed, copyright-reviewed, etc... >> >> and only then it is build. >> >> >> >> I suggest you just use what's already in debian : >> >> /etc/mime.types in 'mime-support' package, >> >> /usr/share/node-mime/node.types in 'node-mime' package. >> > >> > That's a great idea! >> > I will patch build system to use them.. >> >> >> I just realized that this file (used by upstream): >> http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types >> >> is shipped with apache2-doc package: >> apache2-doc: /usr/share/doc/apache2-doc/examples/apache2/mime.types.gz >> >> >> Should I use it instead of /etc/mime.types ? > > /etc/mime.types is designed specifically to make sure all packages get > the same level of mime support. Read the head of the file. The file > you're referring to is stored in examples dir. It might disappear, it > might not be updated.
I was thinking following upstream choices was the best way to get original library behavior unchanged... Anyway, package is ready: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-mime-types.git Cheers! Leo -- Ubuntu Member - http://launchpad.net/~l3on Home Page - http://leoiannacone.com GPG Key Id - 0xD282FC25 _______________________________________________ Pkg-javascript-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel
