aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-13 19:33:48 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-13 19:35:36 +0200
commiteef6c849c78965014701c850db4aa802f6efdb2b (patch)
treecce379fd0ee8619a0754d15d0e2577779fe32a27
parent9e66861aecdb943a6da108f29a58622d6b676ce5 (diff)
downloadaports-eef6c849c78965014701c850db4aa802f6efdb2b.tar.bz2
aports-eef6c849c78965014701c850db4aa802f6efdb2b.tar.xz
testing/osinfo-db: add entry for alpinelinux
-rw-r--r--testing/osinfo-db/0001-Add-alpine-linux-3.5-and-3.6.patch76
-rw-r--r--testing/osinfo-db/APKBUILD42
2 files changed, 115 insertions, 3 deletions
diff --git a/testing/osinfo-db/0001-Add-alpine-linux-3.5-and-3.6.patch b/testing/osinfo-db/0001-Add-alpine-linux-3.5-and-3.6.patch
new file mode 100644
index 0000000000..df71edd67f
--- /dev/null
+++ b/testing/osinfo-db/0001-Add-alpine-linux-3.5-and-3.6.patch
@@ -0,0 +1,76 @@
+From 823ec57aa1865b1e021f75ab685066ae726d826d Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 13 Jun 2017 12:14:46 +0200
+Subject: [PATCH] Add alpine linux 3.5 and 3.6
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ data/os/alpinelinux.org/alpinelinux-3.5.xml.in | 23 +++++++++++++++++++++++
+ data/os/alpinelinux.org/alpinelinux-3.6.xml.in | 25 +++++++++++++++++++++++++
+ 2 files changed, 48 insertions(+)
+ create mode 100644 data/os/alpinelinux.org/alpinelinux-3.5.xml.in
+ create mode 100644 data/os/alpinelinux.org/alpinelinux-3.6.xml.in
+
+diff --git a/data/os/alpinelinux.org/alpinelinux-3.5.xml.in b/data/os/alpinelinux.org/alpinelinux-3.5.xml.in
+new file mode 100644
+index 0000000..5775396
+--- /dev/null
++++ b/data/os/alpinelinux.org/alpinelinux-3.5.xml.in
+@@ -0,0 +1,23 @@
++<libosinfo version="0.0.1">
++<!-- Licensed under the GNU General Public License version 2 or later.
++ See http://www.gnu.org/licenses/ for a copy of the license text -->
++ <os id="http://alpinelinux.org/alpinelinux/3.5">
++ <short-id>alpinelinux3.5</short-id>
++ <_name>Alpine Linux 3.5</_name>
++ <version>3.5</version>
++ <_vendor>Alpine Linux Project</_vendor>
++ <family>linux</family>
++ <distro>alpinelinux</distro>
++
++ <media arch="i686">
++ <iso>
++ <volume-id>alpine-.* 3.5.\d x86.*</volume-id>
++ </iso>
++ </media>
++ <media arch="x86_64">
++ <iso>
++ <volume-id>alpine-.* 3.5.\d x86_64.*</volume-id>
++ </iso>
++ </media>
++ </os>
++</libosinfo>
+diff --git a/data/os/alpinelinux.org/alpinelinux-3.6.xml.in b/data/os/alpinelinux.org/alpinelinux-3.6.xml.in
+new file mode 100644
+index 0000000..fb1856f
+--- /dev/null
++++ b/data/os/alpinelinux.org/alpinelinux-3.6.xml.in
+@@ -0,0 +1,25 @@
++<libosinfo version="0.0.1">
++<!-- Licensed under the GNU General Public License version 2 or later.
++ See http://www.gnu.org/licenses/ for a copy of the license text -->
++ <os id="http://alpinelinux.org/alpinelinux/3.6">
++ <short-id>alpinelinux3.6</short-id>
++ <_name>Alpine Linux 3.6</_name>
++ <version>3.6</version>
++ <_vendor>Alpine Linux Project</_vendor>
++ <family>linux</family>
++ <distro>alpinelinux</distro>
++ <upgrades id="http://alpinelinux.org/alpinelinux/3.5"/>
++ <derives-from id="http://alpinelinux.org/alpinelinux/3.5"/>
++
++ <media arch="i686">
++ <iso>
++ <volume-id>alpine-.* 3.6.\d x86.*</volume-id>
++ </iso>
++ </media>
++ <media arch="x86_64">
++ <iso>
++ <volume-id>alpine-.* 3.6.\d x86_64.*</volume-id>
++ </iso>
++ </media>
++ </os>
++</libosinfo>
+--
+2.13.0
+
diff --git a/testing/osinfo-db/APKBUILD b/testing/osinfo-db/APKBUILD
index 3b104b98eb..181f019105 100644
--- a/testing/osinfo-db/APKBUILD
+++ b/testing/osinfo-db/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osinfo-db
pkgver=20170423
-pkgrel=0
+pkgrel=1
pkgdesc="osinfo database files"
url="http://libosinfo.org/"
arch="noarch"
@@ -10,7 +10,9 @@ depends=""
makedepends="osinfo-db-tools"
install=""
subpackages=""
-source="https://releases.pagure.org/libosinfo/osinfo-db-$pkgver.tar.xz"
+source="https://releases.pagure.org/libosinfo/osinfo-db-$pkgver.tar.xz
+ 0001-Add-alpine-linux-3.5-and-3.6.patch
+ "
builddir="$srcdir/osinfo-db-$pkgver"
build() {
@@ -25,6 +27,40 @@ package() {
cd "$builddir"
osinfo-db-import --root "$pkgdir" \
--dir /usr/share/osinfo "$srcdir"/osinfo-db-$pkgver.tar.xz
+ mkdir -p "$pkgdir"/usr/share/osinfo/os/alpinelinux
+ cat > "$pkgdir"/usr/share/osinfo/os/alpinelinux/alpinelinux-3.6.xml<<EOF
+<?xml version="1.0" encoding="UTF-8"?>
+<libosinfo version="0.0.1">
+
+ <os id="http://alpinelinux.org/alpinelinux/3.6">
+ <short-id>alpinelinux3.6</short-id>
+ <name>Alpine Linux 3.6</name>
+ <version>3.6</version>
+ <vendor>Alpine Linux Project</vendor>
+ <family>linux</family>
+ <distro>alpinelinux</distro>
+ <resources arch="all">
+ <recommended>
+ <cpu>1000000000</cpu>
+ <n-cpus>1</n-cpus>
+ <ram>1073741824</ram>
+ <storage>5368709120</storage>
+ </recommended>
+ </resources>
+ <media arch="i686">
+ <iso>
+ <volume-id>alpine-.* 3.6.\d x86.*</volume-id>
+ </iso>
+ </media>
+ <media arch="x86_64">
+ <iso>
+ <volume-id>alpine-.* 3.6.\d x86_64.*</volume-id>
+ </iso>
+ </media>
+ </os>
+EOF
+
}
-sha512sums="5ca13ced160f19dced65f3552e17a0379a47a05f1aa3bdd533550022f0023050b6cc1b43b2da6cff3fa10451f81560fbb0db241a11ed072b9f101db1bd301833 osinfo-db-20170423.tar.xz"
+sha512sums="5ca13ced160f19dced65f3552e17a0379a47a05f1aa3bdd533550022f0023050b6cc1b43b2da6cff3fa10451f81560fbb0db241a11ed072b9f101db1bd301833 osinfo-db-20170423.tar.xz
+f56cc5598fcc426e1c1b03814c9e6167602d7ebb096f7a0288ba6c432910405d26692135d7edd13c9d3de11507d1b361a1951056952a462f951d9b75be71f17f 0001-Add-alpine-linux-3.5-and-3.6.patch"