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.

63 lines
1.6 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.4
  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:=aa6ef68228a19faf04cf1283e994cae80134a01d9ee6bc45b9969d145b1281e5
  12. PKG_MAINTAINER:=Daniel Kucera <github@danman.eu>
  13. PKG_LICENSE:=GPL-2.0-or-later
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_CONFIG_DEPENDS:= \
  16. CONFIG_BUILD_PATENTED \
  17. CONFIG_MINISATIP_AES \
  18. CONFIG_MINISATIP_CLIENT
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/minisatip
  21. TITLE:=SATIP server
  22. URL:=https://github.com/catalinii/minisatip
  23. SECTION:=multimedia
  24. CATEGORY:=Multimedia
  25. DEPENDS:=+MINISATIP_AES:libopenssl +BUILD_PATENTED:libdvbcsa
  26. endef
  27. define Package/minisatip/config
  28. if PACKAGE_minisatip
  29. config MINISATIP_AES
  30. bool "OpenSSL (AES as part of DVBAPI)"
  31. default n
  32. config MINISATIP_CLIENT
  33. bool "SatIP Client"
  34. default y
  35. endif
  36. endef
  37. CONFIGURE_ARGS += \
  38. --$(if $(CONFIG_BUILD_PATENTED),en,dis)able-dvbcsa \
  39. --$(if $(CONFIG_MINISATIP_AES),en,dis)able-dvbaes \
  40. --$(if $(CONFIG_MINISATIP_CLIENT),en,dis)able-satipc
  41. define Package/minisatip/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minisatip $(1)/usr/bin/
  44. $(INSTALL_DIR) $(1)/usr/share/minisatip/html/
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/html/* $(1)/usr/share/minisatip/html
  46. $(INSTALL_DIR) $(1)/etc/init.d
  47. $(INSTALL_BIN) ./files/minisatip.init $(1)/etc/init.d/minisatip
  48. endef
  49. $(eval $(call BuildPackage,minisatip))