LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-31-2004, 04:32 AM   #1
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Rep: Reputation: 15
Create deb file


I downloaded the source from samba, and changed the smb.conf

Then I made a dsc file from it.
How do I create a deb file from a dsc file or from the extracted source???

Thanks
Cybercool
 
Old 03-31-2004, 06:51 PM   #2
lujan
Member
 
Registered: Sep 2003
Distribution: Ubuntu, Debian Sarge, Mac OS X, FreeBSD
Posts: 45

Rep: Reputation: 16
http://linuxdevices.com/articles/AT8047723203.html

or

http://www.google.com/search?q=creating+a+deb+package
 
Old 03-31-2004, 07:53 PM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 46
u could do it with checkinstall , when u compile a program just type :
./configure
make
checkinstall

here is its site if u dont have it : http://asic-linux.com.mx/~izto/checkinstall/

or u could just type : apt-get install checkinstall
 
Old 04-01-2004, 05:51 AM   #4
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
this is the story

this is the story;

I'm creating an internal apt-server (this works)
The next thing I want to do is change the configuration files from the packages, and put them (in a deb file) on the apt-server.

For example: the smb.conf from samba

This means I can install my servers much faster.

Does anyone know a simple way to ajust the deb packages??

Please!!

Cybercool
 
Old 04-01-2004, 05:57 AM   #5
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Download src deb from debian
3 files dsc tar.gz diff

dpkg-source -x samba.dsc

cd samba and change smb.conf

fakeroot debian/rules binary

This give the deb file
 
Old 04-01-2004, 06:09 AM   #6
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
I can't do fakeroot /debain/rules binary
it's says "no such file or directory"

And when I extract the dsc file, I get many directory's with sub directory's with 3 thimes debian with the smb.conf file.

Wich one must I change.
And in wich directory must I be to do "fakeroot /debian/rules binary"

Thank!!!

Cybercool

//edit

I solved this but now I get an error,

make: dh_testdir: command not found
make: *** [patch-stamp] Error 127

Does anyone know what this is and how to solve this?


Last edited by Cybercool; 04-01-2004 at 09:01 AM.
 
Old 04-01-2004, 11:35 PM   #7
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
apt-get install fakeroot
apt-get install debhelper
 
Old 04-05-2004, 03:15 AM   #8
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
yes yes yes

Yes it works!!
Thanks

But I got only one stupid question, in wich directory is the deb package now??

I can't find it!!!
 
Old 04-05-2004, 03:19 AM   #9
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
cd ..
 
Old 04-05-2004, 03:27 AM   #10
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
huh this is weard.

When I just installen debhelper, it worked.
But i could find the package.
And after youre last post I looked again, but there's no package.

And now it also don't work anymore.
I get an error making a package:
make: *** [comfigure-stamp] Error 1

Do you know what that is???

//edit
I installed g++-3.0 and i don't get this error anymore but, now I get an other error after i do:
fakeroot debian/rules binary

configure: error: summary failure. Aborting config
make: *** [configure-stamp] Error 1


Does anyone know this error??

Last edited by Cybercool; 04-05-2004 at 07:27 AM.
 
Old 04-06-2004, 01:37 AM   #11
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Look at the file debian/control and check
Build-Depend
You must have all depended packets been installed.
 
Old 04-06-2004, 02:49 AM   #12
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
And do you know wich packages that are?

Because I don't really understand what youre saying.

P.s. Thanks for your help!!
 
Old 04-06-2004, 05:39 AM   #13
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Sorry for my english.
This dsc file.
Look at "Build-Depends:" string.
You must install all packets described in this string before building samba.
Understand ?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.0
Source: samba
Version: 3.0.2a-1
Binary: libpam-smbpass, swat, winbind, smbfs, smbclient, python2.3-samba, samba, libsmbclient, samba-common, libsmbclient-dev, samba-doc
Maintainer: Eloy A. Paris <peloy@debian.org>
Architecture: any
Standards-Version: 3.5.10
Build-Depends: debhelper (>= 4.1.13), libpam0g-dev, libreadline4-dev, libcupsys2-dev, autoconf, libacl1-dev (>= 2.2.11-1), libacl1 (>= 2.2.11-1), libkrb5-dev, libldap2-dev, po-debconf, python2.3-dev
Uploaders: Steve Langasek <vorlon@debian.org>
Files:
573060439353efde28f82dc8eef82f1c 10445147 samba_3.0.2a.orig.tar.gz
b63c7b6a17a1e410a3516ba4e107b39d 88962 samba_3.0.2a-1.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAO3RUagjTfAtNY9gRAo8bAKCVQIu1OwtcT6f3RuGfBajp3LJEJQCeLJR7
BALhYFcBpF31EA1+adIPokY=
=88Iz
-----END PGP SIGNATURE-----
 
Old 04-06-2004, 05:50 AM   #14
Cybercool
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian kernel 2.4.xx
Posts: 36

Original Poster
Rep: Reputation: 15
So you mean that I must install all the build-depend packages on my debian system, and than it can create the package?

But if I wan't to create an other package (proftpd).
How do I know wich build-depend proftpd needs??
Can you explain how you got that build-depend file??

Cybercool

p.s. Youre helping really good, thank you


//edit

I have tried to install all the build-depends
I could almost install them all!!
And the "fakeroot debian/rules binary" works better now, but now I get an other error:

(make[1]: *** No rule to make target '@LIBSMBCLIENT_STATIC@', needed by 'all'. S top.
make[1]: Leaving directory '/root/samba/-2.2.3a/source'
make: *** [build-stamp] Error 2)

Do you know what this can be???

>>Cybercool

Last edited by Cybercool; 04-06-2004 at 07:15 AM.
 
Old 04-06-2004, 08:06 AM   #15
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Quote:
Originally posted by Cybercool
So you mean that I must install all the build-depend pcakages on my debian system, and than it can create the package?
yes. Samba source code depend on all this packages.
Quote:

But if I wan't to create an other package (proftpd).
Samba have no dependencies on proftpd
Quote:

How do I know wich build-depend proftpd needs??
Can you explain how you got that build-depend file??
http://packages.debian.org/unstable/net/samba
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I create a .deb from an installed package? monkeyman2000 Debian 5 06-16-2005 08:56 PM
Trying to patch libwnck and create .deb tsalem Linux - Newbie 3 04-02-2005 08:44 PM
how to create a deb package from a source abd_bela Debian 1 03-04-2005 11:27 AM
How to create a .deb library package? FloFri Debian 3 05-03-2004 12:12 PM
How to convert .deb file to .tar file on redhat? zhu_liheng Linux - Newbie 1 01-15-2004 09:11 PM


All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
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