Contents of /trunk/core/dbus/dbus-1.8.0-r1.smage2
Parent Directory | Revision Log
Revision 20901 -
(show annotations)
(download)
Thu Feb 13 13:52:21 2014 UTC (10 years, 4 months ago) by niro
File size: 3976 byte(s)
Thu Feb 13 13:52:21 2014 UTC (10 years, 4 months ago) by niro
File size: 3976 byte(s)
auto added: ver bump to 1.8.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="dbus" |
4 | PVER="1.8.0" |
5 | PBUILD="r1" |
6 | |
7 | SPLIT_PACKAGES="dbus-libs dbus dbus-x11" |
8 | |
9 | PCAT="sys-apps" |
10 | HOMEPAGE="http://www.freedesktop.org/Software/dbus" |
11 | |
12 | LIB_DEPEND=">= virtual/glibc" |
13 | |
14 | DBUS_DEPEND=">= dev-libs/expat-2 |
15 | >= sys-apps/util-linux-2.23 |
16 | >= sys-libs/libsystemd-daemon-208 |
17 | >= sys-libs/libsystemd-login-208" |
18 | |
19 | X11_DEPEND=">= x11-libs/libX11-1.6 |
20 | >= x11-libs/libXt-1.1" |
21 | |
22 | SDEPEND="${LIB_DEPEND} |
23 | ${DBUS_DEPEND} |
24 | ${X11_DEPEND} |
25 | >= dev-util/pkgconfig-0.25 |
26 | >= sys-apps/systemd-208" |
27 | |
28 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
29 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
30 | |
31 | sminclude mtools multilib systemd |
32 | |
33 | SESSION_SCRIPT_REV=2 |
34 | |
35 | SRC_URI=( |
36 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${PNAME}-1.5.8-no-fatal-warnings.patch |
39 | ) |
40 | |
41 | # use subdir $uri/dbus |
42 | UP2SUBDIR="${PNAME}" |
43 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" |
44 | |
45 | split_info_dbus-libs() |
46 | { |
47 | DESCRIPTION="Libraries for accessing D-BUS." |
48 | DEPEND="${LIB_DEPEND}" |
49 | PCAT="sys-libs" |
50 | } |
51 | |
52 | split_info_dbus() |
53 | { |
54 | DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another." |
55 | DEPEND="== sys-libs/dbus-libs-${PVER} |
56 | ${DBUS_DEPEND}" |
57 | } |
58 | |
59 | split_info_dbus-x11() |
60 | { |
61 | DESCRIPTION="X11-requiring add-ons for D-BUS." |
62 | DEPEND="== sys-libs/dbus-libs-${PVER} |
63 | == sys-apps/dbus-${PVER} |
64 | ${X11_DEPEND}" |
65 | } |
66 | |
67 | src_prepare() |
68 | { |
69 | munpack ${SRCFILE} || die |
70 | |
71 | # do not abort on fatal warnings by default |
72 | mpatch ${PNAME}-1.5.8-no-fatal-warnings.patch || die |
73 | } |
74 | |
75 | src_compile() |
76 | { |
77 | # using /lib/systemd/system as systemd units dir even on multilib systems |
78 | # to have one common rules/script directory! |
79 | mconfigure \ |
80 | --with-system-pid-file=/run/dbus.pid \ |
81 | --with-system-socket=/run/dbus/system_bus_socket \ |
82 | --with-session-socket-dir=/tmp \ |
83 | --with-test-socket-dir=/tmp \ |
84 | --with-console-auth-dir=/run/console \ |
85 | --libexecdir=/usr/$(mlibdir)/dbus-1.0 \ |
86 | --localstatedir=/var \ |
87 | --with-dbus-user=messagebus \ |
88 | --with-xml=expat \ |
89 | --disable-verbose-mode \ |
90 | --disable-checks \ |
91 | --disable-asserts \ |
92 | --enable-inotify \ |
93 | --disable-dnotify \ |
94 | --with-x \ |
95 | --disable-doxygen-docs \ |
96 | --disable-xml-docs \ |
97 | --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ |
98 | --enable-systemd \ |
99 | || die |
100 | |
101 | mmake || die |
102 | } |
103 | |
104 | src_install_dbus-libs() |
105 | { |
106 | # fix ln issue on multilib: force overwrite of all symlinks |
107 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus install-libLTLIBRARIES || die |
108 | } |
109 | |
110 | src_install_dbus() |
111 | { |
112 | # fix ln issue on multilib: force overwrite of all symlinks |
113 | mmake install DESTDIR=${BINDIR} LN_S="'ln -sf'" || die |
114 | # remove libraries provided by the dbus-libs package |
115 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus uninstall-libLTLIBRARIES || die |
116 | # remove dbus-launch provided by dbus-x11 package |
117 | mdelete /usr/bin/dbus-launch || die |
118 | mdelete /usr/share/man/man1/dbus-launch.1 || die |
119 | # remove dbus-run-session provided by dbus-x11 package |
120 | mdelete /usr/bin/dbus-run-session || die |
121 | mdelete /usr/share/man/man1/dbus-run-session.1 || die |
122 | |
123 | # mark some dirs undeletable |
124 | mkeepdir /var/lib/dbus || die |
125 | mkeepdir /run/dbus || die |
126 | mkeepdir /usr/lib/dbus-1.0/services || die |
127 | mkeepdir /usr/share/dbus-1/services || die |
128 | mkeepdir /etc/dbus-1/system.d || die |
129 | mkeepdir /etc/dbus-1/session.d || die |
130 | |
131 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die |
132 | } |
133 | |
134 | src_install_dbus-x11() |
135 | { |
136 | all-abis minstallexec tools/dbus-launch || die |
137 | all-abis minstallman doc/dbus-launch.1 || die |
138 | |
139 | all-abis minstallexec tools/dbus-run-session || die |
140 | all-abis minstallman doc/dbus-run-session.1 || die |
141 | } |
142 | |
143 | preinstall_dbus() |
144 | { |
145 | # adds plugdev group |
146 | mgroupadd -o "-g 302" plugdev |
147 | |
148 | # adds messagebus user |
149 | mgroupadd -o "-g 300" messagebus |
150 | museradd -o "-M -u 300 -g messagebus -d /dev/null -s /bin/false" messagebus |
151 | } |
152 | |
153 | postinstall_dbus() |
154 | { |
155 | # only reload dbus-daemon if already running |
156 | if pidof dbus-daemon > /dev/null |
157 | then |
158 | mreloadunit dbus.service dbus-daemon |
159 | else |
160 | mstartunit dbus.service dbus-daemon |
161 | fi |
162 | } |
163 | |
164 | postremove_dbus() |
165 | { |
166 | mstopunit dbus.service dbus-daemon |
167 | } |