-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
129 lines (121 loc) · 2.65 KB
/
snapcraft.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: wifi-ap-captive
version: 18-dev-captive
confinement: devmode
summary: WiFi Access Point based on hostapd with a captive portal
description: |
This snap is implementing a WiFi access point based on hostapd and allows
easily to share a internet connection or just create a network others can
easily connect to.
Please find the source of this snap at:
https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/wifi-ap
grade: stable
slots:
control:
interface: content
content: socket-directory
write:
- $SNAP_DATA/sockets
apps:
config:
command: bin/client config
plugs:
- network
status:
command: bin/client status
plugs:
- network
setup-wizard:
command: bin/client wizard
plugs:
- network
management-service:
command: bin/service
daemon: simple
plugs:
- network-bind
- network-control
- firewall-control
- network-manager
automatic-setup:
command: bin/automatic-setup.sh
daemon: simple
plugs:
- network
parts:
common:
plugin: dump
source: .
prime:
- copyright.hostapd
- bin/config-internal.sh
- bin/ap.sh
- bin/helper.sh
- bin/automatic-setup.sh
- conf/default-config
network-utils:
plugin: nil
stage-packages:
- iw
- wireless-tools
organize:
sbin: bin
filesets:
binaries:
- bin/iw
- bin/iwconfig
prime:
- $binaries
service:
plugin: go
source: .
go-importpath: launchpad.net/wifi-ap
prime:
- bin
install: |
export GOPATH=$PWD/../go
for d in client service ; do
cd $GOPATH/src/launchpad.net/wifi-ap/cmd/$d
go test -v
done
dnsmasq:
plugin: make
source: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/wifi-ap
source-type: git
source-branch: dnsmasq/2.75
build-packages:
- build-essential
make-parameters:
- PREFIX=/
organize:
sbin/dnsmasq: bin/dnsmasq
filesets:
binaries:
- bin/dnsmasq
prime:
- $binaries
hostapd:
plugin: make
source: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/wifi-ap
source-type: git
source-branch: hostapd/2.6
build-packages:
- build-essential
- pkg-config
- libnl-3-dev
- libnl-genl-3-dev
- libnl-route-3-dev
- libssl-dev
make-parameters:
- BINDIR=/bin
filesets:
binaries:
- bin/hostapd
- bin/hostapd_cli
prime:
- $binaries
nmcli:
plugin: nil
stage-packages:
- network-manager
organize:
usr/bin/nmcli: bin/nmcli