0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 01:22:13 +00:00
Ryan Keane a0f153e9a2 network: Add SUBMENU variable for some packages
Add SUBMENU variable for some packages in Network category.
Add title for `dnscrypt-proxy` package.
Shorten TITLE variable for `xray-core` package.

Filesystem:
- cifs-utils

File Transfer:
- onionshare-cli

IP Addresses and Names:
- dnscrypt-proxy2
- family-dns
- https-dns-proxy
- mdns-repeater
- nextdns
- smartdns

Version Control Systems:
- git-lfs

Wireless:
- dawn

Signed-off-by: Ryan Keane <the.ra2.ifv@gmail.com>
2024-11-22 23:39:38 +02:00

58 lines
1.3 KiB
Makefile

#
# Copyright (c) 2020 Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
# This is free software, licensed under the MIT License
#
include $(TOPDIR)/rules.mk
PKG_NAME:=family-dns
PKG_VERSION:=1.0.0
PKG_RELEASE:=2
PKG_LICENSE:=MIT
PKG_MAINTAINER:=Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
include $(INCLUDE_DIR)/package.mk
define Package/family-dns
SECTION:=net
CATEGORY:=Network
TITLE:=Family DNS
SUBMENU:=IP Addresses and Names
PKGARCH:=all
endef
define Package/family-dns/description
This package configures your router to block adult websites.
The default settings are designed to be appropriate for most businesses,
schools and families.
endef
define Package/family-dns/conffiles
/etc/config/family-dns
endef
define Build/Compile
endef
define Package/family-dns/install
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_DATA) ./files/family-dns.uci-defaults $(1)/etc/uci-defaults/family-dns
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/family-dns.conf $(1)/etc/config/family-dns
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/family-dns-update $(1)/usr/sbin/family-dns-update
$(INSTALL_BIN) ./files/test-family-dns $(1)/usr/sbin/test-family-dns
endef
define Package/family-dns/prerm
#!/bin/sh
if [ -z "$${IPKG_INSTROOT}" ]; then
/usr/sbin/family-dns-update uninstall
fi
exit 0
endef
$(eval $(call BuildPackage,family-dns))