Magellan Linux

Contents of /branches/R11-stable/extras/gconf/gconf-3.2.6-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17923 - (show annotations) (download)
Thu Jun 27 06:29:31 2013 UTC (11 years, 4 months ago) by niro
File size: 2118 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="gconf"
4 PVER="3.2.6"
5 PBUILD="r2"
6
7 PCAT="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.36
13 >= dev-libs/libxml2-2.7
14 >= gnome-base/orbit-2.14.19
15 >= x11-libs/gtk3+-3.8
16 >= sys-apps/dbus-1.6
17 >= dev-libs/dbus-glib-0.100
18 >= net-nds/libldap-2.4.31
19 >= sys-apps/polkit-0.111"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25
22 >= dev-util/intltool-0.41
23 >= dev-libs/gobject-introspection-1.36"
24
25 # include kill_gconf() in mage file
26 SPECIAL_FUNCTIONS="kill_gconf"
27
28 SRCFILE="GConf-${PVER}.tar.xz"
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=3.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 }