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.

62 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_VERSION:=1.0.3
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/catalinii/minisatip/tar.gz/$(PKG_VERSION)?
  11. PKG_HASH:=04d208369331ef0ee165766438a80ed826bb6a6552bbc56a38a6f2dd04603da3
  12. PKG_MAINTAINER:=Daniel Kucera <github@danman.eu>
  13. PKG_LICENSE:=GPL-2.0-or-later
  14. PKG_BUILD_PARALLEL:=1
  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))