LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Create a RPM of webpages. (https://www.linuxquestions.org/questions/linux-general-1/create-a-rpm-of-webpages-185528/)

sachinnshah 05-25-2004 03:01 AM

Create a RPM of webpages.
 
Hello Friends,

I want to create a rpm of webpages which i had created. And It's required some /etc config files.

How can i create it ?

Regards,
Sachin

aizkorri 05-25-2004 05:26 AM

Hello,

So, you want to create an install package with some web pages?.
If so, what will it do when installed? Copy the webpages somewhere in a server?

An RPM is created so that something (some kind of software) is packaged so that it can be installed easily.

Can you explain a little bit more what are you trying to do?

sachinnshah 06-03-2004 03:10 AM

Sorry for late reply
 
Actually,

I had created some web pages and some configuration files ( /etc dir ) for those pages.

Now, I want to distribute those thigs in rpm format. So, when user installed, webpages will be installed in apache default directory and configuration files in /etc dir.

Should It possible ?

Regards,
Sachin

aizkorri 06-03-2004 08:40 AM

hi,
yes, it is possible, you can create a RPM package that installs (copies) all the files you want, in /etc directory or the place you prefer. you have to do first some things for creating it.

You have some howtos in

www.rpm.org

and

http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo

The steps to follow are next:

1. create the rpm directories, I think SOURCES, RPM, SRPM, tmp, SPECS
2. two config files, .rpmmacros and .rpmrc
3. and a spec file where you explain where you want to install those files,
4. put your sources in a bz file and compile it so it creates a installing package.

As it has to be installed as root there's not problem of permission when copying files.

It's not very difficult but it has some, easy to forget, little things that can bother you.

Hope this helps. If you have any question just ask.

Good Luck.


All times are GMT -5. The time now is 05:04 PM.