[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: RPM triggers...



I have not written a .spec file with triggers (yet).  Have you read the
'triggers' file that comes with rpm?

Try:  $ rpm -qd rpm | grep triggers

to get the location of the 'triggers' text file on your system.

> -----Original Message-----
> From: Dmitry S. Makovey [mailto:dmitry@athabascau.ca]
> Sent: Monday, August 19, 2002 6:58 PM
> To: rpm-list@redhat.com
> Subject: RPM triggers...
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Hi All,
> 
> does anybody poses detailed information about RPM triggers. 
> I have next problem:
> Sun's jre.xxx.rpm which has as one of scriplets:
> 
> postuninstall scriptlet (through /bin/sh):
> rm -rf /usr/java/jre1.3.1_04
> 
> next I have jsse.xxx.rpm and in order to make everybody's 
> life easyer (I mean 
> here tomcat4 & Co) I'd like to put links like
> $java_home/lib/ext/jsse.jar -> $jsse_home/jsse.jar
> but sun's jre will erase all the stuff on update...
> So here are two questions:
> 1. If I'll do it with triggers will it work ok in described situation?
> 2. How can I obtain version number of package installed from 
> trigger? (In that 
> case version of sun's jre). Because I have to go to directory 
> %{name}-%{version}/lib/ext and put link here and I'm unable 
> to do it unless I 
> know %{version}...
> 
> Thanks for help.
> 
> - -- 
> Dmitry Makovey
> Web Systems Administrator
> Athabasca University
> (780) 675-6245
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (FreeBSD)
> 
> iD8DBQE9YXfdyDrVuGfS98QRAhelAJ0StNS6aIjYm2fURPt164z3yzOMkwCdH4bf
> 08qpqgBIl+1O/+3sMBvfB+w=
> =ZX5Q
> -----END PGP SIGNATURE-----
> 
> 
> ___
>     This communication is intended for the use of the 
> recipient to whom it
>     is addressed, and may contain confidential, personal, and 
> or privileged
>     information. Please contact us immediately if you are not 
> the intended
>     recipient of this communication, and do not copy, 
> distribute, or take
>     action relying on it. Any communications received in error, or
>     subsequent reply, should be deleted or destroyed.
> ---
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []