libre2: fix pkgconfig paths
[feed/packages.git] / net / wifischedule / Makefile
1 # Copyright (c) 2016, prpl Foundation
2 #
3 # Permission to use, copy, modify, and/or distribute this software for any purpose with or without
4 # fee is hereby granted, provided that the above copyright notice and this permission notice appear
5 # in all copies.
6 #
7 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
8 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
9 # FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
10 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
11 # ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
12 #
13 # Author: Nils Koenig <openwrt@newk.it>
14
15 include $(TOPDIR)/rules.mk
16
17 PKG_NAME:=wifischedule
18 PKG_VERSION:=1
19 PKG_RELEASE:=3
20 PKG_LICENSE:=PRPL
21
22 PKG_MAINTAINER:=Nils Koenig <openwrt@newk.it>
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/wifischedule
27 SUBMENU:=Wireless
28 TITLE:=Turns WiFi on and off according to a schedule
29 SECTION:=net
30 CATEGORY:=Network
31 PKGARCH:=all
32 endef
33
34 define Package/wifischedule/description
35 Turns WiFi on and off according to a schedule defined in UCI.
36 endef
37
38 define Package/wifischedule/conffiles
39 /etc/config/wifi_schedule
40 endef
41
42 define Build/Prepare
43 endef
44
45 define Build/Configure
46 endef
47
48 define Build/Compile
49 endef
50
51 define Package/wifischedule/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) ./net/usr/bin/wifi_schedule.sh $(1)/usr/bin/wifi_schedule.sh
54 $(INSTALL_DIR) $(1)/etc/config
55 $(INSTALL_DATA) ./net/etc/config/wifi_schedule $(1)/etc/config/wifi_schedule
56 endef
57
58 $(eval $(call BuildPackage,wifischedule))