wok-next rev 20137
mariadb: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 31 21:42:04 2017 +0100 (2017-10-31) |
parents | f36ee1d882ae |
children | 5281f6693470 |
files | libmariadbclient/receipt mariadb-client/receipt mariadb-dev/receipt mariadb-test/receipt mariadb/receipt syasokoban/receipt |
line diff
1.1 --- a/libmariadbclient/receipt Tue Oct 31 18:57:22 2017 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,27 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="libmariadbclient" 1.7 -VERSION="10.0.11" 1.8 -CATEGORY="misc" 1.9 -SHORT_DESC="SQL database system client libraries." 1.10 -MAINTAINER="pascal.bellard@slitaz.org" 1.11 -LICENSE="GPL2" 1.12 -WEB_SITE="http://mariadb.org/" 1.13 -WANTED="mariadb" 1.14 -PROVIDE="libmysqlclient" 1.15 - 1.16 -DEPENDS="zlib libssl" 1.17 - 1.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 -genpkg_rules() 1.20 -{ 1.21 - mkdir -p $fs/usr/lib/mysql 1.22 - cp -a $install/usr/lib/mysql/libmysqlclient*so* $fs/usr/lib/mysql 1.23 - cd $fs/usr/lib 1.24 - ln -s mysql/libmysqlclient.so . 1.25 - ln -s mysql/libmysqlclient.so.18 . 1.26 - ln -s mysql/libmysqlclient.so.18.0.0 . 1.27 - ln -s mysql/libmysqlclient_r.so . 1.28 - ln -s mysql/libmysqlclient_r.so.18 . 1.29 - ln -s mysql/libmysqlclient_r.so.18.0.0 . 1.30 -}
2.1 --- a/mariadb-client/receipt Tue Oct 31 18:57:22 2017 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,23 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="mariadb-client" 2.7 -VERSION="10.0.11" 2.8 -CATEGORY="office" 2.9 -SHORT_DESC="SQL database system client files." 2.10 -MAINTAINER="erjo@slitaz.org" 2.11 -LICENSE="GPL2" 2.12 -WEB_SITE="http://mariadb.org/" 2.13 -WANTED="mariadb" 2.14 -PROVIDE="mysql_or_postgresql mysql-client" 2.15 - 2.16 -DEPENDS="libmariadbclient zlib ncurses gcc-lib-base ncurses" 2.17 - 2.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.19 -genpkg_rules() 2.20 -{ 2.21 - while read file; do 2.22 - dir=$(dirname $file) 2.23 - [ -d $fs$dir ] || mkdir -p $fs$dir 2.24 - cp -a $install$file $fs$file 2.25 - done < $wanted_stuff/$PACKAGE.files-list 2.26 -}
3.1 --- a/mariadb-dev/receipt Tue Oct 31 18:57:22 2017 +0100 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,29 +0,0 @@ 3.4 -# SliTaz package receipt. 3.5 - 3.6 -PACKAGE="mariadb-dev" 3.7 -VERSION="10.0.11" 3.8 -CATEGORY="development" 3.9 -SHORT_DESC="SQL database system devel files." 3.10 -MAINTAINER="erjo@slitaz.org" 3.11 -LICENSE="GPL2" 3.12 -WEB_SITE="http://mariadb.org/" 3.13 -WANTED="mariadb" 3.14 -PROVIDE="mysql-dev" 3.15 - 3.16 -DEPENDS="zlib" 3.17 - 3.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 3.19 -genpkg_rules() 3.20 -{ 3.21 - mkdir -p $fs/usr/lib/mysql/plugin $fs/usr/share 3.22 - cp -a $install/usr/include $fs/usr 3.23 - cp -a $install/usr/share/aclocal $fs/usr/share 3.24 - cp -a $install/usr/lib/mysql/*.*a $fs/usr/lib/mysql 3.25 - #~ cp -a $install/usr/lib/mysql/plugin/*.*a $fs/usr/lib/mysql/plugin 3.26 - while read file; do 3.27 - dir=$(dirname $file) 3.28 - [ -d $fs$dir ] || mkdir -p $fs$dir 3.29 - cp -a $install$file $fs$file 3.30 - done < $wanted_stuff/$PACKAGE.files-list 3.31 -} 3.32 -
4.1 --- a/mariadb-test/receipt Tue Oct 31 18:57:22 2017 +0100 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,28 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="mariadb-test" 4.7 -VERSION="10.0.11" 4.8 -CATEGORY="misc" 4.9 -SHORT_DESC="SQL database system tests and benchs." 4.10 -MAINTAINER="erjo@slitaz.org" 4.11 -LICENSE="GPL2" 4.12 -WEB_SITE="http://www.mysql.com/" 4.13 -WANTED="mariadb" 4.14 - 4.15 -DEPENDS="mariadb perl libssl" 4.16 - 4.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.18 -genpkg_rules() 4.19 -{ 4.20 - mkdir -p $fs/usr/share 4.21 - cp -a $install/usr/mysql-test $fs/usr 4.22 - cp -a $install/usr/sql-bench $fs/usr 4.23 - find $fs/usr/mysql-test $fs/usr/sql-bench -type d -exec chmod 2777 {} \; 4.24 - while read file; do 4.25 - dir=$(dirname $file) 4.26 - [ -d $fs$dir ] || mkdir -p $fs$dir 4.27 - cp -a $install$file $fs$file 4.28 - done < $wanted_stuff/$PACKAGE.files-list 4.29 - mv $fs/usr/mysql-test $fs/usr/share/mysql-test 4.30 - mv $fs/usr/sql-bench $fs/usr/share/sql-bench 4.31 -}
5.1 --- a/mariadb/receipt Tue Oct 31 18:57:22 2017 +0100 5.2 +++ b/mariadb/receipt Tue Oct 31 21:42:04 2017 +0100 5.3 @@ -1,4 +1,4 @@ 5.4 -# SliTaz package receipt. 5.5 +# SliTaz package receipt v2. 5.6 5.7 PACKAGE="mariadb" 5.8 VERSION="10.0.11" 5.9 @@ -9,17 +9,9 @@ 5.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 5.11 WEB_SITE="http://mariadb.org/en/" 5.12 WGET_URL="http://pangolin.slitaz.org/downloads/sources/$TARBALL" 5.13 -CONFIG_FILES="/etc/mysql" 5.14 -TAZPANEL_DAEMON="man|edit::/etc/mysql/my.cnf|options|web::$WEB_SITE" 5.15 -PROVIDE="mysql" 5.16 5.17 -CONFIG_FILES="/etc/mysql/my.cnf" 5.18 -DATABASE_FILES="/var/lib/mysql" 5.19 -CROSS="bug: can not run test programm" 5.20 - 5.21 -DEPENDS="busybox libmariadbclient mariadb-client zlib slitaz-base-files \ 5.22 -gcc-lib-base" 5.23 BUILD_DEPENDS="cmake ncurses-dev bison openssl-dev" 5.24 +SPLIT="mariadb libmariadbclient mariadb-client mariadb-dev mariadb-test" 5.25 5.26 # Rules to configure and make the package. 5.27 compile_rules() 5.28 @@ -44,37 +36,102 @@ 5.29 # Rules to gen a SliTaz package suitable for Tazpkg. 5.30 genpkg_rules() 5.31 { 5.32 - mkdir -p \ 5.33 - $fs/usr/share \ 5.34 - $fs/usr/lib/mysql/plugin \ 5.35 - $fs/etc/mysql \ 5.36 - $fs/etc/mysql.d \ 5.37 - $fs/var/lib/mysql 5.38 + case $PACKAGE in 5.39 + mariadb) 5.40 + CONFIG_FILES="/etc/mysql" 5.41 + TAZPANEL_DAEMON="man|edit::/etc/mysql/my.cnf|options|web::$WEB_SITE" 5.42 + PROVIDE="mysql" 5.43 + CONFIG_FILES="/etc/mysql/my.cnf" 5.44 + DATABASE_FILES="/var/lib/mysql" 5.45 + CROSS="bug: can not run test programm" 5.46 + DEPENDS="busybox libmariadbclient mariadb-client zlib \ 5.47 + slitaz-base-files gcc-lib-base" 5.48 + mkdir -p \ 5.49 + $fs/usr/share \ 5.50 + $fs/usr/lib/mysql/plugin \ 5.51 + $fs/etc/mysql \ 5.52 + $fs/etc/mysql.d \ 5.53 + $fs/var/lib/mysql 5.54 5.55 - cp -a $install/usr/bin $fs/usr 5.56 - cp -a $install/usr/scripts/* $fs/usr/bin 5.57 - cp -a $install/usr/lib/mysql/plugin/*.so* $fs/usr/lib/mysql/plugin 5.58 - cp -a $install/usr/share/mysql $fs/usr/share 5.59 + cp -a $install/usr/bin $fs/usr 5.60 + cp -a $install/usr/scripts/* $fs/usr/bin 5.61 + cp -a $install/usr/lib/mysql/plugin/*.so* $fs/usr/lib/mysql/plugin 5.62 + cp -a $install/usr/share/mysql $fs/usr/share 5.63 5.64 - # Configuration file 5.65 - cp -a $stuff/etc/init.d $fs/etc 5.66 - cp -a $src/support-files/my-medium.cnf $fs/etc/mysql/my.cnf 5.67 - cp -a $src/support-files/my-small.cnf $fs/etc/mysql 5.68 - grep -q "bind-address" $fs/etc/mysql/my.cnf || sed -i \ 5.69 - 's/^\[mysqld\]/[mysqld]\nbind-address\t= 127.0.0.1/' \ 5.70 - $fs/etc/mysql/my.cnf 5.71 + # Configuration file 5.72 + cp -a $stuff/etc/init.d $fs/etc 5.73 + cp -a $src/support-files/my-medium.cnf $fs/etc/mysql/my.cnf 5.74 + cp -a $src/support-files/my-small.cnf $fs/etc/mysql 5.75 + grep -q "bind-address" $fs/etc/mysql/my.cnf || sed -i \ 5.76 + 's/^\[mysqld\]/[mysqld]\nbind-address\t= 127.0.0.1/' \ 5.77 + $fs/etc/mysql/my.cnf 5.78 5.79 - # Permissions 5.80 - chmod 600 $fs/etc/mysql/my.cnf 5.81 + # Permissions 5.82 + chmod 600 $fs/etc/mysql/my.cnf 5.83 5.84 - cat $stuff/*.files-list | while read file; do 5.85 - [ -f $fs$file ] && rm -f $fs$file 5.86 - done 5.87 - 5.88 + cat $stuff/*.files-list | while read file; do 5.89 + [ -f $fs$file ] && rm -f $fs$file 5.90 + done 5.91 + ;; 5.92 + libmariadbclient) 5.93 + CAT="misc|SQL database system client libraries." 5.94 + PROVIDE="libmysqlclient" 5.95 + DEPENDS="zlib libssl" 5.96 + mkdir -p $fs/usr/lib/mysql 5.97 + cp -a $install/usr/lib/mysql/libmysqlclient*so* $fs/usr/lib/mysql 5.98 + cd $fs/usr/lib 5.99 + ln -s mysql/libmysqlclient.so . 5.100 + ln -s mysql/libmysqlclient.so.18 . 5.101 + ln -s mysql/libmysqlclient.so.18.0.0 . 5.102 + ln -s mysql/libmysqlclient_r.so . 5.103 + ln -s mysql/libmysqlclient_r.so.18 . 5.104 + ln -s mysql/libmysqlclient_r.so.18.0.0 . 5.105 + ;; 5.106 + mariadb-client) 5.107 + CAT="office|SQL database system client files." 5.108 + PROVIDE="mysql_or_postgresql mysql-client" 5.109 + DEPENDS="libmariadbclient zlib ncurses gcc-lib-base ncurses" 5.110 + while read file; do 5.111 + dir=$(dirname $file) 5.112 + [ -d $fs$dir ] || mkdir -p $fs$dir 5.113 + cp -a $install$file $fs$file 5.114 + done < $wanted_stuff/$PACKAGE.files-list 5.115 + ;; 5.116 + mariadb-dev) 5.117 + CAT="development|SQL database system devel files." 5.118 + PROVIDE="mysql-dev" 5.119 + DEPENDS="zlib" 5.120 + mkdir -p $fs/usr/lib/mysql/plugin $fs/usr/share 5.121 + cp -a $install/usr/include $fs/usr 5.122 + cp -a $install/usr/share/aclocal $fs/usr/share 5.123 + cp -a $install/usr/lib/mysql/*.*a $fs/usr/lib/mysql 5.124 + #~ cp -a $install/usr/lib/mysql/plugin/*.*a $fs/usr/lib/mysql/plugin 5.125 + while read file; do 5.126 + dir=$(dirname $file) 5.127 + [ -d $fs$dir ] || mkdir -p $fs$dir 5.128 + cp -a $install$file $fs$file 5.129 + done < $wanted_stuff/$PACKAGE.files-list 5.130 + ;; 5.131 + mariadb-test) 5.132 + CAT="misc|SQL database system tests and benchs." 5.133 + DEPENDS="mariadb perl libssl" 5.134 + mkdir -p $fs/usr/share 5.135 + cp -a $install/usr/mysql-test $fs/usr 5.136 + cp -a $install/usr/sql-bench $fs/usr 5.137 + find $fs/usr/mysql-test $fs/usr/sql-bench -type d -exec chmod 2777 {} \; 5.138 + while read file; do 5.139 + dir=$(dirname $file) 5.140 + [ -d $fs$dir ] || mkdir -p $fs$dir 5.141 + cp -a $install$file $fs$file 5.142 + done < $wanted_stuff/$PACKAGE.files-list 5.143 + mv $fs/usr/mysql-test $fs/usr/share/mysql-test 5.144 + mv $fs/usr/sql-bench $fs/usr/share/sql-bench 5.145 + ;; 5.146 + esac 5.147 } 5.148 5.149 # Pre and post install commands for Tazpkg. 5.150 -post_install() 5.151 +post_install_mariadb() 5.152 { 5.153 5.154 local user 5.155 @@ -101,7 +158,7 @@ 5.156 EOF 5.157 } 5.158 5.159 -pre_install() 5.160 +pre_install_mariadb() 5.161 { 5.162 # Cleanup old files 5.163 rm -f "$1/usr/libexec/mysql"* 5.164 @@ -109,8 +166,8 @@ 5.165 [ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf" 5.166 } 5.167 5.168 -post_remove() 5.169 +post_remove_mariadb() 5.170 { 5.171 - echo "Removing user/group mysl" 5.172 + echo "Removing user/group mysql" 5.173 deluser mysql 5.174 }
6.1 --- a/syasokoban/receipt Tue Oct 31 18:57:22 2017 +0100 6.2 +++ b/syasokoban/receipt Tue Oct 31 21:42:04 2017 +0100 6.3 @@ -16,7 +16,7 @@ 6.4 # Rules to configure and make the package. 6.5 compile_rules() 6.6 { 6.7 - cd $src 6.8 + sed -i 's|<stdlib.h>|&\n#include <unistd.h>|' src/Main.cpp 6.9 if [ ! -f gcc44.u.done ]; then 6.10 patch -p0 < $stuff/gcc44.u 6.11 touch gcc44.u.done 6.12 @@ -32,4 +32,3 @@ 6.13 cp -a $stuff/sokoban.desktop $fs/usr/share/applications 6.14 cp -a $stuff/syasokoban $fs/usr/bin/syasokoban 6.15 } 6.16 -