rc.d script for transmission-daemon

2020-04-04 Thread Paolo Vincenzo Olivo

Greetings, While setting up a BitTorrent server with /net/transmission,
I noticed the package doesn't install a service script for the
transmission-daemon inside $LOCALBASE/share/examples/rc.d; I wondered 
if there's any specific reason for this to be a default choice.
In the meantime, I decided to create a rc.d script like the one below,
and the server is currently up and running.

###
#!/bin/sh

# PROVIDE: transmission
# REQUIRE: DAEMON

. /etc/rc.subr

name="transmission"
rcvar=$name
command="/usr/pkg/bin/transmission-daemon"
command_args="-g/home/transmission/config"
pidfile="/var/run/${name}.pid"

load_rc_config $name
transmission_user="transmission"
run_rc_command "$1"
check_process ${command} > ${pidfile}
##

Best regards,
PVO
-- 
 ~ Paolo Vincenzo Olivo ~ 
SDF Public Access UNIX System - https://sdf.org
PGP Key fingerprint = 39F1 9E55 77AF 6BF3 005 B181 8F2A 9A4D 9001 2186 


signature.asc
Description: PGP signature


Re: Mwm and coloring cascading submenus

2020-04-04 Thread Rhialto
On Fri 03 Apr 2020 at 18:18:31 -0400, Todd Gruhn wrote:
> In my root-window I have a (root?) menu with cascading submenus.
> I figured out how to use .Xresources to define several fg/bg menu-color
> pairs. THAT APPLIES TO ALL MENUS.

The mwm manual page seems somewhat garbled for me in several parts, but
I am guessing you followed the part of the manpage in section "Component
Appearance Resources" that says

   If menu is specified, the resource is applied only to mwm menus; if
   icon is specified, the resource is applied to icons; and if client is
   specified, the resource is applied to client window frames. For
   example, Mwm*icon*foreground is used to specify the foreground color
   for mwm icons, Mwm*menu*foreground specifies the foreground color for
   mwm menus, and Mwm*client*foreground is used to specify the foreground
   color for mwm client window frames.

> What if I want the top menu to have the color pair fg1/bg1;
> the GAME sub-menu to have color pair fg2/bg2;
> the APPLICATIONS sub-menu to have color pair fg3/bg3 ?

in the same section a bit further down I found this:

   The appearance of menus can be configured based on the name of the
   menu.  The syntax for specifying menu appearance by name is Mwm*menu*
   menu_name*resource_id

   For example, Mwm*menu*my_menu*foreground specifies the foreground color
   for the menu named my_menu.

So it seems that you can specify colours etc based on the name of the menu.

-Olaf.
-- 
Olaf 'Rhialto' Seibert -- rhialto at falu dot nl
___  Anyone who is capable of getting themselves made President should on
\X/  no account be allowed to do the job.   --Douglas Adams, "THGTTG"


signature.asc
Description: PGP signature


Setting menu colors in MWM/lesstif

2020-04-04 Thread Todd Gruhn
!Mwm*menu*background: Grey27
!Mwm*menu*foreground: White
!!!
!!   First acceptable color pair !!
!!!

!Mwm*menu*background: Olive
!Mwm*menu*foreground: Yellow
!!!
!! Second acceptable color pair  !!
!!!

!Mwm*menu*background: SteelBlue
!Mwm*menu*foreground: Yellow
!!!
!!  Third acceptable color pair  !!
!!!

Above is part of my .Xresources  file. My problem is

these options set ALL menu colors.

I have a cascading root menu. How do I set the top

menu to fg1/bg1; the GAMES menu to fg2/bg2; the

UTILITIES menu to fg3/bg3? O is this even possible?

Have a sample line from .Xresources I can copy/adapt?

Any help would be appreciated.


Re: Looking for java an android devs on netbsd environment

2020-04-04 Thread Nathanial Sloss
Hi,

In the past if successfully compiled the android sdk and ndk on NetBSD.
This version how ever was CLI with ant scripts/makefiles.

They used OpenJDK 8.

Compiling the ndk for android should be ok along with the platform tools (adb 
etc)

I could not compile projects for android studio and I have not tried to port 
it.

There is a platform check in android studio and NetBSD is not accepted.

I tried running android studio in linux emulation by runing stdio.sh with bash 
from /emul/linux/bin without success possibily requiring a linux java to be 
installed as well.

It should be possible to run a linux ndk and platform tools in NetBSD's linux 
emulation.

Best regards,

Nat


Mwm and coloring cascading submenus

2020-04-04 Thread Todd Gruhn
In my root-window I have a (root?) menu with cascading submenus.
I figured out how to use .Xresources to define several fg/bg menu-color
pairs. THAT APPLIES TO ALL MENUS.

What if I want the top menu to have the color pair fg1/bg1;
the GAME sub-menu to have color pair fg2/bg2;
the APPLICATIONS sub-menu to have color pair fg3/bg3 ?


Now when I go to a submenu, I get a menu that has different
colors.

I would like a sample that I can copy and adapt to my liking.
This is actually a first for me.

Any help would be greatly appreciated.