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.

56 lines
1.3 KiB

  1. #
  2. # Copyright (c) 2020 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
  3. # This is free software, licensed under the MIT License
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=family-dns
  7. PKG_VERSION:=1.0.0
  8. PKG_RELEASE:=2
  9. PKG_LICENSE:=MIT
  10. PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/family-dns
  13. SECTION:=net
  14. CATEGORY:=Network
  15. TITLE:=Family DNS
  16. PKGARCH:=all
  17. endef
  18. define Package/family-dns/description
  19. This package configures your router to block adult websites.
  20. The default settings are designed to be appropriate for most businesses,
  21. schools and families.
  22. endef
  23. define Package/family-dns/conffiles
  24. /etc/config/family-dns
  25. endef
  26. define Build/Compile
  27. endef
  28. define Package/family-dns/install
  29. $(INSTALL_DIR) $(1)/etc/uci-defaults
  30. $(INSTALL_DATA) ./files/family-dns.uci-defaults $(1)/etc/uci-defaults/family-dns
  31. $(INSTALL_DIR) $(1)/etc/config
  32. $(INSTALL_CONF) ./files/family-dns.conf $(1)/etc/config/family-dns
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) ./files/family-dns-update $(1)/usr/sbin/family-dns-update
  35. $(INSTALL_BIN) ./files/test-family-dns $(1)/usr/sbin/test-family-dns
  36. endef
  37. define Package/family-dns/prerm
  38. #!/bin/sh
  39. if [ -z "$${IPKG_INSTROOT}" ]; then
  40. /usr/sbin/family-dns-update uninstall
  41. fi
  42. exit 0
  43. endef
  44. $(eval $(call BuildPackage,family-dns))