FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-21-2011, 10:46 PM
Regid Ichira
 
Default How to tell cdbs to work only on 2 out of 7 debs in debian/control?

debian/control of the nut source package has about 7 binary debs,
say A ... G.
They are built using cdbs. What should I put in debian/rules in order to
have it build only A and B? I have tried with DH_OPTIONS and
DH_LISTPACKAGES. It didn't work. I always end up with all the 7 binary
debs. It could be that I used the wrong syntax, or that DH_OPTIONS and
DH_LISTPACKAGES are not the right direction.

The rules file that the debian maintainer uses for building all the debs is:

$ cat debian/rules
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)


DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr
--exec-prefix=/
--sysconfdir=/etc/nut
--mandir=/usr/share/man
--libdir=/lib
--includedir=/usr/include
--without-ssl
--with-hal
--with-cgi
--with-dev
--enable-static
--with-statepath=/var/run/nut
--with-altpidpath=/var/run/nut
--with-drvpath=/lib/nut
--with-cgipath=/usr/lib/cgi-bin/nut
--with-htmlpath=/usr/share/nut/www
--with-pidpath=/var/run/nut
--datadir=/usr/share/nut
--with-pkgconfig-dir=/usr/lib/pkgconfig
--with-user=nut --with-group=nut

ifeq (linux,$(DEB_HOST_ARCH_OS))
DEB_CONFIGURE_EXTRA_FLAGS+=--with-udev-dir=/lib/udev
endif

common-install-arch::
# install the bash completion script
mkdir -p $(CURDIR)/debian/tmp/etc/bash_completion.d
cp $(CURDIR)/scripts/misc/nut.bash_completion
$(CURDIR)/debian/tmp/etc/bash_completion.d/nut

# install the default configuration
for f in $(CURDIR)/debian/tmp/etc/nut/*; do
nf=`basename $${f} | sed 's/(.*).sample/1/'`;
mv $${f} $(CURDIR)/debian/tmp/etc/nut/$${nf};
done

DEB_DH_INSTALLINIT_ARGS_nut := -- start 50 2 3 4 5 . stop 50 0 1 6 .

ifeq (linux,$(DEB_HOST_ARCH_OS))
# for Debian
DEB_DH_GENCONTROL_ARGS := -- -Vudev="udev (>= 0.124-1)"
# for Ubuntu
# DEB_DH_GENCONTROL_ARGS := -- -Vudev="udev (>= 136-1)"
endif


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 239788.72213.qm@web120702.mail.ne1.yahoo.com">http ://lists.debian.org/239788.72213.qm@web120702.mail.ne1.yahoo.com
 

Thread Tools




All times are GMT. The time now is 08:51 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org