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.

61 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=minisatip
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://github.com/catalinii/minisatip.git
  10. PKG_SOURCE_VERSION:=b9fcb51b207f3b26b32b9b7c0e633cffea82274d
  11. PKG_SOURCE_DATE:=2019-07-08
  12. PKG_MIRROR_HASH:=1857595acb8216c078b1c4a355f7559cfce4dff22464a5b31c7712be6b374534
  13. PKG_MAINTAINER:=Daniel Kucera <github@danman.eu>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/minisatip
  17. TITLE:=SATIP server
  18. URL:=https://github.com/catalinii/minisatip
  19. SECTION:=multimedia
  20. CATEGORY:=Multimedia
  21. DEPENDS:=+MINISATIP_AES:libopenssl
  22. endef
  23. define Package/minisatip/config
  24. if PACKAGE_minisatip
  25. config MINISATIP_AES
  26. bool "OpenSSL (AES as part of DVBAPI)"
  27. default n
  28. config MINISATIP_CLIENT
  29. bool "SatIP Client"
  30. default y
  31. endif
  32. endef
  33. ifeq ($(CONFIG_MINISATIP_AES),)
  34. CONFIGURE_ARGS += --disable-dvbaes
  35. endif
  36. ifeq ($(CONFIG_MINISATIP_CLIENT),)
  37. CONFIGURE_ARGS += --disable-satipc
  38. endif
  39. define Package/minisatip/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minisatip $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/usr/share/minisatip/html/
  43. $(INSTALL_DATA) $(PKG_BUILD_DIR)/html/* $(1)/usr/share/minisatip/html
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_BIN) ./files/minisatip.init $(1)/etc/init.d/minisatip
  46. endef
  47. $(eval $(call BuildPackage,minisatip))