Project

General

Profile

Actions

Bug #192

closed

apcupsd pkgsrc package install is slightly broken

Added by mark.r.cullen over 18 years ago. Updated about 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I've been on to the maintainer and he says to report it to DF people.

"Well, I tested with both pkgsrc-current (updated today) and pkgsrc-2006Q1,
in both cases the example script got installed in /usr/pkg/share/examples.
So it looks like it's a DF-specific problem ...

The package's makefile itself should probably not set RCD_SCRIPT_SRC
to ${WRKSRC}/distributions/netbsd/apcupsd for non-netbsd systems,
but it looks like the configure script would need some adjystements as
well."

The problem: the rc.d script doesn't seem to get installed.


=========================================================================== ===========================================================================
The following files should be created for apcupsd-3.8.6nb5:
/etc/rc.d/apcupsd (m=0755)

===========================================================================
===> Please note the following:

===========================================================================
$NetBSD: MESSAGE,v 1.1 2001/10/31 22:52:51 zuntum Exp $

NOTE: With most APC cables you must put a "local" flag in /etc/ttys for
the port you connect your UPS to, and run "ttyflags -a" to turn it
on the first time.

for complete documentation, see the html docs in
file:///usr/pkg/share/doc/html/apcupsd

===========================================================================

ls: /usr/pkg/share/examples/rc.d/apcupsd: No such file or directory
===> Registering installation for apcupsd-3.8.6nb5
pkg_create: can't stat `/usr/pkg/share/examples/rc.d/apcupsd'
apcupsd-3.8.6nb5 requires installed package gettext-lib-0.14.5
===> Cleaning for apcupsd-3.8.6nb5
===> Cleaning for libtool-base-1.5.22nb3
===> Cleaning for gettext-lib-0.14.5
===> Cleaning for gettext-tools-0.14.5
===> Cleaning for gmake-3.81
---

I've got the full build log if it's needed, and can provide any other info!

Anyone willing to take a quick look at this one? I don't have a clue :-)

Actions #1

Updated by joerg over 18 years ago

On Wed, Jun 07, 2006 at 06:49:14PM +0100, Mark Cullen wrote:

I've been on to the maintainer and he says to report it to DF people.

As far I personally tried apcupsd, the old version was unusuable for me.
Never got around to test the new version for USB UPS though. I still
have it around though.

Joerg

Actions #2

Updated by mark.r.cullen over 18 years ago

wrote:

On Wed, Jun 07, 2006 at 06:49:14PM +0100, Mark Cullen wrote:

I've been on to the maintainer and he says to report it to DF people.

As far I personally tried apcupsd, the old version was unusuable for me.
Never got around to test the new version for USB UPS though. I still
have it around though.

Joerg

Oh, damn. Why was it unusable? Because you use a USB cable?

Looks like I still won't be switching to DF any time soon then, there's
a few packages, which I need, that appear to be semi-broken, and I am
not clever enough to fix them myself :-)

The maintainer said he was going to look in to updating the package
possibly some time soon, by the way.

Actions #3

Updated by joerg over 18 years ago

On Wed, Jun 07, 2006 at 10:57:44PM +0100, Mark Cullen wrote:

wrote:

On Wed, Jun 07, 2006 at 06:49:14PM +0100, Mark Cullen wrote:

I've been on to the maintainer and he says to report it to DF people.

As far I personally tried apcupsd, the old version was unusuable for me.
Never got around to test the new version for USB UPS though. I still
have it around though.

Joerg

Oh, damn. Why was it unusable? Because you use a USB cable?

I have a USB-only UPS. So I have no other option, but a newer version.

Joerg

Actions #4

Updated by wa1ter over 18 years ago

Mark Cullen wrote:
[...][

The problem: the rc.d script doesn't seem to get installed.


=========================================================================== ===========================================================================
The following files should be created for apcupsd-3.8.6nb5:

/etc/rc.d/apcupsd (m=0755)

Well, God knows I'm no expert, but I'm wondering if the script
got installed in /usr/pkg/etc/rc.d/ instead?

When I first started using pkgsrc I tried to keep the FBSD ports
system installed at the same time. I got hopelessly lost in the
details of where the rc and config files should be installed.

I'm still a bit uncertain about these details, actually, even
though I managed to get everything working just by trial-and-
error.

I remember (dimly) that doing a pkgsrc/bootstrap asks you where
you want certain things installed, like the rc.d directory, just
as one example.

Are there gurus out there who can give us the real facts?

Actions #5

Updated by mark.r.cullen over 18 years ago

walt wrote:

Mark Cullen wrote:
[...][

The problem: the rc.d script doesn't seem to get installed.


=========================================================================== ===========================================================================
The following files should be created for apcupsd-3.8.6nb5:

/etc/rc.d/apcupsd (m=0755)

Well, God knows I'm no expert, but I'm wondering if the script
got installed in /usr/pkg/etc/rc.d/ instead?

It wasn't in /usr/pkg/etc/rc.d/, but I assume you meant to say
/etc/rc.d/ there? :-) Well spotted, I never checked there for it! I'll
have a look at that one later.

When I first started using pkgsrc I tried to keep the FBSD ports
system installed at the same time. I got hopelessly lost in the
details of where the rc and config files should be installed.

I'm still a bit uncertain about these details, actually, even
though I managed to get everything working just by trial-and-
error.

It is a little different, but I do like how everything goes under /usr/pkg.

I remember (dimly) that doing a pkgsrc/bootstrap asks you where
you want certain things installed, like the rc.d directory, just
as one example.

It does?! When I ran the bootstrap script it just..... ran! Didn't ask
me any questions :-)

Are there gurus out there who can give us the real facts?

Actions #6

Updated by wa1ter over 18 years ago

On Thu, 8 Jun 2006, Mark Cullen wrote:

walt wrote:

Mark Cullen wrote:
[...][

The problem: the rc.d script doesn't seem to get installed.


=========================================================================== ===========================================================================
The following files should be created for apcupsd-3.8.6nb5:

/etc/rc.d/apcupsd (m=0755)

Well, God knows I'm no expert, but I'm wondering if the script
got installed in /usr/pkg/etc/rc.d/ instead?

It wasn't in /usr/pkg/etc/rc.d/, but I assume you meant to say /etc/rc.d/
there? :-) Well spotted, I never checked there for it! I'll have a look at
that one later.

The confusion seems to be built into the pkgsrc utilities, e.g., if
you don't specify any directories when running bootstrap, it puts
the mk.conf in /usr/pkg/etc. But, the pkg_chk utility will look
at /etc/mk.conf by default unless to tell it to look in /usr/pkg/etc.

Very confusing. Try running bootstrap --help to see what you can
specify. Not that you would want to change the defaults, but I did
because I was trying to juggle pkgsrc and ports for awhile and got
pretty lost in the fog.

Actions #7

Updated by joerg over 18 years ago

On Thu, Jun 08, 2006 at 07:47:17AM -0700, walt wrote:

The confusion seems to be built into the pkgsrc utilities, e.g., if
you don't specify any directories when running bootstrap, it puts
the mk.conf in /usr/pkg/etc. But, the pkg_chk utility will look
at /etc/mk.conf by default unless to tell it to look in /usr/pkg/etc.

At least bmake doesn't really care. It tries ${PREFIX}/etc/mk.conf and
/etc/mk.conf in that order. pkg_chk is not supposed to care either, but
I will talk with the author about this bug.

For rc scripts, they go to /etc/rc.d by default (RCD_SCRIPTS_DIR),
unless overridden. Putting them anywhere but /etc/rc.d makes IMO only
useless trouble though.

Joerg

Actions

Also available in: Atom PDF