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