Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 297411 Details for
Bug 396557
sys-power/upsmon-usb (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
upsmon-usb-9999.ebuild
upsmon-usb-9999.ebuild (text/plain), 1.62 KB, created by
Alex Efros
on 2011-12-30 22:32:17 UTC
(
hide
)
Description:
upsmon-usb-9999.ebuild
Filename:
MIME Type:
Creator:
Alex Efros
Created:
2011-12-30 22:32:17 UTC
Size:
1.62 KB
patch
obsolete
># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI=4 > >inherit java-pkg-2 linux-info > >DESCRIPTION="Powercom UPS monitoring (USB)" >HOMEPAGE="http://www.pcm.ru/support/download/soft/" >SRC_URI="http://www.pcm.ru/data/download/public/soft/upsmon_for_linux.rar" > >SLOT="0" >KEYWORDS="x86" >IUSE="" > >RDEPEND=">=virtual/jre-1.6" >DEPEND="" > >S="${WORKDIR}" > >CONFIG_CHECK="~USB_HIDDEV" >ERROR_USB_HIDDEV=" >You need to turn on the '/dev/hiddev raw HID device support' >option under 'HID Devices' in order to use upsmon-usb >" > >pkg_setup() { > linux-info_pkg_setup > java-pkg-2_pkg_setup >} > >src_prepare() { > tar xf UPSMON_USB_for_Linux.tar >} > >src_install() { > java-pkg_sointo /usr/$(get_libdir) > java-pkg_doso Components/*.so > java-pkg_dojar Components/*.jar > dohtml -r ReadMe_* > dodir /opt > mv "${S}/UPSMON_USB_for_Linux" "${D}/opt/${PN}" || die > java-pkg_addcp "/opt/${PN}" > java-pkg_addcp "/opt/${PN}/EXT" > java-pkg_dolauncher upsmon_service --main UPSMON --pwd "/opt/${PN}" > java-pkg_dolauncher upsmon_display --main Display --pwd "/opt/${PN}/EXT" > > doenvd "${FILESDIR}/20${PN}" >} > >pkg_postinst() { > if [ $(ls /proc/bus/usb/ | wc -l) == 0 ]; then > ewarn "UPSMON require /proc/bus/usb/ which can be provided in two ways:" > ewarn "a) Using udev." > ewarn " Add this to /etc/fstab and run 'mount /proc/bus/usb':" > ewarn " /dev/bus/usb /proc/bus/usb none bind 0 0" > ewarn "b) Using usbfs (DEPRECATED)." > ewarn " Make sure CONFIG_USB_DEVICEFS enabled in kernel." > ewarn " Add this to /etc/fstab and run 'mount /proc/bus/usb':" > ewarn " none /proc/bus/usb usbfs defaults 0 0" > fi >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 396557
: 297411 |
297413