summaryrefslogtreecommitdiff
path: root/opt/screen/MAKEPKG
blob: 6803b95924b3a6bf7e3d43d9032ecee831725c13 (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
#!/bin/mkpkg
# description: Terminal multiplexer with session detach/reattach
# url: https://www.gnu.org/software/screen/

name=screen
version=5.0.2
release=1
depends=(ncurses)
source=(https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)

sha256sums=(
    "ca9a2c7e240919bc7ac12124593ae4529bb4eb5f7349d8857829b7e3f0b3b332"
)

build() {
    cd $name-$version

    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        --enable-colors256 \
        --disable-pam \
        --disable-socket-dir

    make
    make DESTDIR=$PKG install
    install -Dm644 etc/etcscreenrc $PKG/etc/screenrc

    # recent CVEs in screen 5.0.x around setuid-root exploits
    # -rwsr-xr-x	root/root	usr/bin/screen-5.0.1
    chmod u-s $PKG/usr/bin/screen-5.0.2
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh