Annotation of /trunk/extras/gconf/gconf-2.22.0-r1.smage2
Parent Directory | Revision Log
Revision 4227 -
(hide annotations)
(download)
Mon Nov 30 23:45:14 2009 UTC (14 years, 6 months ago) by niro
File size: 1804 byte(s)
Mon Nov 30 23:45:14 2009 UTC (14 years, 6 months ago) by niro
File size: 1804 byte(s)
-moved to 'extras'
1 | niro | 2 | # $Header: /magellan-cvs/smage/gconf/gconf-2.22.0-r1.smage2,v 1.1 2008/03/21 08:55:58 niro Exp $ |
2 | |||
3 | PNAME="gconf" | ||
4 | PVER="2.22.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.16 | ||
14 | >= dev-libs/popt-1.10 | ||
15 | >= dev-libs/libxml2-2.6.16 | ||
16 | >= gnome-base/orbit-2.14.12 | ||
17 | >= x11-libs/gtk2+-2.12" | ||
18 | |||
19 | SDEPEND=">= dev-util/pkgconfig-0.23" | ||
20 | |||
21 | # include kill_gconf() in mage file | ||
22 | SPECIAL_FUNCTIONS="kill_gconf" | ||
23 | |||
24 | SRCFILE="GConf-${PVER}.tar.bz2" | ||
25 | SRCDIR="${BUILDDIR}/GConf-${PVER}" | ||
26 | |||
27 | sminclude mtools gnome2 | ||
28 | |||
29 | SRC_URI=( | ||
30 | gnome://GConf/${PVER%.*}/${SRCFILE} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | ) | ||
33 | |||
34 | src_install() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | gn2_src_install || die | ||
39 | |||
40 | # needed directories to run gconf | ||
41 | minstalldir /etc/gconf/gconf.xml.mandatory || die | ||
42 | minstalldir /etc/gconf/gconf.xml.defaults || die | ||
43 | } | ||
44 | |||
45 | kill_gconf() | ||
46 | { | ||
47 | # this function will kill all running gconfd that could be causing troubles | ||
48 | if [ -x /usr/bin/gconftool ] | ||
49 | then | ||
50 | /usr/bin/gconftool --shutdown | ||
51 | fi | ||
52 | if [ -x /usr/bin/gconftool-1 ] | ||
53 | then | ||
54 | /usr/bin/gconftool-1 --shutdown | ||
55 | fi | ||
56 | if [ -x /usr/bin/gconftool-2 ] | ||
57 | then | ||
58 | /usr/bin/gconftool-2 --shutdown | ||
59 | fi | ||
60 | return 0 | ||
61 | } | ||
62 | |||
63 | preinstall() | ||
64 | { | ||
65 | kill_gconf | ||
66 | |||
67 | # install -d /etc/env.d | ||
68 | # echo 'CONFIG_PROTECT_MASK="/etc/gconf"' > /etc/env.d/50gconf | ||
69 | install -d ${MROOT}/root/.gconfd | ||
70 | } | ||
71 | |||
72 | postinstall() | ||
73 | { | ||
74 | # gconf specific: | ||
75 | kill_gconf | ||
76 | |||
77 | # change the permissions to avoid some gconf bugs | ||
78 | echo "changing permissions for gconf dirs" | ||
79 | find ${MROOT}/etc/gconf/ -type d -exec chmod ugo+rx "{}" \; | ||
80 | echo "changing permissions for gconf files" | ||
81 | find ${MROOT}/etc/gconf/ -type f -exec chmod ugo+r "{}" \; | ||
82 | |||
83 | # disable scrollkeeper | ||
84 | SCROLLKEEPER_UPDATE="0" | ||
85 | |||
86 | gn2_postinstall | ||
87 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |