From 6dd77065c3beb4aa32218d76ba27efb83d507f42 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 15 Mar 2019 22:57:16 +0100 Subject: apn-conf: generate Android-compatible APN list Some distros (Ubuntu Touch) read out Android-style APN list. Generate one from our database so they can use it. https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info/merge_requests/4 --- .gitignore | 1 + Makefile.am | 5 +++ apns-conf.xsl | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 5 +++ 4 files changed, 125 insertions(+) create mode 100644 apns-conf.xsl diff --git a/.gitignore b/.gitignore index 41211bd..5a9a8ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /Makefile /Makefile.in /aclocal.m4 +/apns-conf.xml /autom4te.cache/ /config.log /config.status diff --git a/Makefile.am b/Makefile.am index 646d47c..c023a6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,11 @@ EXTRA_DIST = mobile-broadband-provider-info.pc.in pkgconfigdir = $(datadir)/pkgconfig pkgconfig_DATA = mobile-broadband-provider-info.pc +apns-conf.xml: $(top_srcdir)/apns-conf.xsl $(top_srcdir)/$(SP_XML_DB) + $(AM_V_GEN) $(XSLTPROC) --output $@ $^ + +pkgdata_DATA = apns-conf.xml + check-local: xmllint --valid $(top_srcdir)/$(SP_XML_DB) 2>&1 > /dev/null || exit 1; diff --git a/apns-conf.xsl b/apns-conf.xsl new file mode 100644 index 0000000..f0b4f68 --- /dev/null +++ b/apns-conf.xsl @@ -0,0 +1,114 @@ + + + + + + + + Automatically generated from serviceproviders.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8080 + + + + + + + ,supl + ,mms + + + + + + + + diff --git a/configure.ac b/configure.ac index dece33f..3ff5161 100755 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,11 @@ AC_INIT(mobile-broadband-provider-info, 20190116, dcbw@redhat.com, mobile-broadb AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dist-gzip dist-bzip2]) AM_MAINTAINER_MODE([enable]) +AC_PATH_PROG(XSLTPROC, xsltproc) +if test -z "$XSLTPROC"; then + AC_MSG_ERROR([xsltproc not found]) +fi + AC_CONFIG_FILES([ Makefile mobile-broadband-provider-info.pc -- cgit v1.2.1