Mercurial > vanilla
comparison network/openssh/openssh.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 297b5eef115e |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
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 build() | 52 rm -rf $PKGNAME-$PKGVERSION |
53 { | 53 tar xvf $PKGNAME-$PKGVERSION.tar.gz |
54 rm -rf $PKGNAME-$PKGVERSION | 54 cd $PKGNAME-$PKGVERSION |
55 tar xvf $PKGNAME-$PKGVERSION.tar.gz | |
56 cd $PKGNAME-$PKGVERSION | |
57 | 55 |
58 patch -p1 < ../CVE-2018-20685.patch | 56 patch -p1 < ../CVE-2018-20685.patch |
59 patch -p1 < ../CVE-2019-6109.patch | 57 patch -p1 < ../CVE-2019-6109.patch |
60 patch -p1 < ../CVE-2019-6111.patch | 58 patch -p1 < ../CVE-2019-6111.patch |
61 | 59 |
62 CC="$CC" \ | 60 CC="$CC" \ |
63 CFLAGS="$CFLAGS" \ | 61 CFLAGS="$CFLAGS" \ |
64 LDFLAGS="$LDFLAGS" \ | 62 LDFLAGS="$LDFLAGS" \ |
65 LIBS="$LIBS" \ | 63 LIBS="$LIBS" \ |
66 ./configure \ | 64 ./configure \ |
67 --build=$CBUILD \ | 65 --build=$CBUILD \ |
68 --host=$CHOST \ | 66 --host=$CHOST \ |
69 --prefix= \ | 67 --prefix= \ |
70 --sysconfdir=/etc/ssh \ | 68 --sysconfdir=/etc/ssh \ |
71 --with-pid-dir=/var/run \ | 69 --with-pid-dir=/var/run \ |
72 --sbindir=/bin \ | 70 --sbindir=/bin \ |
73 $with_pam \ | 71 $with_pam \ |
74 $with_selinux | 72 $with_selinux |
75 make | 73 make |
76 make install DESTDIR=$DESTDIR | 74 make install DESTDIR=$DESTDIR |
77 install -D -m 0644 ../sshd $DESTDIR/etc/rc.d/sshd | 75 install -D -m 0644 ../sshd $DESTDIR/etc/rc.d/sshd |
78 | 76 |
79 cd .. | 77 cd .. |
80 rm -rf $PKGNAME-$PKGVERSION | 78 rm -rf $PKGNAME-$PKGVERSION |
81 } |