[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: b5



Hi Panu,

Am 2006-02-28 19:18:31, schrieb Panu Kalliokoski:

> Thank you for this explanation.  Although I still have some issues with
> it, it seems I should build infrastructure for building source packages.
> (Earlier, one just needed dpkg-source -b; now it seems there must be
> some script or makefile target to construct a fake .orig directory and
> then build the source with that.)  It feels funny that I have to make a
> dummy "pristine" source for the Debian project while I've been releasing
> the "debian-specific" source outside Debian for ages.

I have a script which do:

+---[ '/home/michelle.konzack/bin/tdbuildpackage' ]--
| 
| #!/bin/bash
| 
| export GNUPGHOME=$HOME/.gnupg/kr.devel/
| 
| if [ "$1" == "--make-orig" ] ; then
|   DIRSRC="$PWD"
|   echo "$DIRSRC"
|   DIRORIG="$DIRSRC.orig"
|   echo "$DIRORIG"
|   cp -R $DIRSRC $DIRORIG
|   rm -rf $DIRORIG/debian
| fi
| 
| dpkg-buildpackage -rfakeroot -tc -sgpg -k0xC492F812
+----------------------------------------------------

1)  Create a directory with the source and a debian/ directors
2)  cd into the source root

to create a "pristine" package

3)  type:   tdbuildpackage --make-orig

    which will create the packagename-vers.orig directory
    and then
                packagename-vers.orig.tar.gz
                packagename-vers-debvers.dsc
                packagename-vers-debvers.diff.gz
                packagename_vers-debvers.arch.changes
                packagename_vers-debvers.arch.deb

or to create a native Debian package

4)  type:   tdbuildpackage

        =>  packagename-vers.tar.gz
            packagename-vers-debvers.dsc
            packagename-vers-debvers.arch.changes
            packagename_vers-debvers.arch.deb

Greetings
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: