On Mon, Dec 12, 2005 at 08:19:45AM +0000, Magnus Therning wrote:
>On Sun, Dec 11, 2005 at 01:30:16PM +0000, Magnus Therning wrote:
>>I am really missing a properly populated /etc/mailcap file. What would
>>the chances be of introducing a tool that packagers can use from
>>post_install and post_remove that would add/remove entries in
>>/etc/mailcap?
>>
>>Debian's update-mime[1] would be used as an inspiration...
>>
>>/M
>>
>>1. http://www.tin.org/bin/man.cgi?section=8&topic=update-mime
>
>Just to show what I mean I've cooked up a little tool (al-mime). The
>PKGBUILD is attached. The tar ball lives at [1], and the bzr branch can
>be branched from [2].
>
>I'll be adding some package files (I'll start with packages I use) later
>today. Ideally those files whould move into the respective packages to
>make sure the /etc/mailcap only contains rules for applications that can
>be executed. (It would be possible to only add rules for apps that are
>installed, that'd work but IMNSHO it wouldn't be right.)
>
>Comments, ideas?

Based on off-list feedback I've changed to instead include all files
located in $XDG_DATA_DIRS/packages. On my system that means the
following two dirs will be searched:

 /usr/share/packages
 /opt/gnome/share/packages

I've attached the latest PKGBUILD. Only a minimum set of rules are there
(for less). I'll be importing some more in the next few days.

More comments/ideas?

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

$my_args = shift;
system("gcc $my_args");
print "I prefer C\n";
     -- Robert Dieterich's contribution to the 2004 Perl Haiku Contest,
        Haikus in Perl - 'Dishonerable Mention' winner
pkgname=al-mime
pkgver=0.2
pkgrel=1
pkgdesc="Mime handling, Arch style"
url="http://therning.org/magnus/computer/arch/";
license="GPL"
depends=(python)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://therning.org/magnus_files/al-mime/$pkgname-$pkgver.tar.bz2)
md5sums=('7f61add2dc79ad5493b0d5729535342a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc
  make || return 1
  make DESTDIR=$startdir/pkg install
  cp ${startdir}/pkg/usr/share/al-mime/mailcap.template \
    ${startdir}/pkg/etc/mailcap
}

Attachment: pgpIWvEiXw5ud.pgp
Description: PGP signature

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to