mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/mysql: build fix (remove "-lnsl")
This commit is contained in:
parent
21301653fc
commit
414df91833
@ -15,8 +15,16 @@ source="http://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-
|
||||
$pkgname.mycnf"
|
||||
subpackages="$pkgname-doc $pkgname-dev $pkgname-test libmysqlclient $pkgname-client"
|
||||
|
||||
_builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
cd $_builddir
|
||||
sed -i -e 's/-lnsl //g' configure.in
|
||||
sed -i -e 's/-lnsl //g' configure
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd $_builddir
|
||||
./configure --prefix=/usr --libexecdir=/usr/sbin \
|
||||
--localstatedir=/var/lib/mysql \
|
||||
--disable-assembler \
|
||||
@ -36,7 +44,7 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
cd $_builddir
|
||||
make -j1 DESTDIR="$pkgdir/" install
|
||||
install -Dm 755 "$startdir"/$pkgname.initd $pkgdir/etc/init.d/$pkgname
|
||||
install -Dm 644 "$startdir"/$pkgname.mycnf $pkgdir/etc/mysql/my.cnf
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user