Re: Simple scripted example?

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

 



> Can someone point me to a trivial example
> of how to write a spec file and use rpmbuild
> to install a single binary /bin/foobar
> and its init script, /etc/init.d/foobar
> without touching any files in my home directory
> (e.g. no twiddling ~/.rpmmacros, etc)?

It's actually quite simple (note: I do not recommend this, it's against
all RPM filosophy, I repeat: not recommended!) (although sometimes
unavoidable ;-))

The trick is to not "make" anything during the "build" stage. Put your
files into a tarball to be used as "source tarball". During the
"install" stage simply copy these files to the appropriate locations in
your build root (assuming you use one). Then mark these files as %files
and voila.

I use it for rpms that consist solely of config files etc.


_______________________________________________
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