Annotation of /trunk/extras/gconf/gconf-2.28.0-r1.smage2
Parent Directory | Revision Log
Revision 4237 -
(hide annotations)
(download)
Tue Dec 1 00:11:35 2009 UTC (14 years, 9 months ago) by niro
File size: 1996 byte(s)
Tue Dec 1 00:11:35 2009 UTC (14 years, 9 months ago) by niro
File size: 1996 byte(s)
auto added: ver bump to 2.28.0-r1
1 | niro | 4237 | # $Id$ |
2 | |||
3 | PNAME="gconf" | ||
4 | PVER="2.28.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="gnome-base" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="GConf is a 'registry' system, a library applications can use to store key-value pairs persistently." | ||
11 | HOMEPAGE="http://www.gnome.org/" | ||
12 | |||
13 | DEPEND=">= dev-libs/glib2-2.22 | ||
14 | >= dev-libs/libxml2-2.7 | ||
15 | >= gnome-base/orbit-2.14.17 | ||
16 | >= x11-libs/gtk2+-2.18 | ||
17 | >= sys-apps/dbus-1.3 | ||
18 | >= dev-libs/dbus-glib-0.82 | ||
19 | >= net-nds/openldap-2.4.19 | ||
20 | >= sys-apps/polkit-0.94" | ||
21 | |||
22 | SDEPEND=">= dev-util/pkgconfig-0.23 | ||
23 | >= dev-util/intltool-0.40" | ||
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 --with-openldap --enable-defaults-service || die | ||
46 | mmake || die | ||
47 | } | ||
48 | |||
49 | src_install() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | |||
53 | gn2_src_install || die | ||
54 | |||
55 | # needed directories to run gconf | ||
56 | minstalldir /etc/gconf/gconf.xml.mandatory || die | ||
57 | minstalldir /etc/gconf/gconf.xml.defaults || die | ||
58 | } | ||
59 | |||
60 | kill_gconf() | ||
61 | { | ||
62 | # this function will kill all running gconfd that could be causing troubles | ||
63 | if [ -x /usr/bin/gconftool ] | ||
64 | then | ||
65 | /usr/bin/gconftool --shutdown | ||
66 | fi | ||
67 | if [ -x /usr/bin/gconftool-1 ] | ||
68 | then | ||
69 | /usr/bin/gconftool-1 --shutdown | ||
70 | fi | ||
71 | if [ -x /usr/bin/gconftool-2 ] | ||
72 | then | ||
73 | /usr/bin/gconftool-2 --shutdown | ||
74 | fi | ||
75 | return 0 | ||
76 | } | ||
77 | |||
78 | preinstall() | ||
79 | { | ||
80 | kill_gconf | ||
81 | |||
82 | # install -d /etc/env.d | ||
83 | # echo 'CONFIG_PROTECT_MASK="/etc/gconf"' > /etc/env.d/50gconf | ||
84 | install -d ${MROOT}/root/.gconfd | ||
85 | } | ||
86 | |||
87 | postinstall() | ||
88 | { | ||
89 | # gconf specific: | ||
90 | kill_gconf | ||
91 | |||
92 | # change the permissions to avoid some gconf bugs | ||
93 | echo "changing permissions for gconf dirs" | ||
94 | find ${MROOT}/etc/gconf/ -type d -exec chmod ugo+rx "{}" \; | ||
95 | echo "changing permissions for gconf files" | ||
96 | find ${MROOT}/etc/gconf/ -type f -exec chmod ugo+r "{}" \; | ||
97 | |||
98 | # disable scrollkeeper | ||
99 | SCROLLKEEPER_UPDATE="0" | ||
100 | |||
101 | gn2_postinstall | ||
102 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |