From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Boibessot Date: Thu, 16 Jan 2014 19:58:55 +0100 Subject: [Buildroot] [PATCH] Add SMS Tools Server 3 package In-Reply-To: <52D6D25B.3040603@zacarias.com.ar> References: <1389194289-10657-1-git-send-email-julien.boibessot@free.fr> <52D6D25B.3040603@zacarias.com.ar> Message-ID: <52D82BEF.2030209@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Gustavo, and thanks for the review ! On 01/15/2014 07:24 PM, Gustavo Zacarias wrote: > On 01/08/2014 12:18 PM, julien.boibessot at free.fr wrote: > > Hi. Let's see... > >> +config BR2_PACKAGE_SMSTOOLS3_NB_MODEMS >> + string "Number of modems to support" >> + default 1 > What does this knob do in/to the code? It (NUMBER_OF_MODEMS) is used in a very large number of loops of the program and by default set to 64. Doc says: "If you are running SMSTools3 in an embedded device, you can use NUMBER_OF_MODEMS=1 to save memory." Don't know why the author didn't choose to take dynamic command parameters instead of static code define... > >> + >> +config BR2_PACKAGE_SMSTOOLS3_START_AT_BOOT >> + bool "Start SMS Server Tools at system boot" >> + default y > Ehhmm no, we don't make initscripts conditional that way, there are > various hooks to get rid of it if someone doesn't want it that way or > they run services their own way. ok ! > >> + >> +endif >> + >> +comment "smstools3 needs a toolchain w/ wchar, threads" >> + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS >> diff --git a/package/smstools3/S50smsd b/package/smstools3/S50smsd >> new file mode 100644 >> index 0000000..ded4189 >> --- /dev/null >> +++ b/package/smstools3/S50smsd >> @@ -0,0 +1,43 @@ >> +#!/bin/sh >> +# >> +# Starts the SMS Server Tools 3 >> +# >> + >> +NAME=smsd >> +DAEMON=/usr/local/bin/$NAME > /usr/local? Why? Well... no particular reason :-) /usr would be ok ? > >> +ifeq ($(BR2_PACKAGE_SMSTOOLS3_START_AT_BOOT),y) >> +SMSTOOLS3_INIT_SCRIPT_NAME = S50smsd >> +else >> +SMSTOOLS3_INIT_SCRIPT_NAME = 50smsd >> +endif > Please use SMSTOOLS3_INSTALL_INIT_SYSV for the script. > See docs/manual/adding-packages-generic.txt for the reason. ok ! > > Otherwise looking good in general without testing it though. Thanks ! I will send a corrected version tomorrow. Regards, Julien