1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 10:59:13 +02:00
openwrt-packages/utils/wifitoggle/Makefile
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00

48 lines
1.2 KiB
Makefile

#
# Copyright (C) 2010-2014 OpenWrt.org
# Copyright (C) 2010 segal.di.ubi.pt
# Copyright (C) 2016 Karol Babioch <karol@babioch.de>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=wifitoggle
PKG_VERSION:=1
PKG_RELEASE:=6
PKG_LICENSE:=GPL-2.0-or-later
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
include $(INCLUDE_DIR)/package.mk
define Package/wifitoggle
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Script to toggle Wi-Fi with a button and UCI config
PKGARCH:=all
endef
define Package/wifitoggle/description
Very versatile script to toggle Wi-Fi with a button. Allows to set
timeouts, persist changes after boot, and set LEDs according to the state.
endef
define Package/wifitoggle/conffiles
/etc/config/wifitoggle
endef
define Build/Compile
endef
define Package/wifitoggle/install
$(INSTALL_DIR) $(1)/etc/hotplug.d/button
$(INSTALL_BIN) ./files/wifitoggle.hotplug $(1)/etc/hotplug.d/button/50-wifitoggle
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/wifitoggle.config $(1)/etc/config/wifitoggle
endef
$(eval $(call BuildPackage,wifitoggle))