[arch-general] Pacman trigger

Alexander Lam lambchop468 at gmail.com
Sat Feb 6 10:26:56 EST 2010


On Sat, Feb 6, 2010 at 9:29 AM, Jim Pryor
<lists+arch-general at jimpryor.net> wrote:
> On Sat, Feb 06, 2010 at 11:36:59PM +1000, Allan McRae wrote:
>> On 06/02/10 23:31, Nilesh Govindarajan wrote:
>> >Is there some app that will do some actions on updating some software ?
>> >
>> >Like for example, I want that in
>> >/usr/lib/firefox-<version>/defaults/preferences/firefox.js user agent is
>> >set to Firefox/<version> instead of its brand name ?
>> >
>> >Or copy the previous version of kernel to /boot/stable before update ?
>>
>> Not yet.  There are some plans
>> (http://wiki.archlinux.org/index.php/User:Allan/Pacman_Hooks) but
>> that has not progressed much further than the wiki page...
>
> The customizepkg-new package doesn't yet handle .install files. But it
> does enable you to tweak a PKGBUILD, add extra files to the source
> array, and so on. When used with a pacman-wrapper that knows about it,
> such as yaourt, every time you try to install a package for which you've
> scripted these mods, it will be built from source with your mods.
>
> Once the script is expanded to handle .install files---which would not
> be hard---this will do what you want. The downside is you'd have to
> build all such packages from source yourself. A cooperating pacman
> wrapper will make that happen automatically, but you might well decide
> it's still more trouble than you're looking for.
Actually, if customizepkg handles PKGBUILDS, you could just add a sed
command to the PKGBUILD to change the .install file. (see the kernel26
PKGBUILD for an example)

>
> (I submitted a bunch of changes to customizepkg-new a few months ago but
> I don't think they've been folded in yet.)
>
> --
> Jim Pryor
> profjim at jimpryor.net
>



-- 
Alexander Lam


More information about the arch-general mailing list