pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/28529: new package: mime-support
>Number: 28529
>Category: pkg
>Synopsis: new package: mime-support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Dec 03 21:12:00 +0000 2004
>Originator: Brian de Alwis
>Release: NetBSD 2.0_RC4
>Organization:
Brian de Alwis | Graduate student | Software Practices Lab | UBC
>Environment:
System: NetBSD slab 2.0_RC4 NetBSD 2.0_RC4 (SLAB) #1: Tue Nov 2 14:01:38 PST
2004 bsd@slab:/usr/src/src-20041019/sys/arch/i386/compile/SLAB i386
Architecture: i386
Machine: i386
>Description:
I've created a new package, mime-support, based on the
debian package. mime-support provides support for viewing,
editing, composing, and printing files based on mailcap
settings. It's just one file, named run-mailcap, which
the documentation suggests linking to named `view', `edit',
`compose', and `print'.
>How-To-Repeat:
>Fix:
diff -Nwbrc j/DESCR mime-support/DESCR
*** j/DESCR Wed Dec 31 16:00:00 1969
--- mime-support/DESCR Fri Dec 3 12:43:43 2004
***************
*** 0 ****
--- 1,5 ----
+ mime-support provides support for viewing, editing, composing, and
+ printing files based on mailcap settings. A useful approximation
+ to the Windows `start' command would be to set up an alias such as:
+
+ alias start='run-mailcap --action=edit'
diff -Nwbrc j/Makefile mime-support/Makefile
*** j/Makefile Wed Dec 31 16:00:00 1969
--- mime-support/Makefile Fri Dec 3 12:41:17 2004
***************
*** 0 ****
--- 1,28 ----
+ # $NetBSD$
+ #
+
+ DISTNAME= mime-support_3.9-1.3
+ PKGNAME= mime-support-3.9
+ MASTER_SITES= http://security.debian.org/pool/updates/main/m/mime-support/
+ CATEGORIES= mail
+ EXTRACT_SUFX= .tar.gz
+
+ MAINTAINER= bsd%cs.ubc.ca@localhost
+ COMMENT= Support commands for manipulating files using MIME and mailcap
+
+ WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+ NO_BUILD= yes
+ NO_CONFIGURE= yes
+ USE_PERL5= run
+
+ # Documentation suggests the following; not done to avoid polluting
+ # namespace
+ # cd ${PREFIX}/bin; ${LN} run-mailcap edit
+ # cd ${PREFIX}/bin; ${LN} run-mailcap compose
+ # cd ${PREFIX}/bin; ${LN} run-mailcap view
+ # cd ${PREFIX}/bin; ${LN} run-mailcap print
+ do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/run-mailcap ${PREFIX}/bin/run-mailcap
+ ${INSTALL_MAN} ${WRKSRC}/run-mailcap.man
${PREFIX}/man/man1/run-mailcap.1
+
+ .include "../../mk/bsd.pkg.mk"
diff -Nwbrc j/PLIST mime-support/PLIST
*** j/PLIST Wed Dec 31 16:00:00 1969
--- mime-support/PLIST Fri Dec 3 12:38:37 2004
***************
*** 0 ****
--- 1,3 ----
+ @comment $NetBSD$
+ bin/run-mailcap
+ man/man1/run-mailcap.1
diff -Nwbrc j/distinfo mime-support/distinfo
*** j/distinfo Wed Dec 31 16:00:00 1969
--- mime-support/distinfo Fri Dec 3 12:45:14 2004
***************
*** 0 ****
--- 1,5 ----
+ $NetBSD: distinfo,v 1.13 2004/07/06 22:31:10 wiz Exp $
+
+ SHA1 (mime-support_3.9-1.3.tar.gz) = 1f7424b5335c8641cc9a949285daaa74bea327d3
+ Size (mime-support_3.9-1.3.tar.gz) = 91820 bytes
+ SHA1 (patch-aa) = 5940535f85ca30c6a4d868dd3796d0f397f442b7
diff -Nwbrc j/patches/.#patch-ab.1.6 mime-support/patches/.#patch-ab.1.6
*** j/patches/.#patch-ab.1.6 Wed Dec 31 16:00:00 1969
--- mime-support/patches/.#patch-ab.1.6 Fri Dec 3 12:13:47 2004
***************
*** 0 ****
--- 1,22 ----
+ $NetBSD$
+
+ --- KeyRing/keyring.c.orig 2004-02-17 16:59:38.000000000 -0800
+ +++ KeyRing/keyring.c
+ @@ -182,7 +182,7 @@ static int pack_KeyRing(struct KeyRing *
+ for (i=strlen(kr->name)+1; i<n; i=i+8) {
+ /* des_encrypt3((DES_LONG *)&buf[i], s1, s2, s1); */
+ #ifdef HEADER_NEW_DES_H
+ - DES_ecb3_encrypt((const_des_cblock *)&buf[i], (des_cblock *)(&buf[i]),
+ + DES_ecb3_encrypt((const_DES_cblock *)&buf[i], (DES_cblock *)(&buf[i]),
+ &s1, &s2, &s1, DES_ENCRYPT);
+ #else
+ des_ecb3_encrypt((const_des_cblock *)&buf[i], (des_cblock *)(&buf[i]),
+ @@ -281,7 +281,7 @@ static int unpack_KeyRing(struct KeyRing
+ /* des_decrypt3((DES_LONG *)chunk, s1, s2, s1); */
+ /* memcpy(clear_text+i, chunk, 8); */
+ #ifdef HEADER_NEW_DES_H
+ - DES_ecb3_encrypt((const_des_cblock *)&P[i], (DES_cblock
*)(clear_text+i),
+ + DES_ecb3_encrypt((const_DES_cblock *)&P[i], (DES_cblock
*)(clear_text+i),
+ &s1, &s2, &s1, DES_DECRYPT);
+ #else
+ des_ecb3_encrypt((const_des_cblock *)&P[i], (des_cblock
*)(clear_text+i),
diff -Nwbrc j/patches/patch-aa mime-support/patches/patch-aa
*** j/patches/patch-aa Wed Dec 31 16:00:00 1969
--- mime-support/patches/patch-aa Fri Dec 3 12:45:08 2004
***************
*** 0 ****
--- 1,23 ----
+ $NetBSD$
+
+ --- run-mailcap.orig 2003-04-25 07:12:02.000000000 -0700
+ +++ run-mailcap
+ @@ -1,4 +1,4 @@
+ -#! /usr/bin/perl
+ +#!/usr/pkg/bin/perl
+
###############################################################################
+ #
+ # Run-Mailcap: Run a program specified in the mailcap file based on a mime
+ @@ -120,7 +120,11 @@ sub TempFile {
+ # $tmpfile = POSIX::tmpnam($name);
+ # unlink($tmpfile);
+
+ - $tmpfile = `tempfile --mode=600`;
+ +# $tmpfile = `tempfile --mode=600`;
+ +# chomp($tmpfile);
+ +
+ + # XXX: -t doesn't like having directories -- consider not using -t
+ + $tmpfile = `mktemp -t "$tmpfile"`;
+ chomp($tmpfile);
+
+ # $tmpfile = $ENV{TMPDIR};
Home |
Main Index |
Thread Index |
Old Index