|
|
Up |
  |
Author: Bertrand MarcBertrand Marc Date: May 13, 2008 10:40
Hello,
I'd like to split a package foo into 2 new packages : foo and
foo-daemon. To do that I moved the daemon and the other obvious files
with dh_install -pfoo-dameon. I used dh_installinit to install the
init.d file to the foo-daemon package.
Everything seems fine, but when I upgrade foo to the new foo+foo-daemon.
I get 2 files in /etc/init.d/ :
foo and foo-daemon.
Here are my questions : what am I doing wrong ? How can I remove the
/etc/init.d/foo unnecessary file ?
Regards,
Bertrand
2 things : I'm an not on debian-devel, and in this case foo = fglrx-driver
|
| |
| 6 Comments |
|
  |
Author: Adam MajerAdam Majer Date: May 13, 2008 11:00
Bertrand Marc wrote:
> Hello,
>
> I'd like to split a package foo into 2 new packages : foo and
> foo-daemon. To do that I moved the daemon and the other obvious files
> with dh_install -pfoo-dameon. I used dh_installinit to install the
> init.d file to the foo-daemon package.
>
> Here are my questions : what am I doing wrong ? How can I remove the
> /etc/init.d/foo unnecessary file ?
No, you can't just remove /etc/init.d/foo. It is a conffile and may be
modified by admin. You should probably keep /etc/init.d/foo instead of
renaming it foo-daemon.
> 2 things : I'm an not on debian-devel, and in this case foo = fglrx-driver
Will foo depend on foo-daemon? If yes, why are you splitting the package?
- Adam
|
| |
| no comments |
|
  |
Author: Bertrand MarcBertrand Marc Date: May 13, 2008 12:20
Thanks for your answers!
So I guess the best way to do this is to split the package and use
dh_installinit --name=foo
This way I can provide the buggy binary daemon in a seperate package
(recommended by foo), and keep the name of the conffiles.
Do you think of something else?
Regards,
Bertrand
|
| Show full article (1.26Kb) |
| no comments |
|
  |
Author: Andreas MetzlerAndreas Metzler Date: May 13, 2008 12:40
In article <4829CC26.8080509@ gmail.com> (gmane.linux.debian.devel.general) you wrote:
> I'd like to split a package foo into 2 new packages : foo and
> foo-daemon. To do that I moved the daemon and the other obvious files
> with dh_install -pfoo-dameon. I used dh_installinit to install the
> init.d file to the foo-daemon package.
> Everything seems fine, but when I upgrade foo to the new foo+foo-daemon.
dpkg does not remove orphaned conffiles.
> I get 2 files in /etc/init.d/ :
> foo and foo-daemon.
> Here are my questions : what am I doing wrong ? How can I remove the
> /etc/init.d/foo unnecessary file ?
If it is not *really* necessary do not move the conffile from one
package to another. If it must be, you'd need to do this in the
maintainerscripts:
|
| Show full article (1.27Kb) |
| no comments |
|
  |
Author: Roberto C. SánchezRoberto C. Sánchez Date: May 13, 2008 12:50
On Tue, May 13, 2008 at 09:00:45PM +0200, Bertrand Marc wrote:
> Thanks for your answers!
>
> So I guess the best way to do this is to split the package and use
> dh_installinit --name=foo
>
> This way I can provide the buggy binary daemon in a seperate package
> (recommended by foo), and keep the name of the conffiles.
>
I did something similar for the init script and defaults for shorewall.
I turned shorewall into a dummy package, and then I had
shorewall-common, shorewall-perl and shorewall-shell. The configuration
files went into shorewall-common, but I kept the files named
/etc/init.d/shorewall and /etc/default/shorewall.
Regards,
-Roberto
|
| Show full article (0.95Kb) |
| no comments |
|
  |
Author: Adam MajerAdam Majer Date: May 13, 2008 13:00
Bertrand Marc wrote:
> Thanks for your answers!
>
> So I guess the best way to do this is to split the package and use
> dh_installinit --name=foo
>
> This way I can provide the buggy binary daemon in a seperate package
> (recommended by foo), and keep the name of the conffiles.
>
> Do you think of something else?
So the fglrx driver works fine *without* the daemon?
- Adam
|
| |
| no comments |
|
  |
Author: Bertrand MarcBertrand Marc Date: May 13, 2008 16:50
I'm currently using fglrx without atieventsd (for testing pupose).
Everything is working fine except for the acpi stuffs. Whenever I'm on
battery, I have to manually configure aticonfig with --set-powerstate 1.
Except for this, everything is fine. I have 3D acceleration, as usual.
|
| Show full article (0.88Kb) |
| no comments |
|
RELATED THREADS |
  |
|
|
|