When starting apm via /etc/init.d/apmd start, using the default
/etc/conf.d/apmd
it complains as follows:
/usr/sbin/apmd: unrecognized option `--proxy-timeout'
usage: apmd [-c seconds] [-P apmd_proxy] [-p percent] [-qVvW] [-w percent]
[-?]
in /etc/conf.d/apmd it says: APMD_OPTS="-P /etc/apm/apmd_proxy --proxy-timeout
30"
removing the --proxy-timeout 30 option solves the problem.
apmd version installed: apmd-3.0.2-r3
emerge info:
Gentoo Base System version 1.4.16
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Mobile Pentium II
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.fu-berlin.de/pub/unix/linux/mirrors/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/
rsync://rsync.fhh.opensource-mirror.de/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts audiofile avi berkdb crypt cups encode fbcon foomaticdb
ftp gdbm gif gnutls gpm gtk gtk2 imap imlib jikes joystick jpeg libg++ libwww
mad mbox mikmod mmx motif mpeg ncurses nls offensive oggvorbis oss pam pcmcia
pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd tiff
truetype trusted vim-with-x x86 xml2 xmms xv xvid zlib"
I'm using the sys-apps/apmd-3.0.2-r3 ebuild also. I see the exact same
"unrecognized option" error. I also see the same solution, and I use this
solution.
Therefore I suggest the solution should be to comment out the "--proxy-option
30" and perhaps make a note in a comment next to this commented option, why the
option is there in the first place / what the plan is or was.
For every day apmd stays the same, people can install 'apmd' and experience
non-working APM on Gentoo. Thanks in advance.