wok-next diff mariadb/receipt @ rev 21057
Deal with HOST_ARCH="any"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 03 14:47:30 2018 +0200 (2018-12-03) |
parents | bfe1f37ff436 |
children |
line diff
1.1 --- a/mariadb/receipt Fri Nov 09 03:18:57 2018 +0200 1.2 +++ b/mariadb/receipt Mon Dec 03 14:47:30 2018 +0200 1.3 @@ -15,12 +15,12 @@ 1.4 pcre-dev curl-dev libxml2-dev xz-dev boost-dev git" 1.5 1.6 SPLIT="\ 1.7 -$PACKAGE-test $PACKAGE-common $PACKAGE-client $PACKAGE-bench \ 1.8 -$PACKAGE-backup $PACKAGE-mytop $PACKAGE-server-utils \ 1.9 -$PACKAGE-dev $PACKAGE" 1.10 +$PACKAGE-test $PACKAGE-common $PACKAGE-client $PACKAGE-bench \ 1.11 +$PACKAGE-backup $PACKAGE-embedded $PACKAGE-mytop $PACKAGE-server-utils \ 1.12 +$PACKAGE-plugin-rocksdb $PACKAGE-dev $PACKAGE" 1.13 1.14 case $ARCH in 1.15 - x86_64) SPLIT="$PACKAGE-plugin-rocksdb $SPLIT";; 1.16 + i?86) SPLIT="${SPLIT/$PACKAGE-plugin-rocksdb/}";; 1.17 esac 1.18 1.19 compile_rules() { 1.20 @@ -101,22 +101,29 @@ 1.21 make && 1.22 make install || return 1 1.23 1.24 + # fix Perl files permissions 1.25 + find $install -type f -perm 664 -exec chmod 644 '{}' \; 1.26 + find $install -type f -perm 775 -exec chmod 755 '{}' \; 1.27 + find $install -type d -perm 775 -exec chmod 755 '{}' \; 1.28 + 1.29 + # install conf files 1.30 install -Dm600 $stuff/my.cnf $install/etc/my.cnf 1.31 install -Dm600 $stuff/mariadb-server.cnf $install/etc/my.cnf.d/mariadb-server.cnf 1.32 1.33 mv $install/usr/sql-bench $install/usr/share 1.34 1.35 install -Dm755 $stuff/etc/init.d/mysql $install/etc/init.d/mysql 1.36 + 1.37 + # move to bin and leave symlink instead 1.38 + mv $install/usr/mysql-test/lib/My/SafeProcess/my_safe_process \ 1.39 + $install/usr/bin/ 1.40 + ln -s ../../../../bin/my_safe_process \ 1.41 + $install/usr/mysql-test/lib/My/SafeProcess/my_safe_process 1.42 } 1.43 1.44 genpkg_rules() { 1.45 case $PACKAGE in 1.46 - *-plugin-rocksdb) 1.47 - copy ha_rocksdb.so 1.48 - CAT="RocksDB (MyRocks) plugin" 1.49 - ;; 1.50 *-test) 1.51 - # missing bin/my_safe_process 1.52 copy bin/mysql_client_test bin/my_safe_process \ 1.53 bin/mysqltest bin/mysqltest_embedded mysql-test/ 1.54 CAT="development|test suite" 1.55 @@ -145,6 +152,11 @@ 1.56 CAT="office|mariabackup tool for physical online backups" 1.57 DEPENDS=" " 1.58 ;; 1.59 + *-embedded) 1.60 + copy libmariadbd.so* libmysqld.so 1.61 + CAT="office|embeddable library" 1.62 + DEPENDS="mariadb-common" 1.63 + ;; 1.64 *-mytop) 1.65 copy bin/mytop 1.66 DEPENDS="perl perl-dbi perl-dbd-mysql perl-getopt-long perl-socket \ 1.67 @@ -157,6 +169,10 @@ 1.68 CAT="office|non-essential server utilities" 1.69 DEPENDS="" 1.70 ;; 1.71 + *-plugin-rocksdb) 1.72 + copy ha_rocksdb.so 1.73 + CAT="RocksDB (MyRocks) plugin" 1.74 + ;; 1.75 *-dev) 1.76 copy @dev @rm 1.77 CAT="office|CLI tool for monitoring MariaDB performance"