blob: 8392d405613d77323ee06e810e55cbf54a48a566 (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=screen
pkgver=4.7.0
pkgrel=1
pkgdesc="A window manager that multiplexes a physical terminal"
url="https://ftp.gnu.org/gnu/screen/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # No test suite.
makedepends="ncurses-dev ncurses"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
CVE-2020-9366.patch
"
builddir="$srcdir/$pkgname-$pkgver"
# secfixes:
# 4.7.0-r1:
# - CVE-2020-9366
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-colors256
make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
# remove suid root
find "$pkgdir" -type f -perm -u+s -print0 \
| xargs -0 chmod -s
install -Dm644 etc/etcscreenrc "$pkgdir"/etc/screenrc
install -Dm644 etc/screenrc "$pkgdir"/etc/skel/.screenrc
}
sha512sums="44c7a33e2ed772ce91998cdc07556ef7b972e5b100335e14702b273a234e437fe6415de459e7b6d34c6086282a432778629047424ef9159ac6fcf26d22b45745 screen-4.7.0.tar.gz
a711983119b86527a85464d4f5c8fecd6d481ab5691dd7b1b83c33983594d511ac69a8a67b088906540f8475dba08bda4ba559b2b514ac43535bd668db801fe0 CVE-2020-9366.patch"
|