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.

65 lines
1.7 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:=4
  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. TARGET_CFLAGS += -fcommon
  38. MAKE_VARS += LFLAGS="$(TARGET_LDFLAGS) $(if $(ICONV_FULL),-liconv)"
  39. define Package/smstools3/configure
  40. endef
  41. define Package/smstools3/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) \
  44. $(PKG_BUILD_DIR)/src/smsd \
  45. $(PKG_BUILD_DIR)/scripts/sendsms \
  46. $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/smstools3.init $(1)/etc/init.d/smstools3
  49. $(INSTALL_DIR) $(1)/etc
  50. $(INSTALL_CONF) ./files/smstools3.conf $(1)/etc/smsd.conf
  51. endef
  52. $(eval $(call BuildPackage,smstools3))