From 09dfd4bde35dfad2176e72caccec2ba393800a63 Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Sat, 2 Dec 2006 12:04:47 +0000 Subject: [PATCH] Solve sandbox-violation, fix from dsd, Bug #156807. Starting irexec as user is now possible, suggested by Sebastian Kemper . Package-Manager: portage-2.1.2_rc2-r3 --- app-misc/lirc/Manifest | 48 ++-- app-misc/lirc/files/digest-lirc-0.8.0-r7 | 3 - app-misc/lirc/lirc-0.8.0-r7.ebuild | 315 ----------------------- 3 files changed, 26 insertions(+), 340 deletions(-) delete mode 100644 app-misc/lirc/files/digest-lirc-0.8.0-r7 delete mode 100644 app-misc/lirc/lirc-0.8.0-r7.ebuild diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest index 3fdda34bc769..85326ae1d4e1 100644 --- a/app-misc/lirc/Manifest +++ b/app-misc/lirc/Manifest @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX irexec-confd 55 RMD160 fbd0bf63a01a7e5ecb97778507eb81de4b98f85d SHA1 882c8ae5398268f47bbab0e6236a19d8d1471bd4 SHA256 dea4c60210c06ce7e7c77c2f45a541f26645c019d8864d2cd8cf5944260e25ee -MD5 fad86b1ae238205e38bccb79355e5fa4 files/irexec-confd 55 -RMD160 fbd0bf63a01a7e5ecb97778507eb81de4b98f85d files/irexec-confd 55 -SHA256 dea4c60210c06ce7e7c77c2f45a541f26645c019d8864d2cd8cf5944260e25ee files/irexec-confd 55 -AUX irexec-initd 475 RMD160 789e999e36eea971b5b1a5170c3dbfe94ee0ab08 SHA1 4fc167cfd7a66bd1d85422f7694ec9392f1bf926 SHA256 91293d22f2b0fa55255910c0a3717d96afc6c1c23c44244f786ca83e9245ab6f -MD5 ce27692c35bb78ca3acf19616674f579 files/irexec-initd 475 -RMD160 789e999e36eea971b5b1a5170c3dbfe94ee0ab08 files/irexec-initd 475 -SHA256 91293d22f2b0fa55255910c0a3717d96afc6c1c23c44244f786ca83e9245ab6f files/irexec-initd 475 +AUX irexec-confd 280 RMD160 f669c7c98b9d7cac2010284ab6068d29d47ec811 SHA1 c6decc19a273d98d451de137a2ffbe16d5df28ae SHA256 c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79 +MD5 6abeb719007a883ff202cd75ffe922e8 files/irexec-confd 280 +RMD160 f669c7c98b9d7cac2010284ab6068d29d47ec811 files/irexec-confd 280 +SHA256 c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79 files/irexec-confd 280 +AUX irexec-initd 801 RMD160 c7ee3a2fef1398ceddddff0804155cf034238101 SHA1 ce94ba8e87dbfc1ea11fb1fb9267affcdc22bd34 SHA256 fe088a393a537c2c7112ebb763d6abdc08b303894c72354498dfd00df1052af1 +MD5 2a0519297d7fbf26201b45a8838cfc51 files/irexec-initd 801 +RMD160 c7ee3a2fef1398ceddddff0804155cf034238101 files/irexec-initd 801 +SHA256 fe088a393a537c2c7112ebb763d6abdc08b303894c72354498dfd00df1052af1 files/irexec-initd 801 AUX lirc-0.8.0-conf-pixelview_bt878.diff 378 RMD160 e70daba96eb7097b20b73807a76ebd562ebb09dc SHA1 96b1976089c7a4e63d9435fb4f8bf8a19c53f4c6 SHA256 343c473210ad6fed27df49d8a93ced7e91fe0d5fc8d652b45b1ef7a7c3125ed6 MD5 a9e10dde8092a4d5fa79639a923b7a5c files/lirc-0.8.0-conf-pixelview_bt878.diff 378 RMD160 e70daba96eb7097b20b73807a76ebd562ebb09dc files/lirc-0.8.0-conf-pixelview_bt878.diff 378 @@ -37,6 +37,10 @@ AUX lirc-0.8.0-kernel-2.6.19.diff 7125 RMD160 dea341fc0e252a45a7a30c93419d3f06c3 MD5 a3ac79feacf017757b0540dabafb2b83 files/lirc-0.8.0-kernel-2.6.19.diff 7125 RMD160 dea341fc0e252a45a7a30c93419d3f06c390bdf0 files/lirc-0.8.0-kernel-2.6.19.diff 7125 SHA256 481c18e3ce2cd6b89536dd00ce61522430072e7222f4cb02cb207dfab660286b files/lirc-0.8.0-kernel-2.6.19.diff 7125 +AUX lirc-0.8.0-sandbox-fix.diff 1343 RMD160 1ea369263f2df8eeff8b69c3155d775d24202382 SHA1 da3ab7eecd1ccaa49462b19c6dc04088f2eb190c SHA256 ed1b25216fff295944d9261f3c345fe0185c916791cff83570cbbb07fc927456 +MD5 ff97d86d97bacbcae3416a576953a897 files/lirc-0.8.0-sandbox-fix.diff 1343 +RMD160 1ea369263f2df8eeff8b69c3155d775d24202382 files/lirc-0.8.0-sandbox-fix.diff 1343 +SHA256 ed1b25216fff295944d9261f3c345fe0185c916791cff83570cbbb07fc927456 files/lirc-0.8.0-sandbox-fix.diff 1343 AUX lirc-0.8.0-too-many-connections-overflow.diff 822 RMD160 434889663b6839042b5d17722bd3c86505d118eb SHA1 6d940401cb6fa07502e78b50712d8482d85363f1 SHA256 1f634d4f021f11f053cae9c7951382ea0c15871756ffa00fe155b2cc504496d6 MD5 20f427ebc2421122cfd46388b01b8e61 files/lirc-0.8.0-too-many-connections-overflow.diff 822 RMD160 434889663b6839042b5d17722bd3c86505d118eb files/lirc-0.8.0-too-many-connections-overflow.diff 822 @@ -94,14 +98,14 @@ EBUILD lirc-0.8.0-r5.ebuild 7881 RMD160 0743726667cd2a354ab22d288b65a3e45909c99d MD5 f3e37054e85b537563f1e226614de477 lirc-0.8.0-r5.ebuild 7881 RMD160 0743726667cd2a354ab22d288b65a3e45909c99d lirc-0.8.0-r5.ebuild 7881 SHA256 d78cdb1998399fd4cedd8b38460239a2e140fdaf56d218bb36d41ffc57caefdb lirc-0.8.0-r5.ebuild 7881 -EBUILD lirc-0.8.0-r7.ebuild 8322 RMD160 1c8b0e99d761d2dd3a4b7ebac1df2a917a0de753 SHA1 6c3c132600b36799ad0e48e0cc8362e91776a4a0 SHA256 8aee1c4f522c5a8083dc1933f5d44ea7d51ef9b6b9386328411ddcf53bd778c7 -MD5 f279d657c4e4066367b94a6333d2a48e lirc-0.8.0-r7.ebuild 8322 -RMD160 1c8b0e99d761d2dd3a4b7ebac1df2a917a0de753 lirc-0.8.0-r7.ebuild 8322 -SHA256 8aee1c4f522c5a8083dc1933f5d44ea7d51ef9b6b9386328411ddcf53bd778c7 lirc-0.8.0-r7.ebuild 8322 -MISC ChangeLog 18352 RMD160 bbba845ddb529bc3970ff7bef0152e9a24a9421e SHA1 1eafabacf9687475bf855af623a229d45159d65a SHA256 f5552de9dd9e79ced132cf3b6c6f57fe066549f0837c58584a3eb02df04be3df -MD5 5830d97641eb17c20b7bbb8b643e9f4b ChangeLog 18352 -RMD160 bbba845ddb529bc3970ff7bef0152e9a24a9421e ChangeLog 18352 -SHA256 f5552de9dd9e79ced132cf3b6c6f57fe066549f0837c58584a3eb02df04be3df ChangeLog 18352 +EBUILD lirc-0.8.0-r8.ebuild 8454 RMD160 dcfb1cb3c1cb0a2b8d2c89faa99ffa5a92c4a540 SHA1 537e2b057eeab6f4f46ee4c38c7e79fccda8caae SHA256 179b08835abeeed076d99be0b491fb434d8a0d6ae348b93690c030d44325b4e8 +MD5 e768fb069f1ed44caee5ac99ab4e75d4 lirc-0.8.0-r8.ebuild 8454 +RMD160 dcfb1cb3c1cb0a2b8d2c89faa99ffa5a92c4a540 lirc-0.8.0-r8.ebuild 8454 +SHA256 179b08835abeeed076d99be0b491fb434d8a0d6ae348b93690c030d44325b4e8 lirc-0.8.0-r8.ebuild 8454 +MISC ChangeLog 18713 RMD160 acf1c9049402d1cb87677f6894b3d6343f126f73 SHA1 671e3a5116e5b58e1c1680b6d6ebedc48f6124cc SHA256 a28d72ab42b1b4ef96e1d7a5dff2be208785fe8db9e7c1348ee3830f74878912 +MD5 d5f648d30e0af3a779c531ed04612cb3 ChangeLog 18713 +RMD160 acf1c9049402d1cb87677f6894b3d6343f126f73 ChangeLog 18713 +SHA256 a28d72ab42b1b4ef96e1d7a5dff2be208785fe8db9e7c1348ee3830f74878912 ChangeLog 18713 MISC metadata.xml 252 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 SHA1 9fdd5da8466c39d7ff3b40412c4dfa77dd2446b7 SHA256 4e8b5c34b3e50b781a18c9be9e6199442f1b0299e00d66ba35024f8b743b9c32 MD5 abf8a9c4b96bc3bb50f04a48349dae34 metadata.xml 252 RMD160 e1c170c221f61fa9787a04feac90fab777639d88 metadata.xml 252 @@ -118,13 +122,13 @@ SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/di MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r5 235 RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r5 235 SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r5 235 -MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r7 235 -RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r7 235 -SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r7 235 +MD5 17322bfb3604e1c6663bbc5a6fb80e96 files/digest-lirc-0.8.0-r8 235 +RMD160 efdbebbf9c02e761392c245f3ee1df0938778785 files/digest-lirc-0.8.0-r8 235 +SHA256 e24d5fc3d5ed85823419cd88ebc5dfa9fd7fc924e746daf282885564aa84e8cc files/digest-lirc-0.8.0-r8 235 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) -iD8DBQFFcD3at2vP6XvVdOcRAgc0AJwM2q+YdVboR8fM2zlXDZyV4zAYXgCgzSXf -i7jHWrceVNNUEhV8KPz69iI= -=qov5 +iD8DBQFFcWvat2vP6XvVdOcRAn6aAKCi9IOIwiL/DpXoaCgJZ8fA/uoCZACeJqs2 ++XzkglM+tGkXpOi4TwI5ohM= +=88xl -----END PGP SIGNATURE----- diff --git a/app-misc/lirc/files/digest-lirc-0.8.0-r7 b/app-misc/lirc/files/digest-lirc-0.8.0-r7 deleted file mode 100644 index 403b24365ee4..000000000000 --- a/app-misc/lirc/files/digest-lirc-0.8.0-r7 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 0bf28bf82c7766a462f90927b6bf3af1 lirc-0.8.0.tar.bz2 514359 -RMD160 045c95754820e77891bd0b3baa269ad3f04cba8c lirc-0.8.0.tar.bz2 514359 -SHA256 cc8d7fb41a045278680ea530cffaf05181977f41244b9f0ed64075cd7630b5d2 lirc-0.8.0.tar.bz2 514359 diff --git a/app-misc/lirc/lirc-0.8.0-r7.ebuild b/app-misc/lirc/lirc-0.8.0-r7.ebuild deleted file mode 100644 index dc1c7082173f..000000000000 --- a/app-misc/lirc/lirc-0.8.0-r7.ebuild +++ /dev/null @@ -1,315 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/lirc-0.8.0-r7.ebuild,v 1.1 2006/12/01 14:35:19 zzam Exp $ - -WANT_AUTOMAKE="latest" -WANT_AUTOCONF="latest" - -inherit eutils linux-mod flag-o-matic autotools - -DESCRIPTION="LIRC is a package that allows you to decode and send infra-red \ - signals of many (but not all) commonly used remote controls." -HOMEPAGE="http://www.lirc.org" - -SLOT="0" -LICENSE="GPL-2" -IUSE="debug doc X hardware-carrier transmitter udev" -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" -SRC_URI="mirror://sourceforge/lirc/${P/_pre/pre}.tar.bz2" - -S=${WORKDIR}/${P/_pre/pre} - - -IUSE_LIRC_DEVICES_DIRECT=" - all userspace act200l act220l - adaptec alsa_usb animax atilibusb - atiusb audio audio_alsa avermedia avermedia_vdomate - avermedia98 bestbuy bestbuy2 breakoutbox - bte bw6130 caraca chronos cmdir com1 com2 com3 com4 - cph06x creative creative_infracd - devinput digimatrix dsp dvico ea65 - exaudio flyvideo gvbctv5pci hauppauge - hauppauge_dvb hercules_smarttv_stereo - igorplugusb imon imon_pad imon_rsc - irdeo irdeo_remote irman irreal it87 - knc_one kworld leadtek_0007 leadtek_0010 - leadtek_pvr2000 livedrive_midi - livedrive_seq logitech lpt1 lpt2 mceusb - mceusb2 mediafocusI mouseremote - mouseremote_ps2 mp3anywhere nslu2 - packard_bell parallel pcmak pcmak_usb - pctv pixelview_bt878 pixelview_pak - pixelview_pro provideo realmagic - remotemaster sa1100 sasem serial - silitek sir slinke streamzap tekram - tekram_bt829 tira tvbox udp uirt2 - uirt2_raw" - -IUSE_LIRC_DEVICES_SPECIAL=" - imon_pad2keys serial_igor_cesko - remote_wonder_plus xboxusb usbirboy inputlirc" - -IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}" - - - -RDEPEND="virtual/libc - sys-apps/coreutils - X? ( || ( ( x11-libs/libX11 - x11-libs/libSM - x11-libs/libICE ) - virtual/x11 ) ) - lirc_devices_alsa_usb? ( media-libs/alsa-lib ) - lirc_devices_audio? ( media-libs/portaudio ) - lirc_devices_irman? ( media-libs/libirman )" - - -#device-driver which use libusb -LIBUSB_USED_BY_DEV=" - all atiusb sasem igorplugusb imon imon_pad imon_pad2keys - imon_rsc streamzap mceusb mceusb2 xboxusb" - -for dev in ${LIBUSB_USED_BY_DEV}; do - RDEPEND="${RDEPEND} lirc_devices_${dev}? ( dev-libs/libusb )" -done - -# adding only compile-time depends -DEPEND="${RDEPEND} - virtual/linux-sources" - - -# adding only run-time depends -RDEPEND="${RDEPEND} - lirc_devices_usbirboy? ( app-misc/usbirboy ) - lirc_devices_inputlirc? ( app-misc/inputlircd )" - - - -# add all devices to IUSE -for dev in ${IUSE_LIRC_DEVICES}; do - IUSE="${IUSE} lirc_devices_${dev}" -done - - -add_device() { - : $(( lirc_device_count++ )) - - if [[ ${lirc_device_count} -eq 2 ]]; then - ewarn - ewarn "When selecting multiple devices for lirc to be supported," - ewarn "it can not be garanteed that the drivers play nice together." - ewarn - ewarn "If this is not intended, then abort emerge now with Ctrl-C," - ewarn "Set LIRC_DEVICES and restart emerge." - ewarn - epause - fi - - - local dev="${1}" - local desc="device ${dev}" - if [[ -n "${2}" ]]; then - desc="${2}" - fi - - einfo "Compiling support for ${desc}" - MY_OPTS="${MY_OPTS} --with-driver=${dev}" -} - -pkg_setup() { - linux-mod_pkg_setup - - # set default configure options - MY_OPTS="" - lirc_driver_count=0 - - LIRC_DRIVER_DEVICE="/dev/lirc/0" - - local dev - - if use lirc_devices_all; then - # compile in drivers for a lot of devices - add_device all "a lot of devices" - else - # compile in only requested drivers - for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do - if use lirc_devices_${dev}; then - add_device ${dev} - fi - done - - if use lirc_devices_remote_wonder_plus; then - add_device atiusb "device Remote Wonder Plus (atiusb-based)" - fi - - if use lirc_devices_serial_igor_cesko; then - add_device serial "serial with Igor Cesko design" - MY_OPTS="${MY_OPTS} --with-igor" - fi - - if use lirc_devices_imon_pad2keys; then - add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" - fi - - if use lirc_devices_xboxusb; then - add_device atiusb "device xboxusb" - NEED_XBOX_PATCH=1 - fi - - if use lirc_devices_usbirboy; then - add_device userspace "device usbirboy" - LIRC_DRIVER_DEVICE="/dev/usbirboy" - fi - - if [[ "${MY_OPTS}" == "" ]]; then - if [[ "${PROFILE_ARCH}" == "xbox" ]]; then - # on xbox: use special driver - add_device atiusb "device xboxusb" - NEED_XBOX_PATCH=1 - else - # no driver requested - einfo - einfo "Compiling only the lirc-applications, but no drivers." - einfo "Enable drivers with LIRC_DEVICES if you need them." - MY_OPTS="--with-driver=userspace" - fi - fi - fi - - use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" - use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" - - - if [[ -n "${LIRC_OPTS}" ]] ; then - ewarn - ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." - ewarn - ewarn "Please use LIRC_DEVICES from now on." - ewarn "e.g. LIRC_DEVICES=\"serial sir\"" - ewarn - ewarn "Flags are now set per use-flags." - ewarn "e.g. transmitter, hardware-carrier" - - local opt - local unsupported_opts="" - - # test for allowed options for LIRC_OPTS - for opt in ${LIRC_OPTS}; do - case ${opt} in - --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) - MY_OPTS="${MY_OPTS} ${opt}" - ;; - *) - unsupported_opts="${unsupported_opts} ${opt}" - ;; - esac - done - if [[ -n ${unsupported_opts} ]]; then - ewarn "These options are no longer allowed to be set" - ewarn "with LIRC_OPTS: ${unsupported_opts}" - die "LIRC_OPTS is no longer recommended." - fi - fi - - - # Setup parameter for linux-mod.eclass - MODULE_NAMES="lirc(misc:${S})" - BUILD_TARGETS="all" - - ECONF_PARAMS=" --localstatedir=/var - --with-syslog=LOG_DAEMON - --enable-sandboxed - --with-kerneldir=${KV_DIR} - --with-moduledir=/lib/modules/${KV_FULL}/misc - $(use_enable debug) - $(use_with X) - ${MY_OPTS}" - - einfo - einfo "lirc-configure-opts: ${MY_OPTS}" - einfo "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" - - filter-flags -Wl,-O1 -} - -src_unpack() { - unpack ${A} - cd ${S} - - # Apply kernel compatibility patches - epatch ${FILESDIR}/${P}-kernel-2.6.16.diff - epatch ${FILESDIR}/${P}-kernel-2.6.17.diff - epatch ${FILESDIR}/${P}-kernel-2.6.18.diff - epatch ${FILESDIR}/${P}-kernel-2.6.19.diff - - # Fix an overflow when opening too many client-connections - epatch ${FILESDIR}/${P}-too-many-connections-overflow.diff - - # Work with udev-094 and greater - epatch ${FILESDIR}/${PN}-udev-094.diff - - # Bugfix for i2c-driver in combination with newer ivtv and Kernel 2.6.17 - epatch ${FILESDIR}/${P}-i2c-kernel-2.6.17.diff - - # Wrong config-filename for LIRC_DEVICES=pixelview_bt878 - epatch ${FILESDIR}/${P}-conf-pixelview_bt878.diff - - # Apply patches needed for some special device-types - [[ ${NEED_XBOX_PATCH:-0} == 1 ]] && epatch ${FILESDIR}/lirc-0.8.0pre4-xbox-remote.diff - use lirc_devices_imon_pad2keys && epatch ${FILESDIR}/${P}-imon-pad2keys.patch - use lirc_devices_remote_wonder_plus && epatch ${FILESDIR}/lirc-remotewonderplus.patch - - # remove parallel driver on SMP systems - if linux_chkconfig_present SMP ; then - sed -i -e "s:lirc_parallel::" drivers/Makefile.in - fi - - # respect CFLAGS - sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.in - - # setting default device-node - sed -i -e '/#define LIRC_DRIVER_DEVICE/d' acconfig.h - echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h - - eautoreconf || die "autoreconf failed" -} - - -src_install() { - make DESTDIR=${D} install || die "make install failed" - - newinitd ${FILESDIR}/lircd lircd - newinitd ${FILESDIR}/lircmd lircmd - newconfd ${FILESDIR}/lircd.conf lircd - - insinto /etc/modules.d/ - newins ${FILESDIR}/modulesd.lirc lirc - - newinitd ${FILESDIR}/irexec-initd irexec - newconfd ${FILESDIR}/irexec-confd irexec - - if use udev; then - insinto /etc/udev/rules.d/; - newins ${S}/contrib/lirc.rules 10-lirc.rules - fi - - if use doc ; then - dohtml doc/html/*.html - insinto /usr/share/doc/${PF}/images - doins doc/images/* - fi -} - -pkg_preinst() { - linux-mod_pkg_preinst - [[ -f "${ROOT}/etc/lircd.conf" ]] && cp ${ROOT}/etc/lircd.conf ${IMAGE}/etc -} - -pkg_postinst() { - linux-mod_pkg_postinst - echo - einfo "The lirc Linux Infrared Remote Control Package has been" - einfo "merged, please read the documentation at http://www.lirc.org" - echo -} - -- 2.26.2