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

Packaging cups with cdbs



Hi,

I have tried to use the debian/rules that you can see below. My
concern is that I would like to make a test package (for maemo, but
actually should also work for debian) in case of using upstart for
init functionalities.
The problem is that if I try to use a debian/cups.upstart file for
that purpose, it seems to be hard coded. It installs the upstart job
into the /etc/init/ and I cannot customize that path, for instance to
/etc/init/apps/ as I would like to have it. I tried to set the
"--onlyscripts" option in order to hope that it does not generate any
init script/job inside the package and I could just make a workaround
by using postinst.

Other option is to change the whole packaging to "dh" usage. However
if I could just bypass the systemv init script and/or hard coded
upstart job installation, it would be easier for me because I am not a
packager. =)

I am not sure what I am doing wrong, so any help is welcome and thank
you in advance! :)

Best Regards,
Laszlo Papp

====

#!/usr/bin/make -f
export DH_VERBOSE=1

export LIBTOOL=

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

PACKAGE_TARGETS :=  $(foreach pkg,$(DEB_ALL_PACKAGES),binary/$(pkg))
$(PACKAGE_TARGETS)::
	[ ! -f debian/$(notdir $@).aegis ] || aegis-deb-add -control
debian/$(notdir $@)/DEBIAN/control .. debian/$(notdir $@).aegis=_aegis

DEB_DH_INSTALLINIT_ARGS := --onlyscripts
DEB_MAKE_INSTALL_TARGET := install BUILDROOT=$(DEB_DESTDIR)


Best Regards,
Laszlo Papp


Reply to: