2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-01-23 16:38:04 +01:00
|
|
|
#
|
|
|
|
# smstools3
|
|
|
|
#
|
2014-04-30 21:34:56 +02:00
|
|
|
################################################################################
|
2014-01-23 16:38:04 +01:00
|
|
|
|
|
|
|
SMSTOOLS3_VERSION = 3.1.15
|
2014-07-31 10:46:58 +02:00
|
|
|
SMSTOOLS3_SITE = http://smstools3.kekekasvi.com/packages
|
2017-03-30 15:43:32 +02:00
|
|
|
SMSTOOLS3_LICENSE = GPL-2.0+
|
2014-01-23 16:38:04 +01:00
|
|
|
SMSTOOLS3_LICENSE_FILES = doc/license.html LICENSE
|
|
|
|
|
|
|
|
SMSTOOLS3_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
SMSTOOLS3_CFLAGS += -D NUMBER_OF_MODEMS=$(BR2_PACKAGE_SMSTOOLS3_NB_MODEMS)
|
|
|
|
SMSTOOLS3_CFLAGS += -D NOSTATS
|
|
|
|
|
|
|
|
define SMSTOOLS3_BUILD_CMDS
|
2016-10-14 00:13:26 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(SMSTOOLS3_CFLAGS)" -C $(@D)
|
2014-01-23 16:38:04 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SMSTOOLS3_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/smstools3/S50smsd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50smsd
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SMSTOOLS3_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/src/smsd \
|
|
|
|
$(TARGET_DIR)/usr/bin/smsd
|
|
|
|
$(INSTALL) -m 0755 -D $(@D)/scripts/sendsms \
|
|
|
|
$(TARGET_DIR)/usr/bin/sendsms
|
|
|
|
$(INSTALL) -m 0644 -D $(@D)/examples/smsd.conf.easy \
|
|
|
|
$(TARGET_DIR)/etc/smsd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|