This program was packaged for debian and other rpm based distributions but not for gentoo. But the gentoo logo was present on the web site :-). I made this ebuild. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 72003 [details] ebuild for mgeups-psp-3.0.0 he needs nut-2.0.0 i submit the ebuild on the good section
(In reply to comment #1) > Created an attachment (id=72003) [edit] > ebuild for mgeups-psp-3.0.0 > > he needs nut-2.0.0 i submit the ebuild on the good section It's 2.0.2 and not 2.0.0 http://bugs.gentoo.org/show_bug.cgi?id=62745
- there's no reason to inherit fixheadtails - use make DESTDIR="${D}" install instead einstall if possible - use the enewgroup function (provided by eutils.eclass) instead groupadd
(In reply to comment #3) > - there's no reason to inherit fixheadtails ok > - use make DESTDIR="${D}" install instead einstall if possible i look on this > - use the enewgroup function (provided by eutils.eclass) instead groupadd ok
Created attachment 72011 [details] ebuild for mgeups-psp-3.0.0 modifications: - inherit modified - groupadd was moved for enewgroup - einstall was modified by make DESTDIR="${D}" install
Created attachment 72088 [details] ebuild mgeups-psp-3.0.0 (v3) Correct wrong permissions on files in /etc/nut if guid was change.
Created attachment 72120 [details] ebuild mgeups-psp-3.0.0 (v4 with good english) - thanks to MrTom who write correct einfo and ewarn please excuse me for my bad english i'm french :-)
Created attachment 72121 [details] ebuild mgeups-psp-3.0.0 (v4 with good english) - thanks to MrTom who write correct einfo and ewarn please excuse me for my bad english i'm french :-)
Created attachment 78808 [details] ebuild mgeups-psp-3.0.1 new version 3.0.1
Keyword ~amd64 added to the ebuild, and it work well !! Warning, don't compile with gcc-4.1 but ok with gcc-3.4.5.
Created attachment 83452 [details] error on gcc-4.1 compilation (~amd64)
So I've made a patch for gcc-4 that work, just one line change in a .h file. The compilation work with gcc-3.4 and 4.1. I attach the patch and a diff for the ebuild. I transmit the patch upstream. Thanks to commit this ebuild in portage tree !
Created attachment 83553 [details, diff] patch for gcc-4 compilation
Created attachment 83554 [details, diff] patch to the ebuild
I try to install Mgeups-psp on my Gentoo, but the configure fails. The error : checking for libusb libs... -L/usr/lib64 -lusb checking for LIBGKSU... configure: error: Package requirements (libgksu1.2 >= 1.2.0) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively you may set the LIBGKSU_CFLAGS and LIBGKSU_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. It seems libgksuui and libgksu aren't installed, but I have them. I have ligksu 1.9.2 and libgksuui 1.0.7. I think the configure doesn't find rights directories. What can I do ? (I use Gentoo 2006.0 on a amd64 system)
Created attachment 98518 [details] ebuild with epatch include for use patch
Created attachment 98520 [details] fix the repertory of nut and libgksuui
Comment on attachment 98520 [details] fix the repertory of nut and libgksuui ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils > >DESCRIPTION="MGE UPS SYSTEMS Personal Solution Pac" >HOMEPAGE="http://www.mgeups.com/products/pdt230/software/sp97/solpaclinux.htm" >SRC_URI="http://opensource.mgeups.com/projects/mgeups-psp/${P}.tar.gz" >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86 ~amd64" >IUSE="" > >RDEPEND=">=sys-power/nut-2.0.2" > >DEPEND="${RDEPEND} >dev-cpp/glibmm >dev-cpp/gtkmm >x11-libs/pango >dev-libs/libsigc++ >x11-libs/libgksu >dev-libs/libusb >dev-util/desktop-file-utils" > > >src_compile() { > epatch ${FILESDIR}/mgeups-psp-gcc4.diff > econf configure || die "could not configure" > emake || die "emake failed" >} > >src_install() { > make DESTDIR="${D}" install || die "install failed" > into /etc > dosym /etc/nut/ /etc/ups >} > >pkg_postinst() { > #add the ups group to the system > enewgroup ups > # this is to ensure that everybody that installed old versions still has > # correct permissions > chown root:ups ${ROOT}/etc/nut/{ups.conf,upsd.conf,upsd.users,upsmon.conf,upssched.conf,wizard.conf} 2>/dev/null > > > ewarn "You need to add the nut user to the ups group with the command > gpasswd -a nut ups. Don't forget to add the nut user to the tty group." > > einfo "Then you have to start the nut'drivers with these commands: upsdrvctl start, > upsd and upsmon. To start them automitacally on boot time, add them to /etc/conf.d/local.start. > The first time you launch Personal Solution Pac, do it from a terminal > with the command : psp & (root access required).The next time, you can start it > by adding the command on your .xinitrc or window manager startup script (by example ~/.kde/Autostart/)." >} > >
Created attachment 98521 [details] syntax error
Created attachment 98522 [details] return of the dependency libgksuui
(In reply to comment #20) > Created an attachment (id=98522) [edit] > return of tehe dependency libgksuui but don't exist anymore on portage > checking for LIBGKSUUI... configure: error: Package requirements (libgksuui1.0 >= 1.0.0) were not met.
Created attachment 98523 [details] old ebuild for ligksuui http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libgksuui/?hideattic=0
Comment on attachment 98522 [details] return of the dependency libgksuui libgksuui don't exist anymore in portage
Hello, What have I to do use to resolve my problem ? Because with all new ebuilds and patch, I don't know what to do. Thanks
(In reply to comment #24) > Hello, > > What have I to do use to resolve my problem ? > Because with all new ebuilds and patch, I don't know what to do. > > Thanks > I don't know it works on x86, sorry have a look on your path. ++
Created attachment 114409 [details] mgeups-psp-3.0.2.ebuild New ebuild for version dump. libggksu and libgksuui are not needed anymore
psp don't work wit nut-2.0.5-r2 upsd can't bind tcp port he said it's already in use (3495),and psp don't found the machine. return to nut-2.0.5-r1 solve the problem
mgeups-psp may or may not still be available from somewhere on the Eaton Web site but I strongly suspect it might have fallen under "support for legacy UPSes has been discontinued", which is something I saw there somewhere. Anyone out there with a UPS requiring this software interested in tracking its modern equivalent down and getting it into the tree, assuming it isn't there yet? If not, I will close this bug as WONTFIX in 30 days.