On Tue, May 24, 2011 at 8:11 PM, Steve Langasek <firstname.lastname@example.org> wrote:
> Hi Laszlo,
> On Tue, May 24, 2011 at 07:08:22PM +0300, Laszlo Papp wrote:
>> 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.
> It installs it to /etc/init because this is the upstream path for upstart
> jobs. *There is no dh_installinit implementation that knows about this
> maemo-specific /etc/init/apps/ path.
It is actually not maemo specific feature, it is more like a general
customization. (which seems to be missing from the dh_installinit
implementation right now).
>From the man page of that:
Only modify postinst/postrm/prerm scripts, do not actually
install any init script, default files, or upstart job. May be useful
if the init script or upstart job is shipped and/or installed by
upstream in a
way that doesn't make it easy to let dh_installinit find it.
If no upstart job file is installed in the target directory
when dh_installinit --onlyscripts is called, this program will assume
that an init script is being installed and not provide the
or upstart dependencies.
I thought it should eliminate the installation and I could do it
"manually" from the postinst script.
> You could patch dh_installinit to do this in a maemo context, or you could
> pass DEB_DH_INSTALLINIT_ARGS=--name=nonexistent to force dh_installinit to
> only look for debian/cups.nonexistent.upstart.
I have also tried this option, but I still get the /etc/init.d/cups
I am not sure what I am doing wrong.
I hoped either this option you mentioned, or the "-o" should help to
not install anything, not /etc/init.d/cups either. It might well be, I
have just made some dumb mistake and it should work however. Anyway,
it would be nice if the installation path could be customizable in
case of the cdbs usage.
If nothing works, I think it is time to start thinking of the
debhelper usage, but I do still hope I did something wrong or I missed
Thank you for your answer !
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com
Archive: BANLkTinF=QDhE_vUSLOhZLoaR=m=Vt1MKw@mail.gmail.com ">http://lists.debian.org/BANLkTinF=QDhE_vUSLOhZLoaR=m=Vt1MKw@mail.gmail.com