LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-03-2005, 08:19 AM   #1
conrad10781
LQ Newbie
 
Registered: Jun 2005
Location: New York
Distribution: Debian Sarge
Posts: 8

Rep: Reputation: 0
Possible .deb file ?


I own a company that does custom ecommerce packages, while the core is always the same, companies can buy addons etc. We have a hosting facility, but sometimes the customers want the server on-site. Here is my problem..


Right now everytime we have an update on the core, not the addons, all of the customers need to be updated. We currently apply patched files by hand. and send cd's to the customer and have them walk through a .pdf manual to install it.. hoping the install goes right, or even attempted at all . What I am wondering is, is it possible to make a .deb file from just a /var/www directory? It would be a MAJOR improvement to what we currently do as far as updating the software.. And all of our machines use debian anyway.

I have been reading the new maintainers guide, and I find that it is overkill since I am not installing, configuring, binaries etc.

Would be great to just have a .deb so we could script a timer that checked for dist-updates and would unpack the .deb and overwrite the current /var/www directory...

If this is not possible does anyone else know of a similarly easier idea?



Conrad
 
Old 06-03-2005, 11:19 AM   #2
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 120Reputation: 120
Here's an article that might help you get started.
http://linuxdevices.com/articles/AT8047723203.html

Regards.
 
Old 06-03-2005, 09:05 PM   #3
conrad10781
LQ Newbie
 
Registered: Jun 2005
Location: New York
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
That was definitely more help than the debian guide, but never the less, i am still at a point where it seems everything is driven around binaries etc.. I have googled more into it, and have found a few examples of what i am looking for... The closest is, how the apache .deb creates and places index.html in /var/www... Has anyone had similar experience with this, or seen a similar HowTo
 
Old 06-04-2005, 07:51 AM   #4
conrad10781
LQ Newbie
 
Registered: Jun 2005
Location: New York
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
I FIGURED IT OUT!!!!
 
Old 06-04-2005, 07:59 AM   #5
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
Post what you did for future reference.
 
Old 06-04-2005, 08:54 PM   #6
conrad10781
LQ Newbie
 
Registered: Jun 2005
Location: New York
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zuralin
Post what you did for future reference.

SURE THING!!! Although I doubt this will make a sticky ....but if anyone gets stuck, and happens to find us I created a folder called mypackage in it I recreated the path to my apache directory IE (mypackage has a subfolder /var and in that has a subfolder /www) so /mypackage/var/www has the files copied over from my real /var/www directory,

In the same directory as /var i have a folder named DEBIAN inside it is a control file mine looks like the following

Package: mypackage
Version: 0.04
Section: web
Architecture: all
Installed-Size: 15024
Maintainer: myname <myemail@mydomain.com>
Provides: rcs
Description: description of my package.

after having that, I ran the following command from /mypackage/var
dpkg -b /mypackage mypackage.deb

THATS IT. So here is an over view
/mypackage
/var /DEBIAN
| |
/www /control file
|
All of my files

Things to note after the fact.....
1. You can just throw a DEBIAN folder in the same directory as the begining of you 1st path IE, I could have placed the /DEBIAN folder in my real /var, but since it was my 1st try, I wanted to make sure I was messing with a backup
2. If you don't up the version in the control file IE change 0.04 to 0.05 the system won't take ANY new changes.
3. I wouldn't know how loose you can keep these settings, meaning, none of my files are really binary outside of some .jpg's etc.. so if you are using .bin and/or .sh files you might want to refer to the debian site for a complete explanation of running pre and post scripts.
4. I am REALLY tired right now, so if this doesn't make any sense to someone, you can just email me, and I will try and help.

Conrad
 
Old 06-04-2005, 10:12 PM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 120Reputation: 120
Makes sense. Thanks. However, I guess it would become more difficult and involved when there are dependencies and such which should be handled.

Regards.
 
Old 06-05-2005, 07:28 AM   #8
conrad10781
LQ Newbie
 
Registered: Jun 2005
Location: New York
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Harishankar
Makes sense. Thanks. However, I guess it would become more difficult and involved when there are dependencies and such which should be handled.

Regards.
Yup, it acts a lot like a .tar.gz file with a bash script that will overwrite with the limited files i have
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install a .deb file? abefroman Debian 3 11-26-2005 03:47 PM
How to install .deb file taydu3000 Linux - Software 2 10-21-2005 11:34 AM
Executing a .deb file Wolvenmoon Debian 1 08-18-2005 10:50 PM
Installing a .deb file. inZioN Debian 1 04-14-2004 11:16 AM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 08:11 PM


All times are GMT -5. The time now is 10:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration