Gentoo Archives: gentoo-commits

From: "Saleem Abdulrasool (compnerd)" <compnerd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/hal: ChangeLog hal-0.5.9.1-r3.ebuild
Date: Sun, 04 Nov 2007 07:58:20
Message-Id: E1IoaN4-0006Oq-VS@stork.gentoo.org
1 compnerd 07/11/04 07:58:14
2
3 Modified: ChangeLog
4 Added: hal-0.5.9.1-r3.ebuild
5 Log:
6 rev bump to bump pciutils to drop zlib die
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.210 sys-apps/hal/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.210&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?rev=1.210&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/ChangeLog?r1=1.209&r2=1.210
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v
19 retrieving revision 1.209
20 retrieving revision 1.210
21 diff -u -r1.209 -r1.210
22 --- ChangeLog 31 Aug 2007 14:19:51 -0000 1.209
23 +++ ChangeLog 4 Nov 2007 07:58:14 -0000 1.210
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-apps/hal
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.209 2007/08/31 14:19:51 cardoe Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/ChangeLog,v 1.210 2007/11/04 07:58:14 compnerd Exp $
29 +
30 +*hal-0.5.9.1-r3 (04 Nov 2007)
31 +
32 + 04 Nov 2007; Saleem Abdulrasool <compnerd@g.o>
33 + +hal-0.5.9.1-r3.ebuild:
34 + Bump pciutils dep to drop the zlib die
35
36 31 Aug 2007; Doug Goldstein <cardoe@g.o> hal-0.5.9-r1.ebuild,
37 hal-0.5.9.1-r1.ebuild, hal-0.5.9.1-r2.ebuild:
38
39
40
41 1.1 sys-apps/hal/hal-0.5.9.1-r3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.9.1-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/hal-0.5.9.1-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: hal-0.5.9.1-r3.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/hal-0.5.9.1-r3.ebuild,v 1.1 2007/11/04 07:58:14 compnerd Exp $
51
52 inherit eutils linux-info autotools flag-o-matic
53
54 DESCRIPTION="Hardware Abstraction Layer"
55 HOMEPAGE="http://www.freedesktop.org/Software/hal"
56 SRC_URI="http://people.freedesktop.org/~david/dist/${P}.tar.gz
57 http://dev.gentoo.org/~cardoe/files/hal/${P}-r2.tar.bz2"
58
59 LICENSE="|| ( GPL-2 AFL-2.0 )"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -mips ~ppc -ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
62
63 KERNEL_IUSE="kernel_linux kernel_FreeBSD"
64 IUSE="acpi crypt debug dell disk-partition doc pcmcia selinux ${KERNEL_IUSE}"
65
66 RDEPEND=">=dev-libs/glib-2.6
67 >=dev-libs/dbus-glib-0.61
68 kernel_linux? ( >=sys-fs/udev-104 )
69 kernel_linux? ( >=sys-apps/util-linux-2.12r-r1 )
70 kernel_linux? ( >=sys-kernel/linux-headers-2.6.17 )
71 kernel_FreeBSD? ( dev-libs/libvolume_id )
72 >=dev-libs/expat-1.95.8
73 >=sys-apps/pciutils-2.2.7-r1
74 >=dev-libs/libusb-0.1.10a
75 sys-apps/usbutils
76 virtual/eject
77 amd64? ( >=sys-apps/dmidecode-2.7 )
78 x86? ( >=sys-apps/dmidecode-2.7 )
79 ia64? ( >=sys-apps/dmidecode-2.7 )
80 dell? ( >=sys-libs/libsmbios-0.13.4 )
81 disk-partition? ( <=sys-apps/parted-1.8.7 )
82 kernel_linux? ( crypt? ( || ( >=sys-fs/cryptsetup-1.0.5
83 >=sys-fs/cryptsetup-luks-1.0.1 ) ) )
84 selinux? ( sys-libs/libselinux
85 sec-policy/selinux-hal )"
86 # pam? ( sys-auth/consolekit )"
87
88 DEPEND="${RDEPEND}
89 dev-util/pkgconfig
90 >=dev-util/intltool-0.35
91 doc? ( app-doc/doxygen
92 app-text/docbook-sgml-utils
93 app-text/xmlto )"
94
95 PDEPEND="app-misc/hal-info"
96
97 ## HAL Daemon drops privledges so we need group access to read disks
98 HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
99 HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
100
101 function notify_uevent() {
102 ewarn
103 ewarn "You must enable Kernel Userspace Events in your kernel."
104 ewarn "For this you need to enable 'Hotplug' under 'General Setup' and"
105 ewarn "basic networking. They are marked CONFIG_HOTPLUG and CONFIG_NET"
106 ewarn "in the config file."
107 ewarn
108 ebeep 5
109 }
110
111 function notify_procfs() {
112 ewarn
113 ewarn "You must enable the proc filesystem in your kernel."
114 ewarn "For this you need to enable '/proc file system support' under"
115 ewarn "'Pseudo filesystems' in 'File systems'. It is marked"
116 ewarn "CONFIG_PROC_FS in the config file."
117 ewarn
118 ebeep 5
119 }
120
121 function notify_inotify() {
122 ewarn
123 ewarn "You must enable the Inotify system in your kernel."
124 ewarn "For this you need to enable 'Inotify support for userspace'"
125 ewarn "in 'File systems'. It is marked CONFIG_INOTIFY_USER in the config file."
126 ewarn
127 ebeep 5
128 }
129
130 pkg_setup() {
131 if use kernel_linux; then
132 kernel_is ge 2 6 17 || ewarn "HAL requires a kernel version 2.6.17 or newer"
133
134 if ! ( linux_chkconfig_present HOTPLUG && linux_chkconfig_present NET )
135 then
136 notify_uevent
137 fi
138
139 linux_chkconfig_present INOTIFY_USER || notify_inotify
140
141 if use acpi ; then
142 linux_chkconfig_present PROC_FS || notify_procfs
143 fi
144 fi
145
146 if [[ -d ${ROOT}/etc/hal/device.d ]]; then
147 eerror "HAL 0.5.x will not run with the HAL 0.4.x series of"
148 eerror "/etc/hal/device.d/ so please remove this directory"
149 eerror "with rm -rf /etc/hal/device.d/ and then re-emerge."
150 eerror "This is due to configuration protection of /etc/"
151 die "remove /etc/hal/device.d/"
152 fi
153 }
154
155 src_unpack() {
156 unpack ${A}
157 cd ${S}
158
159 EPATCH_SUFFIX="patch" \
160 EPATCH_FORCE="yes" \
161 epatch "${WORKDIR}"/hal-patches
162
163 eautoreconf
164 }
165
166 src_compile() {
167 local backend=""
168 local acpi=""
169
170 # TODO :: policykit should have a pam useflag
171 append-flags -rdynamic
172
173 if use kernel_linux ; then
174 backend="linux"
175 use acpi && acpi="--enable-acpi-toshiba --enable-acpi-ibm"
176 elif use kernel_FreeBSD ; then
177 backend="freebsd"
178 else
179 eerror "Invalid backend"
180 fi
181
182 if ! use acpi ; then
183 acpi="--disable-acpi-proc --disable-acpi-acpid"
184 fi
185
186 econf --disable-policy-kit \
187 --docdir=/usr/share/doc/${PF} \
188 --with-os-type=gentoo \
189 --with-pid-file=/var/run/hald.pid \
190 --with-socket-dir=/var/run/hald \
191 --with-hwdata=/usr/share/misc \
192 --enable-hotplug-map \
193 --enable-man-pages \
194 --with-backend=${backend} \
195 $(use_enable debug verbose-mode) \
196 $(use_with dell dell-backlight) \
197 $(use_enable disk-partition parted) \
198 $(use_enable pcmcia pcmcia-support) \
199 $(use_enable doc docbook-docs) \
200 $(use_enable doc doxygen-docs) \
201 $(use_enable selinux) \
202 --disable-console-kit \
203 ${acpi} \
204 || die "configure failed"
205 #$(use_enable pam console-kit)
206
207 emake || die "make failed"
208 }
209
210 src_install() {
211 make DESTDIR="${D}" install || die
212 dodoc AUTHORS ChangeLog NEWS README
213
214 # remove dep on gnome-python
215 mv "${D}"/usr/bin/hal-device-manager "${D}"/usr/share/hal/device-manager/
216
217 # hal umount for unclean unmounts
218 exeinto /lib/udev/
219 newexe "${FILESDIR}"/hal-unmount.dev hal_unmount
220
221 # initscript
222 newinitd "${FILESDIR}"/0.5.9-hald.rc hald
223 cp "${FILESDIR}"/0.5.9-hald.conf "${WORKDIR}"/
224 # if use pam; then
225 # sed -e 's:RC_NEED="":RC_NEED="consolekit":' -i "${WORKDIR}"/0.5.9-hald.conf
226 # fi
227 if use debug; then
228 sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
229 -i "${WORKDIR}"/0.5.9-hald.conf
230 fi
231 newconfd "${WORKDIR}"/0.5.9-hald.conf hald
232
233 # We now create and keep /media here as both gnome-mount and pmount
234 # use these directories, to avoid collision.
235 keepdir /media
236
237 # We also need to create and keep /etc/fdi/{information,policy,preprobe}
238 # or else hal bombs.
239 keepdir /etc/hal/fdi/{information,policy,preprobe}
240
241 # HAL stores it's fdi cache in /var/lib/cache/hald
242 keepdir /var/lib/cache/hald
243
244 # HAL keeps its unix socket here
245 keepdir /var/run/hald
246 }
247
248 pkg_postinst() {
249 # Despite what people keep changing this location. Either one works.. it doesn't matter
250 # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
251
252 # Create groups for hotplugging and HAL
253 enewgroup haldaemon || die "Problem adding haldaemon group"
254 enewgroup plugdev || die "Problem adding plugdev group"
255
256 # HAL drops priviledges by default now ...
257 # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
258 if use kernel_linux; then
259 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} \
260 || die "Problem adding haldaemon user"
261 elif use kernel_FreeBSD; then
262 enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} \
263 || die "Problem addding haldaemon user"
264 fi
265
266 # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
267 # If users have a problem with this, let them file a bug
268 if [[ ${ROOT} == / ]] ; then
269 if use kernel_linux; then
270 usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
271 elif use kernel_FreeBSD; then
272 pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
273 fi
274 fi
275
276 elog "The HAL daemon needs to be running for certain applications to"
277 elog "work. Suggested is to add the init script to your start-up"
278 elog "scripts, this should be done like this :"
279 elog "\`rc-update add hald default\`"
280 echo
281 elog "Looking for automounting support? Add yourself to the plugdev group"
282 }
283
284
285
286 --
287 gentoo-commits@g.o mailing list