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

gconf and debian/rules



Exactly how should one make gconf work in Debian packages? The gconf
manual doesn't include any examples on how to write in your configure.in
and Makefile.am, and I haven't found enough examples of it - the ones I've
found have done it differently. Suffice to say that I'm confused.

I had a look at the gtranslator package, its data/gcnof/Makefile.am (which
doesn't seem to be changed between original and Debian version) contains
this:

schemas_dir = $(sysconfdir)/gconf/schemas
schemas__DATA = gtranslator.schemas
install-data-local:
        -gconftool --shutdown && \
        GCONF_CONFIG_SOURCE="xml::${sysconfdir}/gconf/gconf.xml.defaults"\
        gconftool --makefile-install-rule \
        $(top_srcdir)/data/gconf/$(schemas__DATA)
EXTRA_DIST = $(schemas__DATA)

And debian/rules just does this:

[configure]
        ./configure --prefix=/usr                       \
                --mandir=\$${prefix}/share/man          \
                --infodir=\$${prefix}/share/info        \
                --sysconfdir=/etc                       \
                --enable-nautilus-view

[install]
        $(MAKE) install \
                prefix=`pwd`/debian/tmp/usr \
                sysconfdir=`pwd`/debian/tmp/etc \
                SC_OMFDIR=`pwd`/debian/tmp/usr/share/omf

And that seems to work "out of the box" so to speak. I don't manage to use
this in my own package though.

*sigh*

Can someone enlighten me?

Martin

-- 
Martin Sjögren
  md9ms@mdstud.chalmers.se       ICQ : 41245059
  Phone: +46 (0)31 405242        Cell: +46 (0)739 169191
  GPG key: http://www.mdstud.chalmers.se/~md9ms/gpg.html



Reply to: