forked from stgraber/samba4-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.snapcraft.yaml
81 lines (71 loc) · 1.64 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
name: samba4-manager
base: core20
version: git
grade: stable
summary: Web management interface for samba4
description: |-
Simple web management interface for samba4.
This allows:
- User and group creation
- User profile edition
- Adding SSH keys (requires schema extension)
To install:
- snap install samba4-manager
- snap set samba4-manager domain=YOUR-DOMAIN
The web server will be running on port 8080.
confinement: strict
apps:
daemon:
command: daemon.start
daemon: simple
plugs:
- network
- network-bind
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
- build-on: ppc64el
- build-on: s390x
parts:
samba4-manager:
source: .
plugin: python
build-packages:
- libldap2-dev
- libsasl2-dev
stage-packages:
- libasn1-8-heimdal
- libgssapi3-heimdal
- libhcrypto4-heimdal
- libheimbase1-heimdal
- libheimntlm0-heimdal
- libhx509-5-heimdal
- libkrb5-26-heimdal
- libldap-2.4-2
- libroken18-heimdal
- libsasl2-2
- libwind0-heimdal
- uuid-runtime
organize:
usr/bin/: bin/
static:
plugin: dump
source: .
prime:
- app
organize:
libs/: app/libs/
plugins/: app/plugins/
samba4-manager: app/samba4-manager
static/: app/static/
templates/: app/templates/
override-build: |
snapcraftctl build
mkdir -p "${SNAPCRAFT_PART_INSTALL}/app/"
ln -s /var/snap/samba4-manager/current/manager.cfg "${SNAPCRAFT_PART_INSTALL}/app/manager.cfg"
wrappers:
plugin: dump
source: .snapcraft/
organize:
hooks/: snap/hooks/