forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (74 loc) · 1.78 KB
/
build.gradle
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
/*
* Copyright (c) 1996-2020 Bali Automation. All Rights Reserved.
*/
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:gradle-ospackage-plugin:9.1.1'
classpath 'com.netflix.nebula:nebula-release-plugin:16.1.0'
}
}
apply plugin: 'signing'
group 'sensetif'
apply plugin: 'application'
apply plugin: 'nebula.deb'
apply plugin: 'nebula.ospackage'
apply plugin: 'nebula.ospackage-base'
apply plugin: 'nebula.ospackage-daemon'
apply plugin: 'nebula.ospackage-application'
ospackage_application {
prefix = '/usr/share/grafana/'
}
ospackage {
user = "grafana"
postInstall file('packaging/deb/control/postinst')
// preUninstall file('scripts/pre-uninstall.sh')
exclude 'grafana/'
from( './conf/defaults.ini' ) {
into '/etc/grafana/'
}
from('./bin/linux-amd64/grafana-cli') {
into 'bin'
}
from('./packaging/wrappers/grafana-cli') {
into '/usr/sbin'
}
from('./bin/linux-amd64/grafana-server') {
into '/usr/sbin'
}
from('./packaging/deb/init.d/grafana-server') {
into '/etc/init.d/'
}
from('./packaging/deb/default/grafana-server') {
into '/etc/default'
}
from('conf') {
into 'conf'
}
from('public') {
into 'public'
}
from('scripts') {
into 'scripts'
}
from('plugins-bundled') {
into 'plugins-bundled'
}
from('packaging/deb/systemd/') {
into '/etc/systemd/system'
}
}
task make(type:Exec) {
environment( 'NODE_OPTIONS','--max-old-space-size=8192' )
commandLine "make", "build"
}
task packDeb(type: Deb) {
}
buildDeb {
requires("adduser")
requires("libfontconfig1")
}
buildDeb.dependsOn packDeb
assemble.dependsOn buildDeb