Kouhei Sutou
null+****@clear*****
Thu Oct 29 15:59:40 JST 2015
Kouhei Sutou 2015-10-29 15:59:40 +0900 (Thu, 29 Oct 2015) New Revision: 39a0fb52a9deb5feb1e0df7e48817b67ade6f2fb https://github.com/mroonga/mroonga/commit/39a0fb52a9deb5feb1e0df7e48817b67ade6f2fb Message: package ubuntu: support Wily Modified files: packages/debian/rules packages/ubuntu/upload.rb Modified: packages/debian/rules (+21 -12) =================================================================== --- packages/debian/rules 2015-10-29 15:14:21 +0900 (2a397b3) +++ packages/debian/rules 2015-10-29 15:59:40 +0900 (c566a04) @@ -6,23 +6,32 @@ # This has to be exported to make some magic below work. export DH_OPTIONS -export MYSQL_VERSION := $(shell apt-cache show mysql-server-5.5 | grep Version | head -n 1 | awk '{print $$2}' | awk -F '-' '{print $$1}') +export MYSQL_VERSION := $(shell apt-cache show mysql-server-5.6 mysql-server-5.5 | grep Version | head -n 1 | awk '{print $$2}' | awk -F '-' '{print $$1}') %: dh $@ override_dh_auto_configure: - path=main/m/mysql-5.5/mysql-5.5_$(MYSQL_VERSION).orig.tar.gz; \ - if [ "$$(lsb_release --id --short)" = "Ubuntu" ]; then \ - base_url=http://archive.ubuntu.com/ubuntu/pool; \ - security_base_url=http://security.ubuntu.com/ubuntu/pool; \ - else \ - base_url=http://ftp.debian.org/debian/pool; \ - security_base_url=http://security.debian.org/pool/updates; \ - fi; \ - wget $${security_base_url}/$${path} || \ - wget $${base_url}/$${path} - tar xf mysql-5.5_$(MYSQL_VERSION).orig.tar.gz + case "$(MYSQL_VERSION)" in \ + 5.5.*) \ + archive=mysql-5.5_$(MYSQL_VERSION).orig.tar.gz; \ + path=main/m/mysql-5.5/$${archive}; \ + ;; \ + 5.6.*) \ + archive=mysql-5.6_$(MYSQL_VERSION).orig.tar.gz; \ + path=main/m/mysql-5.6/$${archive}; \ + ;; \ + esac; \ + if [ "$$(lsb_release --id --short)" = "Ubuntu" ]; then \ + base_url=http://archive.ubuntu.com/ubuntu/pool; \ + security_base_url=http://security.ubuntu.com/ubuntu/pool; \ + else \ + base_url=http://ftp.debian.org/debian/pool; \ + security_base_url=http://security.debian.org/pool/updates; \ + fi; \ + wget $${security_base_url}/$${path} || \ + wget $${base_url}/$${path}; \ + tar xf $${archive} dh_auto_configure -- --with-mysql-source=./mysql-$(MYSQL_VERSION) # disable 'make check'. Modified: packages/ubuntu/upload.rb (+1 -1) =================================================================== --- packages/ubuntu/upload.rb 2015-10-29 15:14:21 +0900 (8743520) +++ packages/ubuntu/upload.rb 2015-10-29 15:59:40 +0900 (7d84ae5) @@ -125,7 +125,7 @@ allow_unsigned_uploads = 0 "--newversion", deb_version, "Build for #{code_name}.") case code_name - when "vivid" + when "vivid", "wily" run_command("sed", "-i", "-e", "s,5\\.5,5.6,g", "debian/rules") -------------- next part -------------- HTML����������������������������...Download