[Groonga-mysql-commit] mroonga/mroonga at 7e871e6 [master] debian: support Debian

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 30 13:08:06 JST 2014


Kouhei Sutou	2014-05-30 13:08:06 +0900 (Fri, 30 May 2014)

  New Revision: 7e871e6cbe71e11db1d14bc20b712e021a0def2a
  https://github.com/mroonga/mroonga/commit/7e871e6cbe71e11db1d14bc20b712e021a0def2a

  Message:
    debian: support Debian

  Modified files:
    packages/debian/rules

  Modified: packages/debian/rules (+6 -1)
===================================================================
--- packages/debian/rules    2014-05-30 13:02:14 +0900 (0ccf1ed)
+++ packages/debian/rules    2014-05-30 13:08:06 +0900 (8bcd911)
@@ -12,7 +12,12 @@ export MYSQL_VERSION := $(shell apt-cache show mysql-server-5.5 | grep Version |
 	dh $@
 
 override_dh_auto_configure:
-	wget http://archive.ubuntu.com/ubuntu/pool/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;		\
+	else							\
+	  base_url=http://ftp.debian.org/debian;		\
+	fi;							\
+	wget $${base_url}/pool/main/m/mysql-5.5/mysql-5.5_$(MYSQL_VERSION).orig.tar.gz
 	tar xf mysql-5.5_$(MYSQL_VERSION).orig.tar.gz
 	dh_auto_configure -- --with-mysql-source=./mysql-$(MYSQL_VERSION)
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index