aboutsummaryrefslogtreecommitdiffstats
path: root/main/screen/APKBUILD
blob: bcb1ee41e88d0ec4f9a509888be7adc773717974 (plain)
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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=screen
pkgver=4.3.1
pkgrel=2
pkgdesc="A window manager that multiplexes a physical terminal"
url="http://ftp.gnu.org/gnu/screen/"
arch="all"
license="GPL3+"
depends=""
makedepends="ncurses-dev ncurses"
install=""
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/screen/$pkgname-$pkgver.tar.gz
	CVE-2015-6806.patch"

_builddir="$srcdir"/screen-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}
package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install || return 1

	# remove suid root
	find "$pkgdir" -type f -perm -u+s -print0 \
		| xargs -0 chmod -s || return 1

	install -Dm644 etc/etcscreenrc "$pkgdir"/etc/screenrc || return 1
	install -Dm644 etc/screenrc "$pkgdir"/etc/skel/.screenrc || return 1
}

md5sums="5bb3b0ff2674e29378c31ad3411170ad  screen-4.3.1.tar.gz
5fb8b0a58ef4a2a75d7dddb453994cce  CVE-2015-6806.patch"
sha256sums="fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63  screen-4.3.1.tar.gz
9383316bce6ce479dfd3eca238956e321b80885bd0e720d47f1f37693334b9cd  CVE-2015-6806.patch"
sha512sums="8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa  screen-4.3.1.tar.gz
7ee87aaf5e10a60b37558f5bea85718703b2b95a4a3c43c0cd4c6f48ddd7bf1c5c582017a41681d8f9243049009c9f43678f37b826c188add501168e289ce2f1  CVE-2015-6806.patch"