comparison network/openssh/openssh.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children ab85a4ae04ba
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
47 with_selinux="--with-selinux" 47 with_selinux="--with-selinux"
48 else 48 else
49 with_selinux="--without-selinux" 49 with_selinux="--without-selinux"
50 fi 50 fi
51 51
52 rm -rf $PKGNAME-$PKGVERSION 52 build()
53 tar xvf $PKGNAME-$PKGVERSION.tar.gz 53 {
54 cd $PKGNAME-$PKGVERSION 54 rm -rf $PKGNAME-$PKGVERSION
55 tar xvf $PKGNAME-$PKGVERSION.tar.gz
56 cd $PKGNAME-$PKGVERSION
55 57
56 patch -p1 < ../CVE-2018-20685.patch 58 patch -p1 < ../CVE-2018-20685.patch
57 patch -p1 < ../CVE-2019-6109.patch 59 patch -p1 < ../CVE-2019-6109.patch
58 patch -p1 < ../CVE-2019-6111.patch 60 patch -p1 < ../CVE-2019-6111.patch
59 61
60 CC="$CC" \ 62 CC="$CC" \
61 CFLAGS="$CFLAGS" \ 63 CFLAGS="$CFLAGS" \
62 LDFLAGS="$LDFLAGS" \ 64 LDFLAGS="$LDFLAGS" \
63 LIBS="$LIBS" \ 65 LIBS="$LIBS" \
64 ./configure \ 66 ./configure \
65 --build=$CBUILD \ 67 --build=$CBUILD \
66 --host=$CHOST \ 68 --host=$CHOST \
67 --prefix=/usr \ 69 --prefix= \
68 --sysconfdir=/etc/ssh \ 70 --sysconfdir=/etc/ssh \
69 --with-pid-dir=/var/run \ 71 --with-pid-dir=/var/run \
70 --sbindir=/bin \ 72 --sbindir=/bin \
71 $with_pam \ 73 $with_pam \
72 $with_selinux 74 $with_selinux
73 make 75 make
74 make install DESTDIR=$DESTDIR 76 make install DESTDIR=$DESTDIR
75 install -D -m 0644 ../sshd $DESTDIR/etc/rc.d/sshd 77 install -D -m 0644 ../sshd $DESTDIR/etc/rc.d/sshd
76 78
77 cd .. 79 cd ..
78 rm -rf $PKGNAME-$PKGVERSION 80 rm -rf $PKGNAME-$PKGVERSION
81 }