Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111346 - this is an ebuild for the mgeups-psp program used for mge products
Summary: this is an ebuild for the mgeups-psp program used for mge products
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: http://pqsoftware.eaton.com/explore/e...
Whiteboard:
Keywords: EBUILD
Depends on: 232855
Blocks:
  Show dependency tree
 
Reported: 2005-11-03 04:23 UTC by eric barons
Modified: 2018-06-07 18:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for mgeups-psp-3.0.0 (mgeups-psp-3.0.0.ebuild,1.41 KB, text/plain)
2005-11-03 04:25 UTC, eric barons
Details
ebuild for mgeups-psp-3.0.0 (mgeups-psp-3.0.0.ebuild,1.41 KB, text/plain)
2005-11-03 05:33 UTC, eric barons
Details
ebuild mgeups-psp-3.0.0 (v3) (mgeups-psp-3.0.0.ebuild,1.62 KB, text/plain)
2005-11-03 23:20 UTC, eric barons
Details
ebuild mgeups-psp-3.0.0 (v4 with good english) (mgeups-psp-3.0.0.ebuild,1.62 KB, text/plain)
2005-11-04 09:06 UTC, eric barons
Details
ebuild mgeups-psp-3.0.0 (v4 with good english) (mgeups-psp-3.0.0.ebuild,1.62 KB, text/plain)
2005-11-04 09:06 UTC, eric barons
Details
ebuild mgeups-psp-3.0.1 (mgeups-psp-3.0.1.ebuild,1.62 KB, text/plain)
2006-02-03 08:46 UTC, eric barons
Details
error on gcc-4.1 compilation (~amd64) (mgeups-psp-gcc41.txt,2.21 KB, text/plain)
2006-03-30 11:49 UTC, Didier Link
Details
patch for gcc-4 compilation (mgeups-psp-gcc4.diff,596 bytes, patch)
2006-03-31 12:32 UTC, Didier Link
Details | Diff
patch to the ebuild (diff-patch-gcc4.diff,546 bytes, patch)
2006-03-31 12:33 UTC, Didier Link
Details | Diff
ebuild with epatch include for use patch (mgeups-psp-3.0.1.ebuild,1.67 KB, text/plain)
2006-10-01 06:26 UTC, eric barons
Details
fix the repertory of nut and libgksuui (mgeups-psp-3.0.1.ebuild,1.66 KB, text/plain)
2006-10-01 06:55 UTC, eric barons
Details
syntax error (mgeups-psp-3.0.1.ebuild,1.66 KB, text/plain)
2006-10-01 07:26 UTC, eric barons
Details
return of the dependency libgksuui (mgeups-psp-3.0.1.ebuild,1.67 KB, text/plain)
2006-10-01 07:35 UTC, eric barons
Details
old ebuild for ligksuui (libgksuui-1.0.7.ebuild,750 bytes, text/plain)
2006-10-01 08:08 UTC, eric barons
Details
mgeups-psp-3.0.2.ebuild (mgeups-psp-3.0.2.ebuild,1.64 KB, text/plain)
2007-03-25 19:53 UTC, eric barons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eric barons 2005-11-03 04:23:22 UTC
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.
Comment 1 eric barons 2005-11-03 04:25:54 UTC
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
Comment 2 eric barons 2005-11-03 04:28:52 UTC
(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 
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-03 04:51:49 UTC
- 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
Comment 4 eric barons 2005-11-03 04:56:43 UTC
(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
Comment 5 eric barons 2005-11-03 05:33:33 UTC
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
Comment 6 eric barons 2005-11-03 23:20:56 UTC
Created attachment 72088 [details]
ebuild mgeups-psp-3.0.0 (v3)

Correct wrong permissions on files in /etc/nut if guid was change.
Comment 7 eric barons 2005-11-04 09:06:32 UTC
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 :-)
Comment 8 eric barons 2005-11-04 09:06:52 UTC
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 :-)
Comment 9 eric barons 2006-02-03 08:46:06 UTC
Created attachment 78808 [details]
ebuild mgeups-psp-3.0.1

new version 3.0.1
Comment 10 Didier Link 2006-03-30 11:35:21 UTC
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.

Comment 11 Didier Link 2006-03-30 11:49:47 UTC
Created attachment 83452 [details]
error on gcc-4.1 compilation (~amd64)
Comment 12 Didier Link 2006-03-31 12:31:28 UTC
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 !

Comment 13 Didier Link 2006-03-31 12:32:32 UTC
Created attachment 83553 [details, diff]
patch for gcc-4 compilation
Comment 14 Didier Link 2006-03-31 12:33:14 UTC
Created attachment 83554 [details, diff]
patch to the ebuild
Comment 15 Animatrix 2006-09-08 08:40:48 UTC
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)
Comment 16 eric barons 2006-10-01 06:26:52 UTC
Created attachment 98518 [details]
ebuild with epatch include for use patch
Comment 17 eric barons 2006-10-01 06:55:11 UTC
Created attachment 98520 [details]
fix the repertory of nut and libgksuui
Comment 18 eric barons 2006-10-01 06:57:40 UTC
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/)."
>}
>
>
Comment 19 eric barons 2006-10-01 07:26:45 UTC
Created attachment 98521 [details]
syntax error
Comment 20 eric barons 2006-10-01 07:35:52 UTC
Created attachment 98522 [details]
return of the dependency libgksuui
Comment 21 eric barons 2006-10-01 07:36:34 UTC
(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.
Comment 22 eric barons 2006-10-01 08:08:48 UTC
Created attachment 98523 [details]
old ebuild for ligksuui 

http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libgksuui/?hideattic=0
Comment 23 eric barons 2006-10-01 08:11:04 UTC
Comment on attachment 98522 [details]
return of the dependency libgksuui 

libgksuui don't exist anymore in portage
Comment 24 Animatrix 2006-10-01 09:19:12 UTC
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
Comment 25 eric barons 2006-10-01 11:50:02 UTC
(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.

++
Comment 26 eric barons 2007-03-25 19:53:55 UTC
Created attachment 114409 [details]
mgeups-psp-3.0.2.ebuild

New ebuild for version dump. libggksu and libgksuui are not needed anymore
Comment 27 eric barons 2007-05-16 19:06:31 UTC
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
Comment 28 Marek Szuba archtester gentoo-dev 2018-05-15 15:53:10 UTC
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.