-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (43 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
include $(TOPDIR)/rules.mk
PKG_NAME:=slppsk-hostapd
PKG_VERSION:=0.1
PKG_RELEASE:=$(shell git rev-parse --short HEAD)
PKG_BUILD_DIR:=$(BUILD_DIR)/slppsk_hostapd
include $(INCLUDE_DIR)/package.mk
define Package/slppsk-hostapd
TITLE:=Stateless Per-Station PSKs for hostapd
SECTION:=net
CATEGORY:=Network
PKGARCH:=all
DEPENDS:=+hostapd-utils +xxd +coreutils-base64
endef
define Package/slppsk-hostapd/description
Generates a unique Pre Shared Key for each
station based on its MAC address and a master
password. No RADIUS server nor per-device
configuration required.
endef
define Build/Prepare
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/slppsk-hostapd/install
$(INSTALL_DIR) \
$(1)/usr/{bin,lib/hostapd_slppsk} \
$(1)/etc/{config,init.d}
$(INSTALL_BIN) ./files/usr/bin/hostapd_slppsk $(1)/usr/bin
$(INSTALL_BIN) ./files/etc/init.d/hostapd_slppsk $(1)/etc/init.d
$(INSTALL_BIN) \
./files/usr/lib/hostapd_slppsk/{add_permanent_ppsk,add_temp_ppsk,event_handler,init_iface,init_psk}.sh \
$(1)/usr/lib/hostapd_slppsk
$(INSTALL_DATA) \
./files/usr/lib/hostapd_slppsk/{key_common,iface_common,manage_common}.sh \
$(1)/usr/lib/hostapd_slppsk
$(INSTALL_CONF) ./files/etc/config/slppsk $(1)/etc/config
endef
define Package/ddns-scripts/conffiles
/etc/config/ddns
endef
$(eval $(call BuildPackage,slppsk-hostapd))