RE: custom RPM build

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

 



> First, add the plug-ins tarball as another source file; for example:
>
> Source: nrpe-source-tarball.tar.gz
> Source1: plugins.tar.gz
>
> Next, modify the %prep section to unpack the the extra plug-ins tarball:
>
> %prep
> %setup
> %setup -T -D -a 1
>
> The second %setup directive will unpack the plug-ins tarball in the
> top-level source directory of NRPE.
>
> Finally, add commands in the %install section to copy the plug-ins into
> the install destination:
>
> %install
> # install NRPE
> rm -fr $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
> # install plug-ins unpacked in top-level source directory
> cp other-plugins/*.pl $RPM_BUILD_ROOT/usr/lib/nrpe/plugins
>
> Make sure to add the plug-in scripts to the %files section so they'll be
> included in the package.
>
> HTH,
>
> -- D.
>


Hi Guys,

Thanks for the replies - much appreciated!  I've been on holidays, so I'll have a play this evening and let you know if I come up against any other difficulties, but it sounds pretty much what I'm after!

Thanks again!
Regards,
Leigh

_________________________________________________________________
Get Hotmail on your mobile, text MSN to 63463!
http://mobile.uk.msn.com/pc/mail.aspx

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux