mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
smstools3 : ADD smstools3 package
Add smstools3 package from http://smstools3.kekekasvi.com/ Tested successfull as an email/sms gateway with : - Device: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem - Trunk: OpenWrt Chaos Calmer r43753 - Kirkwood : Globalscale Technologies Guruplug Server Plus Send and receive SMS with modem : OK Forward received SMS to mailhub : OK Signed-off-by: Gerald Kerma <dreagle@doukki.net>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
#
|
||||
# Copyright (C) 2014 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=smstools3
|
||||
PKG_VERSION:=3.1.15
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_MAINTAINER:=Gérald Kerma <dreagle@doukki.net>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_PARALLEL:=0
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://smstools3.kekekasvi.com/packages/
|
||||
PKG_MD5SUM:=0241ef60e646fac1a06254a848e61ed7
|
||||
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_BUILD_DEPENDS:=libiconv-full iconv socket nsl
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/smstools3
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=SMS Server Tools 3
|
||||
DEPENDS:=+libiconv-full +iconv
|
||||
URL:=http://smstools3.kekekasvi.com/
|
||||
endef
|
||||
|
||||
define Package/smstools3/description
|
||||
The SMS Server Tools 3 is a SMS Gateway software which can send and receive
|
||||
short messages through GSM modems and mobile phones.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS = -D NUMBER_OF_MODEMS=1
|
||||
TARGET_CFLAGS += -D USE_ICONV
|
||||
TARGET_CFLAGS += -D DISABLE_INET_SOCKET
|
||||
TARGET_CFLAGS += -W -Wall
|
||||
TARGET_CFLAGS += -D_FILE_OFFSET_BITS=64
|
||||
|
||||
TARGET_LDFLAGS += -liconv
|
||||
|
||||
BINDIR=/usr/local/bin
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(PKG_BUILD_DIR)"/src \
|
||||
CC="$(TARGET_CC)" \
|
||||
USER_CFLAGS='$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) \
|
||||
-I"$(STAGING_DIR)/usr/lib/libiconv-full/include"' \
|
||||
USER_LDFLAGS='$(TARGET_LFLAGS) $(EXTRA_LDFLAGS) -L"$(STAGING_DIR)/usr/lib/libiconv-full/lib"' \
|
||||
all
|
||||
endef
|
||||
|
||||
define Package/smstools3/install
|
||||
$(INSTALL_DIR) $(1)/$(BINDIR)
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/smsd $(1)/$(BINDIR)/smsd
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/sendsms $(1)/$(BINDIR)/sendsms
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/sms2html $(1)/$(BINDIR)/sms2html
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/sms2unicode $(1)/$(BINDIR)/sms2unicode
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/unicode2sms $(1)/$(BINDIR)/unicode2sms
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_DATA) -m 0755 ./files/smstools3.init $(1)/etc/init.d/smstools3
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_DATA) -m 0755 ./files/smstools3.conf $(1)/etc/smsd.conf
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,smstools3))
|
||||
Reference in New Issue
Block a user