aboutsummaryrefslogtreecommitdiffstats
path: root/main/mysql
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-08-21 15:34:06 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-08-23 06:13:50 +0000
commit414df91833ec3443c573aace0bc6df9ec264e970 (patch)
treefb8c8cfe5180be2ea4863070341bba16e860dfee /main/mysql
parent21301653fc70ef05c0efdcd1738df9d80b131fb9 (diff)
downloadaports-414df91833ec3443c573aace0bc6df9ec264e970.tar.bz2
aports-414df91833ec3443c573aace0bc6df9ec264e970.tar.xz
main/mysql: build fix (remove "-lnsl")
Diffstat (limited to 'main/mysql')
-rw-r--r--main/mysql/APKBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/main/mysql/APKBUILD b/main/mysql/APKBUILD
index 0bbad2a05d..0201d01dbd 100644
--- a/main/mysql/APKBUILD
+++ b/main/mysql/APKBUILD
@@ -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