Magellan Linux

Contents of /branches/magellan-next/extras/gconf/gconf-2.32.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8305 - (show annotations) (download)
Thu Jul 14 13:34:38 2011 UTC (12 years, 10 months ago) by niro
File size: 2127 byte(s)
auto added: ver bump to 2.32.4-r1
1 # $Id$
2
3 PNAME="gconf"
4 PVER="2.32.4"
5 PBUILD="r1"
6
7 PCATEGORIE="gnome-base"
8
9 DESCRIPTION="GConf is a 'registry' system, a library applications can use to store key-value pairs persistently."
10 HOMEPAGE="http://www.gnome.org/"
11
12 DEPEND=">= dev-libs/glib2-2.28
13 >= dev-libs/libxml2-2.7
14 >= gnome-base/orbit-2.14.19
15 >= x11-libs/gtk2+-2.24
16 >= sys-apps/dbus-1.4
17 >= dev-libs/dbus-glib-0.92
18 >= net-nds/openldap-2.4.26
19 >= sys-apps/polkit-0.101"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25
22 >= dev-util/intltool-0.41
23 >= dev-libs/gobject-introspection-0.10"
24
25 # include kill_gconf() in mage file
26 SPECIAL_FUNCTIONS="kill_gconf"
27
28 SRCFILE="GConf-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/GConf-${PVER}"
30
31 sminclude mtools gnome2
32
33 SRC_URI=(
34 gnome://GConf/${PVER%.*}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 )
37
38 UP2DATE="updatecmd_gnome GConf"
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 # defaults-service needs polkit
45 gn2_configure \
46 --enable-gtk \
47 --with-gtk=2.0 \
48 --enable-gsettings-backend \
49 --with-openldap \
50 --enable-defaults-service \
51 --enable-introspection \
52 || die
53
54 mmake || die
55 }
56
57 src_install()
58 {
59 cd ${SRCDIR}
60
61 gn2_src_install || die
62
63 # needed directories to run gconf
64 minstalldir /etc/gconf/gconf.xml.mandatory || die
65 minstalldir /etc/gconf/gconf.xml.defaults || die
66 }
67
68 kill_gconf()
69 {
70 # this function will kill all running gconfd that could be causing troubles
71 if [ -x /usr/bin/gconftool ]
72 then
73 /usr/bin/gconftool --shutdown
74 fi
75 if [ -x /usr/bin/gconftool-1 ]
76 then
77 /usr/bin/gconftool-1 --shutdown
78 fi
79 if [ -x /usr/bin/gconftool-2 ]
80 then
81 /usr/bin/gconftool-2 --shutdown
82 fi
83 return 0
84 }
85
86 preinstall()
87 {
88 kill_gconf
89
90 # install -d /etc/env.d
91 # echo 'CONFIG_PROTECT_MASK="/etc/gconf"' > /etc/env.d/50gconf
92 install -d ${MROOT}/root/.gconfd
93 }
94
95 postinstall()
96 {
97 # gconf specific:
98 kill_gconf
99
100 # change the permissions to avoid some gconf bugs
101 echo "changing permissions for gconf dirs"
102 find ${MROOT}/etc/gconf/ -type d -exec chmod ugo+rx "{}" \;
103 echo "changing permissions for gconf files"
104 find ${MROOT}/etc/gconf/ -type f -exec chmod ugo+r "{}" \;
105
106 # disable scrollkeeper
107 SCROLLKEEPER_UPDATE="0"
108
109 gn2_postinstall
110 }