#! /bin/sh /usr/share/dpatch/dpatch-run
## move_libexec.dpatch by Jose Carlos Garcia Sogo <jsogo@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Install seahorse-applet in a proper FHS place

@DPATCH@
diff -urNad seahorse-0.9.1~/libseahorse/Makefile.am seahorse-0.9.1/libseahorse/Makefile.am
--- seahorse-0.9.1~/libseahorse/Makefile.am	2006-03-25 04:19:07.000000000 +0100
+++ seahorse-0.9.1/libseahorse/Makefile.am	2006-04-15 13:42:01.000000000 +0200
@@ -2,7 +2,7 @@
 gladedir = $(datadir)/seahorse/glade/
 localedir = $(datadir)/locale
 pixmapsdir = $(datadir)/pixmaps/seahorse/
-seahorselibexecbindir = $(libexecdir)/seahorse/
+seahorselibexecbindir = $(libdir)/seahorse/
 
 INCLUDES = -I$(top_builddir) \
 	-I$(top_srcdir) \
diff -urNad seahorse-0.9.1~/plugins/applet/GNOME_SeahorseApplet.server.in.in seahorse-0.9.1/plugins/applet/GNOME_SeahorseApplet.server.in.in
--- seahorse-0.9.1~/plugins/applet/GNOME_SeahorseApplet.server.in.in	2006-04-03 23:16:13.000000000 +0200
+++ seahorse-0.9.1/plugins/applet/GNOME_SeahorseApplet.server.in.in	2006-04-15 13:40:37.000000000 +0200
@@ -1,7 +1,7 @@
 <oaf_info>
 
     <oaf_server iid="OAFIID:GNOME_SeahorseApplet_Factory" type="exe"
-                    location="@LIBEXECDIR@/seahorse-applet">
+                    location="@LIBDIR@/seahorse/seahorse-applet">
 
         <oaf_attribute name="repo_ids" type="stringv">
             <item value="IDL:Bonobo/GenericFactory:1.0"/>
diff -urNad seahorse-0.9.1~/plugins/applet/Makefile.am seahorse-0.9.1/plugins/applet/Makefile.am
--- seahorse-0.9.1~/plugins/applet/Makefile.am	2006-02-25 22:38:35.000000000 +0100
+++ seahorse-0.9.1/plugins/applet/Makefile.am	2006-04-15 13:40:37.000000000 +0200
@@ -21,7 +21,8 @@
 	-DSYSCONFDIR=\""$(sysconfdir)"\" \
 	-DPREFIX=\""$(prefix)"\"
 
-libexec_PROGRAMS = seahorse-applet
+seahorse_appletdir = $(libdir)/seahorse
+seahorse_applet_PROGRAMS = seahorse-applet
 
 seahorse_applet_SOURCES = \
 	seahorse-applet.c \
@@ -37,7 +38,7 @@
 server_DATA = $(server_in_files:.server.in=.server)
 
 $(server_in_files): $(server_in_files:.server.in=.server.in.in)
-	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@
+	sed -e "s|\@LIBDIR\@|$(libdir)|" $< > $@
 
 CLEANFILES = $(server_in_files) $(server_DATA) $(schemas_DATA) *.gladep* *.bak
 
