Pieter Ennes avatar Pieter Ennes committed 975d973

debian (and redhat) packaging updates

Comments (0)

Files changed (8)

 
     $ apt-get install libc6-dev libmysqlclient-dev libidn11-dev
 
+
 Retrieve the source, from trunk:
 
     $ hg clone https://bitbucket.org/watchmouse/mysql-udf-ipv6
     $ curl https://bitbucket.org/watchmouse/mysql-udf-ipv6/get/tip.tar.bz2 | tar xvfj -
     $ cd watchmouse-mysql-udf-ipv6-tip
 
-Compile the UDF:
+Brian P Kroth was so kind to provide me with his Debian packaging work, which is now included:
+
+    $ dpkg-buildpackage -us -uc
+    $ sudo dpkg -i ../mysql-udf-ipv6_0.4_amd64.deb
+
+If you're not on Debian, compile the UDFs simply with:
 
     $ make
 
-Install the shared objects in your MySQL plugin directory:
+and install the shared objects into your MySQL plug-in directory:
 
     $ sudo make install
 
+mysql-udf-ipv6 (0.4) natty; urgency=low
+
+  * Adding internationalized domain name functions.
+
+ -- Pieter Ennes <pieter@watchmouse.com>  Wed, 10 Aug 2011 00:06:31 +0100
+
 mysql-udf-ipv6 (0.3-1.3) maverick; urgency=low
 
   * Use symlink hack for now to support both /usr/lib and /usr/lib/mysql/plugin install dirs.
   * Some dependency fiddling for Maverick.
 
- -- Pieter Ennes <pieter@kite>  Tue, 19 Oct 2010 00:12:13 +0100
+ -- Pieter Ennes <pieter@watchmouse.com>  Tue, 19 Oct 2010 00:12:13 +0100
 
 mysql-udf-ipv6 (0.3-1.2) lenny; urgency=low
 
 Source: mysql-udf-ipv6
 Priority: extra
 Maintainer: Brian P Kroth <bpkroth@cae.wisc.edu>
-Build-Depends: debhelper (>= 7), libmysqlclient-dev (>= 5.0.51) | libmysqlclient15-dev (>= 5.0.51) | libmysqlclient16-dev (>= 5.1.43)
+Build-Depends: debhelper (>= 7), libc6-dev, libmysqlclient-dev (>= 5.0.51) | libmysqlclient15-dev (>= 5.0.51) | libmysqlclient16-dev (>= 5.1.43), libidn11-dev
 Standards-Version: 3.7.3
 Section: libs
 Homepage: http://labs.watchmouse.com/2009/10/extending-mysql-5-with-ipv6-functions/
 Package: mysql-udf-ipv6
 Section: libs
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, mysql-server (>= 5.0.51) | mysql-server-5.0 (>= 5.0.51) | mysql-server-5.1 (>= 5.1.43)
-Description: An ipv6 user defined function library for MySQL.
+Depends: ${shlibs:Depends}, ${misc:Depends}, mysql-server (>= 5.0.51) | mysql-server-5.0 (>= 5.0.51) | mysql-server-5.1 (>= 5.1.43), libidn11
+Description: A user defined library for MySQL containing IPv6 and IDNA support functions.
  This library provides IPv6 inet_ntoa()/inet6_pton() and inet_aton()/inet6_ntop() support as user defined functions for MySQL.
+ It also provides support for internationalised domain names via idna_from_ascii() and idna_to_ascii() functions.
-This package was debianized by Brian P Kroth <bpkroth@cae.wisc.edu> on
-Mon, 20 Sep 2010 16:10:42 -0500.
+This package was debianized by Brian P Kroth <bpkroth@cae.wisc.edu> on Mon, 20 Sep 2010 16:10:42 -0500.
 
 It was downloaded from <http://labs.watchmouse.com/2009/10/extending-mysql-5-with-ipv6-functions/>
 
 
 Copyright:
 
-    Copyright ©2009-2010 WatchMouse
+    Copyright ©2009-2011 WatchMouse
 
 License:
 

debian/mysql-udf-ipv61.install

-usr/lib/mysql_udf_ipv6.so
+usr/lib/mysql/plugin/mysql_udf_ipv6.so
 CREATE FUNCTION inet6_lookup RETURNS STRING SONAME "mysql_udf_ipv6.so";
 DROP FUNCTION IF EXISTS inet6_rlookup;
 CREATE FUNCTION inet6_rlookup RETURNS STRING SONAME "mysql_udf_ipv6.so";
+DROP FUNCTION IF EXISTS idna_to_ascii;
+CREATE FUNCTION idna_to_ascii RETURNS STRING SONAME "mysql_udf_idna.so";
+DROP FUNCTION IF EXISTS idna_from_ascii;
+CREATE FUNCTION idna_from_ascii RETURNS STRING SONAME "mysql_udf_idna.so";
 ' \
 	| /usr/bin/mysql --defaults-extra-file=/etc/mysql/debian.cnf mysql
     ;;
 #DEBHELPER#
 
 exit 0
-
-
 DROP FUNCTION IF EXISTS inet6_mask;
 DROP FUNCTION IF EXISTS inet6_lookup;
 DROP FUNCTION IF EXISTS inet6_rlookup;
+DROP FUNCTION IF EXISTS idna_to_ascii;
+DROP FUNCTION IF EXISTS idna_from_ascii;
 ' \
 	| /usr/bin/mysql --defaults-extra-file=/etc/mysql/debian.cnf mysql
 ;;

mysql-udf-ipv6.spec

 mkdir -p $RPM_BUILD_ROOT/usr/lib/mysql/plugin
 make install 
 cp /usr/lib/mysql/plugin/mysql_udf_ipv6.so $RPM_BUILD_ROOT/usr/lib/mysql/plugin/
+cp /usr/lib/mysql/plugin/mysql_udf_idna.so $RPM_BUILD_ROOT/usr/lib/mysql/plugin/
 
 %files
 %defattr(-,root,root)
 %doc README
 %doc Changelog
 /usr/lib/mysql/plugin/mysql_udf_ipv6.so
+/usr/lib/mysql/plugin/mysql_udf_idna.so
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.