Re: Problems with openpkg rc --eval all env

2008-03-09 Thread Olivier Kaloudoff

Hi!


Hello Steffen,


I'm using

~eval `openpkg rc --eval all env`

to setup the paths for a openpkg instance in the system login script. This 
works fine except that the directory which is created under /tmp could not be 
deleteted since the owner of the dir is the management user and therefore the 
calling user is not able to delete the directory. Any idea how to fix this 
behaviour?


I would suggest that you create the corresponding sudo entry in 
/etc/sudoers and use /usr/bin/sudo the_command_acting_in_tmp .


But ... Why is your application not cleaning the temporary files in /tmp 
.. that would be the good question to ask, IMHO.



Olivier
__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


rcService: command not found

2007-07-30 Thread Olivier Kaloudoff

Hello list !

I just installed snort on current,
but at rc.snort start, it fails with rcService: command not found.

Browsing the web, it turns out that it might be a mismatch
between snort rc scripts and openpkg ones, so I updated openpkg to
20070718 ..

still the same problem .. any ideas ?


-bash-3.00# sh -x /openpkg/etc/rc.d/rc.snort  start
+ %config
/openpkg/etc/rc.d/rc.snort: line 6: fg: no job control
+ snort_enable=
+ snort_if=
+ snort_flags='-N -Afast -o'
+ snort_log_prolog=true
+ snort_log_epilog=true
+ snort_log_numfiles=10
+ snort_log_minsize=1M
+ snort_log_complevel=9
+ snort_update_time=once
+ snort_update_source=file:///openpkg/share/snort/rules.tar.gz
+ %common
/openpkg/etc/rc.d/rc.snort: line 18: fg: no job control
+ snort_cfgfile=/openpkg/etc/snort/snort.conf
+ snort_logdir=/openpkg/var/snort
+ snort_piddir=/openpkg/var/snort
+ snort_pidfile=/openpkg/var/snort/snort_.pid
+ %status -u root -o
/openpkg/etc/rc.d/rc.snort: line 30: fg: no job control
+ snort_usable=no
+ snort_active=no
+ /openpkg/sbin/snort -q -T -u openpkg-r -g openpkg-r -i '' -c 
/openpkg/etc/snort/snort.conf -l /openpkg/var/snort

+ '[' . = . ']'
+ snort_usable=no
+ rcService snort enable yes
/openpkg/etc/rc.d/rc.snort: line 41: rcService: command not found
+ echo 'snort_enable='
snort_enable=
+ echo 'snort_usable=no'
snort_usable=no
+ echo 'snort_active=no'
snort_active=no
+ %start -p 100 -u root
/openpkg/etc/rc.d/rc.snort: line 46: fg: no job control
+ rcService snort enable yes
/openpkg/etc/rc.d/rc.snort: line 47: rcService: command not found
+ exit 0
-bash-3.00# openpkg rpm -qa | egrep snort|openpkg
snort-2.7.0-20070714
perl-openpkg-5.8.8-20061013
openpkg-20070718-20070718
__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


traceroute-1.4a12 / current / Darwin

2007-07-20 Thread Olivier Kaloudoff

Hello !

	to compile traceroute on Darwin, I had to tweak 2 files with a  very short change (aclocal.m4 and findsaddr-socket.c). Something more 
heavy was needed, replace original config.sub and config.guess by the one provided by Apple (last update, 1999 whereas traceroute has 1996). Change 
is about 2000 lines ..


running aclocal ; autoconf ; configure ; make works like a charm 
after this...

	Are patches for Darwin accepted in current for openpkg ? If yes, what should I do about config.guess and config.sub ? Push patch for the 
moment, ask the upstream packager to update their version, and remove the patch when done ?




diff -Naur traceroute-1.4a12/aclocal.m4 
traceroute-1.4a12.patched/aclocal.m4

--- traceroute-1.4a12/aclocal.m41999-08-15 01:50:09 +0200
+++ traceroute-1.4a12.patched/aclocal.m42007-07-19 00:42:08 +0200
@@ -677,7 +677,7 @@
 AC_TRY_LINK(dnl
 ifelse([$2], [main], , dnl Avoid conflicting decl of main.
 [/* Override any gcc2 internal prototype to avoid an error.  */
-]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
+]ifelse(_AC_LANG_CURRENT, CPLUSPLUS, [#ifdef __cplusplus
 extern C
 #endif
 ])dnl


(to fix configure.in:30: error: AC_LANG: unknown language: when running 
autoconf)



diff -Naur traceroute-1.4a12/findsaddr-socket.c 
traceroute-1.4a12.patched/findsaddr-socket.c

--- traceroute-1.4a12/findsaddr-socket.c2000-11-23 21:17:21 +0100
+++ traceroute-1.4a12.patched/findsaddr-socket.c2007-07-19 
00:42:08 +0200

@@ -190,6 +190,7 @@

default:
/* empty */
+   ;
}

if (SALEN(sa) == 0)


(to fix error: label at end of compound statement at line 193)



Best Regards,


Olivier Kaloudoff

__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org


access to any machine [EMAIL PROTECTED]

2007-06-08 Thread Olivier Kaloudoff

Hello ...

I successfully logged onto login.openpkg.net,
but whenever I select a machine to connect to and press enter,
my connection gets closed ..

maybe I need an additionnal access ?

I'd be please to begin my first work with pkgconfig ..
that needs some work as it seems.


Olivier Kaloudoff
Saint Raphael
__
OpenPKG http://openpkg.org
Developer Communication List   openpkg-dev@openpkg.org