Magellan Linux

Annotation of /smage/trunk/core/dbus/dbus-1.10.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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