aboutsummaryrefslogtreecommitdiffstats
path: root/community/jenkins/APKBUILD
blob: 4d318e15bb908313d4ed279ef5de9b292017766b (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=jenkins
pkgver=2.275
pkgrel=0
pkgdesc="Extendable continuous integration server (stable version)"
url="https://jenkins.io"
arch="noarch !mips !mips64"
license="MIT"
depends="openjdk8 openjdk8-jre openjdk8-jre-base
	freetype ttf-dejavu xvfb fontconfig"
install="$pkgname.pre-install"
options="!check"
pkgusers="$pkgname"
pkggroups="$pkgname"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.war::http://mirrors.jenkins.io/war/$pkgver/jenkins.war
	$pkgname.logrotate
	$pkgname.initd
	$pkgname.confd"
builddir="$srcdir/"

# secfixes:
#   2.275-r0:
#     - CVE-2021-21603
#     - CVE-2021-21608
#     - CVE-2021-21610
#     - CVE-2021-21611
#     - CVE-2021-21604
#     - CVE-2021-21602
#     - CVE-2021-21605
#     - CVE-2021-21606
#     - CVE-2021-21607
#     - CVE-2021-21609
#     - CVE-2021-21612
#     - CVE-2021-21613
#     - CVE-2021-21614
#   2.245-r0:
#     - CVE-2020-2220
#     - CVE-2020-2221
#     - CVE-2020-2222
#     - CVE-2020-2223
#   2.228-r0:
#     - CVE-2020-2160
#     - CVE-2020-2161
#     - CVE-2020-2162
#     - CVE-2020-2163

package() {
	install -Dm755 "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -Dm644 "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname
	install -Dm755 "$srcdir"/$pkgname-$pkgver.war \
		"$pkgdir"/usr/share/webapps/jenkins/$pkgname.war
	install -Dm644 "$srcdir"/$pkgname.logrotate \
		"$pkgdir"/etc/logrotate.d/$pkgname
	mkdir -p "$pkgdir"/var/log/jenkins
	chown -R $pkgusers:$pkggroups "$pkgdir"/var/log/jenkins
}

sha512sums="6c473e8d117ba99fa6a25820f0e0793f5b95f2d4c8ae2969c3e6c38fa076cbce91003d9d3e5c41c158a6d9ac69c192addbd3c0487af8b220878a1c08435b2a5a  jenkins-2.275.war
74423d3c66e2312eb3a1590e0582ccd82fc01b410d3bfc0627bef56fe6f4e7f4ea01a7a2d92a7a0c4870a1a1c48e911fe7eab3073e14db4910b52158182e5856  jenkins.logrotate
43686a537248c7a0a8fe53c3ca9577c8ffb50a141248de028d398d0fd3b3be8562b6cb2c63b44b3b0ac58d6431e8907790553791b2e125d1bfc2e3263ffaa83e  jenkins.initd
7247750a13fc2537dc1e405f6d8221ccdc80cfbaf40c47327ee04c206afa8607ada52e7b895c8eb3489dd9f6a94b42b8b38110b3120948a35dc4f197fe4c08ed  jenkins.confd"