openssl: fix for cross
This commit is contained in:
parent
bf36066fa8
commit
f9839feeab
1 changed files with 10 additions and 3 deletions
|
@ -8,10 +8,13 @@ fetch() {
|
||||||
tar -xf $pkgname-$pkgver.tar.xz
|
tar -xf $pkgname-$pkgver.tar.xz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PREFIX=/usr
|
||||||
|
[ -z "$FOR_CROSS" ] || PREFIX=$FOR_CROSS_DIR
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
./Configure \
|
./Configure \
|
||||||
--prefix=/usr \
|
--prefix=$PREFIX \
|
||||||
--openssldir=/etc/ssl \
|
--openssldir=/etc/ssl \
|
||||||
--libdir=lib \
|
--libdir=lib \
|
||||||
linux-generic64 \
|
linux-generic64 \
|
||||||
|
@ -28,8 +31,12 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
make install_sw DESTDIR=$pkgdir
|
make install_sw DESTDIR=$pkgdir
|
||||||
|
if [ -z "$FOR_CROSS" ]; then
|
||||||
install -d $pkgdir/usr/sbin
|
install -d $pkgdir/usr/sbin
|
||||||
install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca
|
install -Dm755 ../../update-ca.sh $pkgdir/usr/sbin/update-ca
|
||||||
|
else
|
||||||
|
rm -rf $pkgdir/$PREFIX/bin
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
backup() {
|
backup() {
|
||||||
|
|
Loading…
Reference in a new issue