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