[Build-common-hackers] CDBS and multiple upstream tarballs in one orig tarball

Michael Koch konqueror@gmx.de
Wed, 24 Mar 2004 21:28:08 +0100


Hi list,


I need to repackage a debian package I maintain ("cyphesis-cpp"). I need=20
to include the upstream sources of two libs to build them statically=20
into cyphesis-cpp. These libs are old versions of libs that are already=20
in Debian Archive.

I put all three tarballs into the orig tarball. Then I used the=20
following debian/rules:

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright =C2=A9 2004 Michael Koch <konqueror@gmx.de>

#DEB_TAR_SRCDIR :=3D skstream-0.2.5
#DEB_TAR_SRCDIR :=3D Altas-C++-0.4.6
DEB_TAR_SRCDIR :=3D cyphesis-0.2.4

include /usr/share/cdbs/1/rules/tarball.mk
#include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

binary-post-install/cyphesis-cpp::
#       -find $(CURDIR)/debian/tmp/usr/share/cyphesis/rulesets -type f |=20
xargs chmod a-x
        -find=20
$(CURDIR)/debian/cyphesis-cpp-mason/usr/share/cyphesis/rulesets -type f=20
| xargs chmod a-x
        -mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man6/
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cyphesis-setup.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cyclient.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cycmd.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cydbload.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cyloadrules.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cypasswd.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cyconfig.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cyctrl.6
        -cp $(CURDIR)/debian/cyphesis.6=20
$(CURDIR)/debian/tmp/usr/share/man/man6/cywatchdog.6

DEB_CONFIGURE_EXTRA_FLAGS :=3D --localstatedir=3D/var/games

DEB_DH_INSTALL_SOURCEDIR :=3D "debian/tmp"
#DEB_DH_INSTALL_ARGS :=3D "--list-missing"

# Start after and stop before postgresql server.
DEB_UPDATE_RCD_PARAMS :=3D "start 30 2 3 4 5 . stop 10 0 1 6 ."

My problem is now that I dont get Atlas-C++ nor skstream to build within=20
CDBS. Can you give me some hints on this ? Or a pointer to an example ?

It would be nice too if I could patch the upstream sources too. I dont=20
got that working either but this has no high priority yet.


Michael

P.S.: Please CC me as I'm not subscribed to this list.