Contents of /smage/branches/alx-0_6_0/core/dbus/dbus-1.5.0-r2.smage2
Parent Directory | Revision Log
Revision 2333 -
(show annotations)
(download)
Thu Jun 9 12:47:10 2011 UTC (12 years, 11 months ago) by niro
File size: 1868 byte(s)
Thu Jun 9 12:47:10 2011 UTC (12 years, 11 months ago) by niro
File size: 1868 byte(s)
-rebuild against modular xorg
1 | # $Id$ |
2 | |
3 | PNAME="dbus" |
4 | PVER="1.5.0" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another." |
11 | HOMEPAGE="http://www.freedesktop.org/Software/dbus" |
12 | |
13 | DEPEND=">= virtual/x11" |
14 | SDEPEND=">= dev-util/pkgconfig-0.25" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | sminclude mbuild alx |
21 | |
22 | SRC_URI=( |
23 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | src_compile() |
28 | { |
29 | cd ${SRCDIR} |
30 | |
31 | # using /lib/systemd/system as systemd units dir even on multilib systems |
32 | # to have one common rules/script directory! |
33 | mconfigure \ |
34 | --with-system-pid-file=/var/run/dbus.pid \ |
35 | --with-system-socket=/var/run/dbus/system_bus_socket \ |
36 | --with-session-socket-dir=/tmp \ |
37 | --with-test-socket-dir=/tmp \ |
38 | --libexecdir=/usr/lib/dbus-1.0 \ |
39 | --localstatedir=/var \ |
40 | --with-dbus-user=messagebus \ |
41 | --with-xml=expat \ |
42 | --disable-verbose-mode \ |
43 | --disable-checks \ |
44 | --disable-asserts \ |
45 | --enable-inotify \ |
46 | --disable-dnotify \ |
47 | --with-x \ |
48 | --disable-doxygen-docs \ |
49 | --disable-xml-docs \ |
50 | --with-systemdsystemunitdir=/lib/systemd/system \ |
51 | || die |
52 | |
53 | mmake || die |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | cd ${SRCDIR} |
59 | mmake install DESTDIR=${BINDIR} || die |
60 | |
61 | # mark some dirs undeletable |
62 | mkeepdir /var/lib/dbus || die |
63 | mkeepdir /var/run/dbus || die |
64 | mkeepdir /usr/lib/dbus-1.0/services || die |
65 | mkeepdir /usr/share/dbus-1/services || die |
66 | mkeepdir /etc/dbus-1/system.d || die |
67 | mkeepdir /etc/dbus-1/session.d || die |
68 | |
69 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die |
70 | } |
71 | |
72 | preinstall() |
73 | { |
74 | # adds plugdev group |
75 | ${MLIBDIR}/mgroupadd -o "-g 302" plugdev |
76 | |
77 | # adds messagebus user |
78 | ${MLIBDIR}/mgroupadd -o "-g 300" messagebus |
79 | ${MLIBDIR}/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus |
80 | } |