Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:21:38 JST 2012
Kouhei Sutou 2010-09-05 13:45:06 +0900 (Sun, 05 Sep 2010) New Revision: 042f8818d8c14cc52ecf204d23505fe0b2e2b8c9 https://github.com/mroonga/mroonga/commit/042f8818d8c14cc52ecf204d23505fe0b2e2b8c9 Log: require MySQL root command. Modified files: rpm/centos/mysql-groonga.spec.in rpm/fedora/mysql-groonga.spec.in Modified: rpm/centos/mysql-groonga.spec.in (+10 -4) =================================================================== --- rpm/centos/mysql-groonga.spec.in 2010-09-05 10:38:46 +0900 (b125cb1) +++ rpm/centos/mysql-groonga.spec.in 2010-09-05 13:45:06 +0900 (64725b7) @@ -57,12 +57,18 @@ rm $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_groonga.a rm -rf $RPM_BUILD_ROOT %post -echo "INSTALL PLUGIN groonga SONAME 'ha_groonga.so';" | mysql -u root mysql -: +command="/usr/bin/mysql -u root -e \"INSTALL PLUGIN groonga SONAME 'ha_groonga.so'\"" +echo $command +eval $command || \ + (echo "run the following command to register groonga storage engine:"; \ + echo " $command") %postun -echo "INSTALL PLUGIN groonga SONAME 'ha_groonga.so';" | mysql -u root mysql -: +command="/usr/bin/mysql -u root -e \"UNINSTALL PLUGIN groonga\"" +echo $command +eval $command || \ + (echo "run the following command to unregister groonga storage engine:"; \ + echo " $command") %files %defattr(-,root,root,-) Modified: rpm/fedora/mysql-groonga.spec.in (+10 -4) =================================================================== --- rpm/fedora/mysql-groonga.spec.in 2010-09-05 10:38:46 +0900 (8a90169) +++ rpm/fedora/mysql-groonga.spec.in 2010-09-05 13:45:06 +0900 (fa53b5e) @@ -46,12 +46,18 @@ rm $RPM_BUILD_ROOT%{_libdir}/mysql/plugin/ha_groonga.a rm -rf $RPM_BUILD_ROOT %post -echo "INSTALL PLUGIN groonga SONAME 'ha_groonga.so';" | mysql -u root mysql -: +command="/usr/bin/mysql -u root -p -e \"INSTALL PLUGIN groonga SONAME 'ha_groonga.so'\"" +echo $command +eval $command || \ + (echo "run the following command to register groonga storage engine:"; \ + echo " $command") %postun -echo "INSTALL PLUGIN groonga SONAME 'ha_groonga.so';" | mysql -u root mysql -: +command="/usr/bin/mysql -u root -p -e \"UNINSTALL PLUGIN groonga\"" +echo $command +eval $command || \ + (echo "run the following command to unregister groonga storage engine:"; \ + echo " $command") %files %defattr(-,root,root,-) -------------- next part -------------- HTML����������������������������...Télécharger