Subject: Creating deb packages

From: Algirdas Kunigelis <[email-masked]>
Date: Thu, 12 Sep 1996 16:12:16 +0000 (EET)

Could someone please mail me a complete step-by-step instruction on creating
deb packages? The manual page is somewhat outdated... I actually figured out
how to do it simply using tar, gzip and ar (couldn't figure dpkg out),
but how do I make dpkg run some post-install shell script after unpacking it?
Thanks.

AK

---

From: "Vadik V. Vygonets" <[email-masked]>
Date: Thu, 12 Sep 1996 13:00:23 -0400 (EDT)

> but how do I make dpkg run some post-install shell script after unpacking it?

Please post it to the list, there are several people (like me) that wanna
hear about it too.  MANY thanks in advance,
Vad.

++        _ 
Vadik V. (_`    [email-masked]  http://www.arbornet.org/~vadik/
Vygonets (_.lf  For PGP public key, email me with sibject "get pgp"
Linux hackers are funny people: They count the time in patchlevels.

---

From: "Brian C. White" <[email-masked]>
Date: Thu, 12 Sep 1996 13:10:20 -0400

> but how do I make dpkg run some post-install shell script after unpacking it?

The best way I found was to grab an existing package (hello is a good one)
and learn how it does it.
                                             
                                          Brian
                                 ( [email-masked] )
                                             
-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.

---

From: Dale Scheetz <[email-masked]>
Date: Thu, 12 Sep 1996 13:53:53 -0400 (EDT)

> but how do I make dpkg run some post-install shell script after unpacking it?
Whatever you have gotten from the man page has recently been heavily
changed by the new source format. You will find the latest versions of
dpkg and dpkg-dev appearing shortly in the rex path (they were in Incoming
this morning) but a recent version (1.3.14 should be on the faster
mirrors) will have the information you require. You should look at
Policy.html and Programmer.html in /usr/doc/dpkg. 
In any case you should be using dpkg to build your packages with as it
will put everything in the correct place in the file for proper unpacking
and installation.

Luck,

Dwarf

------------                                          --------------

aka   Dale Scheetz                   Phone:   1 (904) 877-0257
      Flexible Software              Fax:     NONE 
      Black Creek Critters           e-mail:  [email-masked]

------------ If you don't see what you want, just ask --------------

---

From: [email-masked]
Date: Thu, 12 Sep 96 16:53 EDT

Algirdas> Could someone please mail me a complete step-by-step instruction
  Algirdas> on creating deb packages?  

  Vadik>  Please post it to the list, 

New version of dpkg (<< 1.4.0) or dpkg-dev (>= 1.4.0) come with two html'ed
manuals in /usr/doc/dpkg/{programmer,policy}.html/ that pretty much cover it
all. 

--
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: Michael J Hauan <[email-masked]>
Date: Thu, 12 Sep 1996 18:28:19 -0400 (EDT)

I've been watching for info about this but haven't seen any for
the past month.

How does one unsubscribe these lists?

PLEASE!

---

From: Boris Beletsky <[email-masked]>
Date: Fri, 13 Sep 1996 03:10:55 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

algikun>
algikun>Could someone please mail me a complete step-by-step instruction on creating
algikun>deb packages? The manual page is somewhat outdated... I actually figured out
algikun>how to do it simply using tar, gzip and ar (couldn't figure dpkg out),
algikun>but how do I make dpkg run some post-install shell script after unpacking it?
algikun>Thanks.
if smbd have a better man/doc/howto then the one in /usr/doc , plz 
Cc: [email-masked]
thks alot
borik

___
Boris Beletsky <[email-masked]>
For pgp public key, e-mail me 
with subject "get pgp-key."
___
In Linux veritas

---

From: "Brian C. White" <[email-masked]>
Date: Thu, 12 Sep 1996 19:36:28 -0400

> but how do I make dpkg run some post-install shell script after unpacking it?

You also might be able to find this information using the new index of the
Debian web site.  Go to

	http://insite.verisim.com/search/debian/advanced

and try the following query:

	build* debian package*

I'm sure other queries will find similar information.  (The stars (*), by
the way, are globbing characters and will match any suffix of those words.)
                                             
                                          Brian
                                 ( [email-masked] )

---

From: Boris Beletsky <[email-masked]>
Date: Fri, 13 Sep 1996 03:15:56 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 12 Sep 1996, Brian C. White wrote:

bcwhite>> Could someone please mail me a complete step-by-step instruction on creating
bcwhite>> deb packages? The manual page is somewhat outdated... I actually figured out
bcwhite>> how to do it simply using tar, gzip and ar (couldn't figure dpkg out),
bcwhite>> but how do I make dpkg run some post-install shell script after unpacking it?
bcwhite>> Thanks.
bcwhite>
bcwhite>The best way I found was to grab an existing package (hello is a good one)
bcwhite>and learn how it does it.
i tryed to trace it via ps but with not much luck
the only thing i got from it is a general idea (gzip :)

Regards
borik

___

---

From: "Brian C. White" <[email-masked]>
Date: Thu, 12 Sep 1996 21:14:03 -0400

> the only thing i got from it is a general idea (gzip :)

You don't want to trace it.  If you read the "debian.rules" (or debian/rules)
file, you'll see how a package is built.  Basically, you create a directory
("debian-tmp") and create a directory structure just like that of the debian
system and place your files in there.  One call to "dpkg" will then create
a package for you from that directory structure.
                                             
                                          Brian
                                 ( [email-masked] )

---

From: Boris Beletsky <[email-masked]>
Date: Fri, 13 Sep 1996 04:43:25 +0300 (IDT)

-----BEGIN PGP SIGNED MESSAGE-----

bcwhite>You don't want to trace it.  If you read the "debian.rules" (or debian/rules)
bcwhite>file, you'll see how a package is built.  Basically, you create a directory
bcwhite>("debian-tmp") and create a directory structure just like that of the debian
bcwhite>system and place your files in there.  One call to "dpkg" will then create
bcwhite>a package for you from that directory structure.
"one call to dpkg" ?
i am sorry , but i don't understand what u mean
prob the answer to my q is RTFM so plz flame me about it :-)
borik

___

---

From: [email-masked]
Date: Thu, 12 Sep 96 21:50 EDT

Michael> How does one unsubscribe these lists?

$ echo unsubscribe | mail [email-masked]

---

From: "Brian C. White" <[email-masked]>
Date: Thu, 12 Sep 1996 22:13:44 -0400

> prob the answer to my q is RTFM so plz flame me about it :-)

I think it's pretty obvious if you read the "debian/rules" file.  Here
is an example:

  binary: build
	-rm -rf debian-tmp
	mkdir -p debian-tmp debian-tmp/DEBIAN debian-tmp/usr/doc/$(package)/Examples
	dpkg-gencontrol -is -ip >debian-tmp/DEBIAN/control
	make install PREFIX=debian-tmp/usr
	cp debian/README debian-tmp/usr/doc/$(package)/Copyright
	cat COPYING >>debian-tmp/usr/doc/$(package)/Copyright
	cp examples/* debian-tmp/usr/doc/$(package)/Examples
	find debian-tmp \( -name "#*" -o -name "*~" \) -print | xargs rm -f
	chown -R root.root debian-tmp
	chmod -R go=rX debian-tmp
	dpkg --build debian-tmp
	dpkg-name -o -s .. debian-tmp.deb

Note how it creates a directory structure and then call "dpkg --build"
to make a debian package out of that directory structure.  The call to
"dpkg-name" then gives it the proper name.
                                             
                                          Brian
                                 ( [email-masked] )