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? /M 1. http://therning.org/magnus_files/al-mime/al-mime-0.1.tar.bz2 2. http://www.therning.org/magnus_bzr/al-mime/ -- 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. The day after tomorrow is the third day of the rest of your life.
pkgname=al-mime pkgver=0.1 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=('e981a193aed95baccd42f6c1cc97c697') 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 }
pgpDUrHBC39mg.pgp
Description: PGP signature
_______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
