Results 1 to 1 of 1
Hi,
I need some help creating an RPM which doesn't suck up source code. Instead I want it to suck up bash scripts and then run them when I install ...
- 09-03-2009 #1Just Joined!
- Join Date
- Nov 2005
- Location
- Swansea, UK / Madrid, ES
- Posts
- 2
Creating an RPM without source
Hi,
I need some help creating an RPM which doesn't suck up source code. Instead I want it to suck up bash scripts and then run them when I install the RPM.
Here's my SPEC file so far...
I put this in /usr/src/redhat/SPECS and I put test1.sh in /usr/src/redhat/BUILD.Code:Summary: Used to update my machines Name: pxe-update Version: 0.0.1 Release: 1 Group: System Environment/Base BuildRoot: /var/tmp/%{name}-buildroot License: GPL %description The pxe-update package is used to deploy a variety of scripts which perform specific actions to add, remove or alter the configuration of a server. %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT sh test1.sh %clean rm -rf $RPM_BUILD_ROOT %files %changelog * Wed Aug 19 2009 - First test of RPM
Then i ran 'rpmbuild -bb pxe_update-0.0.1.spec.
If i have the .sh file in SOURCES I had an error...
sh: test1.sh: No such file or directory
When I moved the .sh file to BUILD then the process completed succesfully.
However, when I then install the created RPM, the script doesn't run.
Any help appreciated!


Reply With Quote