/[gentoo-x86]/sys-fs/udev/udev-149.ebuild
Gentoo

Diff of /sys-fs/udev/udev-149.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.25 Revision 1.26
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/Attic/udev-149.ebuild,v 1.25 2012/05/16 03:21:30 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/Attic/udev-149.ebuild,v 1.26 2012/07/31 04:43:38 ssuominen Exp $
4 4
5EAPI="1" 5EAPI="1"
6 6
7inherit eutils flag-o-matic multilib toolchain-funcs linux-info 7inherit eutils flag-o-matic multilib toolchain-funcs linux-info
8 8
152 EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \ 152 EPATCH_SOURCE="${WORKDIR}/${PATCHSET}" EPATCH_SUFFIX="patch" \
153 EPATCH_FORCE="yes" epatch 153 EPATCH_FORCE="yes" epatch
154 154
155 if ! use devfs-compat; then 155 if ! use devfs-compat; then
156 # see Bug #269359 156 # see Bug #269359
157 epatch "${FILESDIR}"/udev-141-remove-devfs-names.diff 157 epatch "${WORKDIR}"/udev-141-remove-devfs-names.diff
158 fi 158 fi
159 159
160 # Bug 413055 160 # Bug 413055
161 epatch "${FILESDIR}"/udev-164-remove-v4l1.patch 161 epatch "${WORKDIR}"/udev-164-remove-v4l1.patch
162 162
163 # change rules back to group uucp instead of dialout for now 163 # change rules back to group uucp instead of dialout for now
164 sed -e 's/GROUP="dialout"/GROUP="uucp"/' \ 164 sed -e 's/GROUP="dialout"/GROUP="uucp"/' \
165 -i rules/{rules.d,packages,gentoo}/*.rules \ 165 -i rules/{rules.d,packages,gentoo}/*.rules \
166 || die "failed to change group dialout to uucp" 166 || die "failed to change group dialout to uucp"
209 209
210 emake || die "compiling udev failed" 210 emake || die "compiling udev failed"
211} 211}
212 212
213src_install() { 213src_install() {
214 local scriptdir="${FILESDIR}/147" 214 local scriptdir="${WORKDIR}/147"
215 215
216 into / 216 into /
217 emake DESTDIR="${D}" install || die "make install failed" 217 emake DESTDIR="${D}" install || die "make install failed"
218 # without this code, multilib-strict is angry 218 # without this code, multilib-strict is angry
219 if [[ "$(get_libdir)" != "lib" ]]; then 219 if [[ "$(get_libdir)" != "lib" ]]; then
229 einfo "There is no ${D}/lib, move code can be deleted." 229 einfo "There is no ${D}/lib, move code can be deleted."
230 fi 230 fi
231 fi 231 fi
232 232
233 exeinto "${udev_libexec_dir}" 233 exeinto "${udev_libexec_dir}"
234 newexe "${FILESDIR}"/net-130-r1.sh net.sh || die "net.sh not installed properly" 234 newexe "${WORKDIR}"/net-130-r1.sh net.sh || die "net.sh not installed properly"
235 newexe "${FILESDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \ 235 newexe "${WORKDIR}"/move_tmp_persistent_rules-112-r1.sh move_tmp_persistent_rules.sh \
236 || die "move_tmp_persistent_rules.sh not installed properly" 236 || die "move_tmp_persistent_rules.sh not installed properly"
237 newexe "${FILESDIR}"/write_root_link_rule-125 write_root_link_rule \ 237 newexe "${WORKDIR}"/write_root_link_rule-125 write_root_link_rule \
238 || die "write_root_link_rule not installed properly" 238 || die "write_root_link_rule not installed properly"
239 239
240 doexe "${scriptdir}"/shell-compat-KV.sh \ 240 doexe "${scriptdir}"/shell-compat-KV.sh \
241 || die "shell-compat.sh not installed properly" 241 || die "shell-compat.sh not installed properly"
242 doexe "${scriptdir}"/shell-compat-addon.sh \ 242 doexe "${scriptdir}"/shell-compat-addon.sh \
293 # config file for init-script and start-addon 293 # config file for init-script and start-addon
294 newconfd "${scriptdir}/udev.confd" udev \ 294 newconfd "${scriptdir}/udev.confd" udev \
295 || die "config file not installed properly" 295 || die "config file not installed properly"
296 296
297 insinto /etc/modprobe.d 297 insinto /etc/modprobe.d
298 newins "${FILESDIR}"/blacklist-146 blacklist.conf 298 newins "${WORKDIR}"/blacklist-146 blacklist.conf
299 newins "${FILESDIR}"/pnp-aliases pnp-aliases.conf 299 newins "${WORKDIR}"/pnp-aliases pnp-aliases.conf
300 300
301 # convert /lib/udev to real used dir 301 # convert /lib/udev to real used dir
302 sed_libexec_dir \ 302 sed_libexec_dir \
303 "${D}/$(get_libdir)"/rcscripts/addons/*.sh \ 303 "${D}/$(get_libdir)"/rcscripts/addons/*.sh \
304 "${D}/${udev_libexec_dir}"/write_root_link_rule \ 304 "${D}/${udev_libexec_dir}"/write_root_link_rule \

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20