Sie sind nicht angemeldet.

1

21.11.2010, 16:42

Gentoo kennt Befehl checkpath nicht

Hallo zusammen,

ich habe ein mittlerweile in die Jahre gekommendes Gentoo System wo unter anderem auch ein VDR läuft.
Nun habe ich mal wieder versucht einige Funktionen auf den neusten Stand zu bringen.
Unter anderem den Vdradmin. Jetzt habe ich zwar die neuste Version installiert bekomme ihn aber nicht zum laufen.
Wenn ich /etc/ini.d/vdradmin start ausführe bekomme ich folgende Meldungen und er startet natürlich nicht.



* Caching service dependencies ... [ ok ]
* Starting vdradmin ...
/etc/init.d/vdradmin: line 19: checkpath: command not found
/etc/init.d/vdradmin: line 19: checkpath: command not found
/etc/init.d/vdradmin: line 19: checkpath: command not found
/etc/init.d/vdradmin: line 21: checkpath: command not found
/etc/init.d/vdradmin: line 23: checkpath: command not found

Irgendwie kennt mein System den Befehl checkpath nicht.

Hat jemand eine Idee wie ich das fixen kann?

Danke !!!




Hier die Init.d\vderadmin

#!/sbin/runscript
# Copyright 1999-2010 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/www-misc/vdradmin-am/files/vdradmin-3.6.7.init,v 1.2 2010/11/07 21:43:12 billie Exp $

depend() {
use vdr
}

start() {
ebegin "Starting vdradmin"

: ${VDRADMIN_USER:=vdradmin}

local dir vdradmin_opts

# Prepare directories
for dir in cache log run; do
checkpath -q -d -m 0755 -o ${VDRADMIN_USER}:vdradmin "/var/${dir}/vdradmin"
done
checkpath -q -d -m 0755 -o ${VDRADMIN_USER}:vdradmin "/etc/vdradmin" \
"/etc/vdradmin/certs"
checkpath -q -f -m 0644 -o ${VDRADMIN_USER}:vdradmin "/etc/vdradmin/vdradmind.conf" \
"/etc/vdradmin/certs/server-cert.pem" \
"/etc/vdradmin/certs/server-key.pem"

if [ "${SSL}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ssl"; fi
if [ "${IPV6}" = "yes" ]; then vdradmin_opts="${vdradmin_opts} --ipv6"; fi
vdradmin_opts="${vdradmin_opts} --log ${LOGLEVEL:=4}"

if [ "${LOGGING}" = "syslog" ]; then
sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = syslog-" /etc/vdradmin/vdradmind.conf
elif [ "${LOGGING}" = "file" ]; then
sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 1-" /etc/vdradmin/vdradmind.conf
sed -i -e "/LOGFILE/s-LOGFILE.*-LOGFILE = vdradmind.log-" /etc/vdradmin/vdradmind.conf
else
sed -i -e "/LOGGING/s-LOGGING.*-LOGGING = 0-" /etc/vdradmin/vdradmind.conf
--exec /usr/bin/vdradmind -- ${vdradmin_opts}
fi

if [ -n "${RC_UNAME}" ]; then
# running on baselayout-2/openrc
start-stop-daemon --start --background --user "${VDRADMIN_USER}" \
--pidfile /var/run/vdradmin/vdradmind.pid \
--exec /usr/bin/perl /usr/bin/vdradmind -- ${vdradmin_opts}
else
start-stop-daemon --start --background --chuid "${VDRADMIN_USER}" \

fi
eend $?
}

stop() {
ebegin "Stopping vdradmin"
start-stop-daemon --stop --quiet --pidfile /var/run/vdradmin/vdradmind.pid
eend $?
}

2

21.11.2010, 18:13

Hallo

schau doch mal aus welchem Paket das gute Stück kommen sollte

Quellcode

1
$ equery b checkpath
und baue es dann ggf neu.

3

21.11.2010, 18:47

Hallo Danke für die schnelle Antwort

Folgendes Ergebniss habe ich auf die Eingabe bekommen.

/usr/lib/portage/pym/portage/util/__init__.py:1121: DeprecationWarning: The 'myroot' parameter for portage.config.getvirtuals() is deprecated
result = lazy_item.func(*pargs, **kwargs)
/usr/lib/portage/pym/portage_util.py:45: DeprecationWarning: DEPRECATION NOTICE: The portage_util module was replaced by portage.util
/usr/lib/portage/pym/portage_checksum.py:45: DeprecationWarning: DEPRECATION NOTICE: The portage_checksum module was replaced by portage.checksum
/usr/lib/portage/pym/output.py:45: DeprecationWarning: DEPRECATION NOTICE: The output module was replaced by portage.output
[ Searching for file(s) checkpath in *... ]

Leider werde ich nicht schlau draus.

4

22.11.2010, 07:47

Checkpath ist Teil des alten baselayout-1 ... errrrm ... wie alt ist denn dein System? Kannst du mal ein "emerge --info" posten?

Wie sieht es mit deinem letzten vollständigen world-update, etc-update, revdep-rebuild aus? Alles klar sonst?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

5

22.11.2010, 18:28

Hallo

also installiert habe ich es 2005, danach habe ich es reglemäßig auf den neuesten Stand gebracht.
Da ich aber immer nach einem world-update irgendwelche Probleme mit etlichen Diensten meines Server hatte habe ich es vor 3 Jahren aufgegeben immer alles auf den neuesten Stand zu bringen.
Nur ab und an habe ich einzelne Packete die mich interessiert haben nachinstalliert.
Gerade beim VDR hat es ständig irgenwo geklemmt und mich genervt.


Hier mein emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.19-gentoo-r5-i686-VIA_Nehemiah-with-gentoo-1.12.9
Timestamp of tree: Mon, 15 Nov 2010 15:45:02 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.6.5-r3
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 2.3-r1
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc: 4.1.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 2.2.6b
sys-devel/make: 3.81
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /usr/local/overlays/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl alsa apache2 berkdb bzip2 cli cracklib crypt cups cxx dri dvb dvd encode fontconfig fortran gdbm gif gpm iconv ipv6 java jbig jpeg jpeg2k kde modules mp3lame mpeg mudflap ncurses nls nptl nptlonly opengl openmp pam pcre perl png postfix pppd projectx python qt readline samba session ssl sysfs tcpd tiff truetype unicode wmf x86 xorg zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="ttpci" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="serial" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="via" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

6

24.11.2010, 08:52

Zitat

Da ich aber immer nach einem world-update irgendwelche Probleme mit etlichen Diensten meines Server hatte habe ich es vor 3 Jahren aufgegeben immer alles auf den neuesten Stand zu bringen.


Hm, ist nicht so toll. Das läuft ja solange gut, bis sich irgendwann Grundteile des Systems zu stark geändert haben. Punktuelle Updates sind zwar natürlich machbar, aber du bewegst dich dann auf relativ dünnem Eis.

Was spricht gegen ein schrittweises update deines Gesamtsystems? Zuerst

Quellcode

1
# emerge -avuDN system
und dann ein

Quellcode

1
# emerge -avuDN world
um letztendlich den tip-top aktuellen Zustand zu erreichen? Hilfe dazu gibt es immer.
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>