Re: Creating custom deb package with conffiles overrides



Le mercredi 30 août 2006 à 11:37 -0700, Atle Veka a écrit :
Hi,
I am trying to create a custom configuration package which among
other things installs an snmpd.conf into /etc/snmp/. Is there a way in my
package declaration to tell apt to override the previously installed snmpd
package that "owns" /etc/snmp/snmpd.conf? Or should I be going about this
another way?

dpkg: error processing
/var/cache/apt/archives/fci-newos-base_1.1-1_i386.deb (--unpack):
trying to overwrite `/etc/snmp/snmpd.conf', which is also in package
snmpd

I think you can't. What you can do is dynamically create the file in
your postinst, but dpkg will mention that the file has been modified
each time snmpd is upgraded. What I would do (if it is possible and if
it would do the trick) is ship a separate file and use the postinst
script to append something like a "include,myfile.conf" at the end of
`/etc/snmp/snmpd.conf' (I don't know the syntax of this file). dpkg
would still ask what to do upon upgrade, but it looks cleaner to me to
have a single line to manage in the file.

A topic on this subject just started on debian-devel (how to make things
easier for people doing what you are trying to), I suggest you browse
the archive tomorrow.

T.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Creating custom deb package with conffiles overrides
    ... I am trying to create a custom configuration package which among ... other things installs an snmpd.conf into /etc/snmp/. ... but dpkg will mention that the file has been modified ...
    (Debian-User)
  • Packaging af source dist
    ... I've made a package of vpopmail, ... dpkg -i name_of_package.deb it installs the files a weird place. ...
    (Debian-User)
  • Re: Debian
    ... Reading package lists... ... Reading state information... ... tools do not directly or indirectly invoke dpkg. ... Selecting previously deselected package libdvdnav4. ...
    (Ubuntu)
  • Re: dselect refusing to upgrade packages in unstable?
    ... dpkg: dependency problems prevent configuration of libxt-dev: ... dpkg: dependency problems prevent configuration of libice-dev: ... Package libice6 is not installed. ...
    (Debian-User)
  • Re: KDE 3.3.2 fails re-install [SOLVED]
    ... make sure you have all the kde components uninstalled: ... anything to do with KDE, but when I looked at it with dpkg, I found 28 ... in package kdewallpapers ... Package kdebase-data is not installed. ...
    (Debian-User)