You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=smstools3
  9. PKG_VERSION:=3.1.21
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://smstools3.kekekasvi.com/packages/
  13. PKG_HASH:=a26ba4c02b16f6cf13177bffca6c9230dc5fefaeba8e3030cd4e4905f6a92084
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  15. PKG_MAINTAINER:=Harald Geyer <harald@ccbib.org>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_BUILD_PARALLEL:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/smstools3
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=SMS Server Tools 3
  25. DEPENDS:=$(ICONV_DEPENDS)
  26. URL:=http://smstools3.kekekasvi.com/
  27. endef
  28. define Package/smstools3/description
  29. The SMS Server Tools 3 is a SMS Gateway software which can send and receive
  30. short messages through GSM modems and mobile phones.
  31. endef
  32. TARGET_CFLAGS += -D NUMBER_OF_MODEMS=1
  33. TARGET_CFLAGS += $(if $(ICONV_FULL),-D USE_ICONV)
  34. TARGET_CFLAGS += -D DISABLE_INET_SOCKET
  35. TARGET_CFLAGS += -W -Wall
  36. TARGET_CFLAGS += -D_FILE_OFFSET_BITS=64
  37. MAKE_VARS += LFLAGS="$(TARGET_LDFLAGS) $(if $(ICONV_FULL),-liconv)"
  38. define Package/smstools3/configure
  39. endef
  40. define Package/smstools3/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(INSTALL_BIN) \
  43. $(PKG_BUILD_DIR)/src/smsd \
  44. $(PKG_BUILD_DIR)/scripts/sendsms \
  45. $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/smstools3.init $(1)/etc/init.d/smstools3
  48. $(INSTALL_DIR) $(1)/etc
  49. $(INSTALL_CONF) ./files/smstools3.conf $(1)/etc/smsd.conf
  50. endef
  51. $(eval $(call BuildPackage,smstools3))