libraries/libosinfo: Added (operating systems library).

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2014-09-11 06:19:21 +02:00 committed by Willy Sudiarto Raharjo
parent 0e49370695
commit c76b5681a2
5 changed files with 794 additions and 0 deletions

View file

@ -0,0 +1,647 @@
From 58d5752ad609773136939b1a3d6b547d81c1ba65 Mon Sep 17 00:00:00 2001
From: ponce <matteo.bernardini@gmail.com>
Date: Tue, 9 Sep 2014 11:54:49 +0200
Subject: [PATCH] Add Slackware metadata
---
data/oses/Makefile.am | 1 +
data/oses/slackware.xml.in | 166 +++++++++++++++++++++
po/POTFILES.in | 1 +
.../slackware-13.0-install-dvd.iso.txt | 33 ++++
.../slackware64-13.0-install-dvd.iso.txt | 33 ++++
.../slackware-13.1-install-dvd.iso.txt | 33 ++++
.../slackware64-13.1-install-dvd.iso.txt | 33 ++++
.../slackware-13.37-install-dvd.iso.txt | 33 ++++
.../slackware64-13.37-install-dvd.iso.txt | 33 ++++
.../slackware-14.0-install-dvd.iso.txt | 33 ++++
.../slackware64-14.0-install-dvd.iso.txt | 33 ++++
.../slackware-14.1-install-dvd.iso.txt | 33 ++++
.../slackware64-14.1-install-dvd.iso.txt | 33 ++++
test/test-isodetect.c | 7 +
14 files changed, 505 insertions(+)
create mode 100644 data/oses/slackware.xml.in
create mode 100644 test/isodata/slackware/slackware13.0/slackware-13.0-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware13.0/slackware64-13.0-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware13.1/slackware-13.1-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware13.1/slackware64-13.1-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware13.37/slackware-13.37-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware13.37/slackware64-13.37-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware14.0/slackware-14.0-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware14.0/slackware64-14.0-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware14.1/slackware-14.1-install-dvd.iso.txt
create mode 100644 test/isodata/slackware/slackware14.1/slackware64-14.1-install-dvd.iso.txt
diff --git a/data/oses/Makefile.am b/data/oses/Makefile.am
index e1fb6fb..35769e2 100644
--- a/data/oses/Makefile.am
+++ b/data/oses/Makefile.am
@@ -18,6 +18,7 @@ database_in_files = \
opensuse.xml.in \
rhl.xml.in \
rhel.xml.in \
+ slackware.xml.in \
solaris.xml.in \
suse.xml.in \
ubuntu.xml.in \
diff --git a/data/oses/slackware.xml.in b/data/oses/slackware.xml.in
new file mode 100644
index 0000000..645d390
--- /dev/null
+++ b/data/oses/slackware.xml.in
@@ -0,0 +1,166 @@
+<libosinfo version="0.0.1">
+
+ <os id="http://mirrors.slackware.com/slackware/slackware-13.0">
+ <short-id>slackware13.0</short-id>
+ <_name>Slackware 13.0</_name>
+ <version>13.0</version>
+ <_vendor>Slackware</_vendor>
+ <family>linux</family>
+ <distro>slackware</distro>
+ <release-date>2009-08-26</release-date>
+
+ <media arch="i486">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware-13.0-iso/slackware-13.0-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.0 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/hugesmp.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="x86_64">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware64-13.0-iso/slackware64-13.0-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.0 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/huge.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ </os>
+
+ <os id="http://mirrors.slackware.com/slackware/slackware-13.1">
+ <short-id>slackware13.1</short-id>
+ <_name>Slackware 13.1</_name>
+ <version>13.1</version>
+ <_vendor>Slackware</_vendor>
+ <family>linux</family>
+ <distro>slackware</distro>
+ <upgrades id="http://mirrors.slackware.com/slackware/slackware-13.0"/>
+ <derives-from id="http://mirrors.slackware.com/slackware/slackware-13.0"/>
+ <release-date>2010-05-19</release-date>
+
+ <media arch="i486">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware-13.1-iso/slackware-13.1-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.1 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/hugesmp.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="x86_64">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware64-13.1-iso/slackware64-13.1-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.1 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/huge.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ </os>
+
+ <os id="http://mirrors.slackware.com/slackware/slackware-13.37">
+ <short-id>slackware13.37</short-id>
+ <_name>Slackware 13.37</_name>
+ <version>13.37</version>
+ <_vendor>Slackware</_vendor>
+ <family>linux</family>
+ <distro>slackware</distro>
+ <upgrades id="http://mirrors.slackware.com/slackware/slackware-13.1"/>
+ <derives-from id="http://mirrors.slackware.com/slackware/slackware-13.1"/>
+ <release-date>2011-04-25</release-date>
+
+ <media arch="i486">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware-13.37-iso/slackware-13.37-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.37 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/hugesmp.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="x86_64">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware64-13.37-iso/slackware64-13.37-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 13.37 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/huge.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ </os>
+
+ <os id="http://mirrors.slackware.com/slackware/slackware-14.0">
+ <short-id>slackware14.0</short-id>
+ <_name>Slackware 14.0</_name>
+ <version>14.0</version>
+ <_vendor>Slackware</_vendor>
+ <family>linux</family>
+ <distro>slackware</distro>
+ <upgrades id="http://mirrors.slackware.com/slackware/slackware-13.37"/>
+ <derives-from id="http://mirrors.slackware.com/slackware/slackware-13.37"/>
+ <release-date>2012-09-26</release-date>
+
+ <media arch="i486">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware-14.0-iso/slackware-14.0-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 14.0 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/hugesmp.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="x86_64">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware64-14.0-iso/slackware64-14.0-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 14.0 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/huge.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ </os>
+
+ <os id="http://mirrors.slackware.com/slackware/slackware-14.1">
+ <short-id>slackware14.1</short-id>
+ <_name>Slackware 14.1</_name>
+ <version>14.1</version>
+ <_vendor>Slackware</_vendor>
+ <family>linux</family>
+ <distro>slackware</distro>
+ <upgrades id="http://mirrors.slackware.com/slackware/slackware-14.0"/>
+ <derives-from id="http://mirrors.slackware.com/slackware/slackware-14.0"/>
+ <release-date>2013-11-04</release-date>
+
+ <media arch="i486">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware-14.1-iso/slackware-14.1-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 14.1 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/hugesmp.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ <media arch="x86_64">
+ <url>http://mirrors.slackware.com/slackware/slackware-iso/slackware64-14.1-iso/slackware64-14.1-install-dvd.iso</url>
+ <iso>
+ <volume-id>SlackDVD</volume-id>
+ <application-id>Slackware 14.1 DVD</application-id>
+ <publisher-id></publisher-id>
+ </iso>
+ <kernel>kernels/huge.s/bzImage</kernel>
+ <initrd>isolinux/initrd.img</initrd>
+ </media>
+ </os>
+
+</libosinfo>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a1a551f..7fb4aa2 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
data/oses/netware.xml.in
data/oses/solaris.xml.in
data/oses/dos.xml.in
+data/oses/slackware.xml.in
data/oses/mageia.xml.in
data/oses/mandrake.xml.in
data/oses/mandriva.xml.in
diff --git a/test/isodata/slackware/slackware13.0/slackware-13.0-install-dvd.iso.txt b/test/isodata/slackware/slackware13.0/slackware-13.0-install-dvd.iso.txt
new file mode 100644
index 0000000..0402219
--- /dev/null
+++ b/test/isodata/slackware/slackware13.0/slackware-13.0-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 13.0 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1914167
+El Torito VD version 1 found, boot catalog is in sector 2351
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 930 2352
diff --git a/test/isodata/slackware/slackware13.0/slackware64-13.0-install-dvd.iso.txt b/test/isodata/slackware/slackware13.0/slackware64-13.0-install-dvd.iso.txt
new file mode 100644
index 0000000..ad1a4ec
--- /dev/null
+++ b/test/isodata/slackware/slackware13.0/slackware64-13.0-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 13.0 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1926212
+El Torito VD version 1 found, boot catalog is in sector 2251
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 8CC 2252
diff --git a/test/isodata/slackware/slackware13.1/slackware-13.1-install-dvd.iso.txt b/test/isodata/slackware/slackware13.1/slackware-13.1-install-dvd.iso.txt
new file mode 100644
index 0000000..ca1eca9
--- /dev/null
+++ b/test/isodata/slackware/slackware13.1/slackware-13.1-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 13.1 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 2108672
+El Torito VD version 1 found, boot catalog is in sector 2380
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 94D 2381
diff --git a/test/isodata/slackware/slackware13.1/slackware64-13.1-install-dvd.iso.txt b/test/isodata/slackware/slackware13.1/slackware64-13.1-install-dvd.iso.txt
new file mode 100644
index 0000000..9126fdd
--- /dev/null
+++ b/test/isodata/slackware/slackware13.1/slackware64-13.1-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware64 13.1 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 2134723
+El Torito VD version 1 found, boot catalog is in sector 2333
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 91E 2334
diff --git a/test/isodata/slackware/slackware13.37/slackware-13.37-install-dvd.iso.txt b/test/isodata/slackware/slackware13.37/slackware-13.37-install-dvd.iso.txt
new file mode 100644
index 0000000..316b1c3
--- /dev/null
+++ b/test/isodata/slackware/slackware13.37/slackware-13.37-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 13.37 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 2218788
+El Torito VD version 1 found, boot catalog is in sector 2471
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 9A8 2472
diff --git a/test/isodata/slackware/slackware13.37/slackware64-13.37-install-dvd.iso.txt b/test/isodata/slackware/slackware13.37/slackware64-13.37-install-dvd.iso.txt
new file mode 100644
index 0000000..e1fbdd6
--- /dev/null
+++ b/test/isodata/slackware/slackware13.37/slackware64-13.37-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware64 13.37 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 2254040
+El Torito VD version 1 found, boot catalog is in sector 2424
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 979 2425
diff --git a/test/isodata/slackware/slackware14.0/slackware-14.0-install-dvd.iso.txt b/test/isodata/slackware/slackware14.0/slackware-14.0-install-dvd.iso.txt
new file mode 100644
index 0000000..249b665
--- /dev/null
+++ b/test/isodata/slackware/slackware14.0/slackware-14.0-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 14.0 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1200676
+El Torito VD version 1 found, boot catalog is in sector 681
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 2AA 682
diff --git a/test/isodata/slackware/slackware14.0/slackware64-14.0-install-dvd.iso.txt b/test/isodata/slackware/slackware14.0/slackware64-14.0-install-dvd.iso.txt
new file mode 100644
index 0000000..6fd67cf
--- /dev/null
+++ b/test/isodata/slackware/slackware14.0/slackware64-14.0-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware64 14.0 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1177016
+El Torito VD version 1 found, boot catalog is in sector 664
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 299 665
diff --git a/test/isodata/slackware/slackware14.1/slackware-14.1-install-dvd.iso.txt b/test/isodata/slackware/slackware14.1/slackware-14.1-install-dvd.iso.txt
new file mode 100644
index 0000000..0636efc
--- /dev/null
+++ b/test/isodata/slackware/slackware14.1/slackware-14.1-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware 14.1 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1213132
+El Torito VD version 1 found, boot catalog is in sector 709
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 2C6 710
diff --git a/test/isodata/slackware/slackware14.1/slackware64-14.1-install-dvd.iso.txt b/test/isodata/slackware/slackware14.1/slackware64-14.1-install-dvd.iso.txt
new file mode 100644
index 0000000..3b8df93
--- /dev/null
+++ b/test/isodata/slackware/slackware14.1/slackware64-14.1-install-dvd.iso.txt
@@ -0,0 +1,33 @@
+CD-ROM is in ISO 9660 format
+System id: LINUX
+Volume id: SlackDVD
+Volume set id:
+Publisher id:
+Data preparer id:
+Application id: Slackware64 14.1 DVD
+Copyright File id:
+Abstract File id:
+Bibliographic File id:
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 1190715
+El Torito VD version 1 found, boot catalog is in sector 698
+
+Joliet with UCS level 3 found.
+SUSP signatures version 1 found
+Rock Ridge signatures version 1 found
+Rock Ridge id 'RRIP_1991A'
+Eltorito validation header:
+ Hid 1
+ Arch 0 (x86)
+ ID ''
+ Cksum AA 55 OK
+ Key 55 AA
+ Eltorito defaultboot header:
+ Bootid 88 (bootable)
+ Boot media 0 (No Emulation Boot)
+ Load segment 0
+ Sys type 0
+ Nsect 4
+ Bootoff 58B 1419
diff --git a/test/test-isodetect.c b/test/test-isodetect.c
index 5bd211a..4288cf0 100644
--- a/test/test-isodetect.c
+++ b/test/test-isodetect.c
@@ -408,6 +408,12 @@ START_TEST(test_mageia)
}
END_TEST
+START_TEST(test_slackware)
+{
+ test_one("slackware");
+}
+END_TEST
+
static Suite *
list_suite(void)
{
@@ -424,6 +430,7 @@ list_suite(void)
tcase_add_test(tc, test_opensuse);
tcase_add_test(tc, test_centos);
tcase_add_test(tc, test_gnome);
+ tcase_add_test(tc, test_slackware);
tcase_add_test(tc, test_altlinux);
tcase_add_test(tc, test_mageia);
suite_add_tcase(s, tc);
--
2.1.0

View file

@ -0,0 +1,5 @@
GObject based library API for managing information about operating
systems, hypervisors and the (virtual) hardware devices they can
support. It includes a database containing device metadata and
provides APIs to match/identify optimal devices for deploying
an operating system on a hypervisor.

View file

@ -0,0 +1,113 @@
#!/bin/sh
# Slackware build script for libosinfo
# Copyright 2014 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libosinfo
VERSION=${VERSION:-0.2.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
DOCS="AUTHORS COPYING* ChangeLog NEWS README"
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# add slackware metadata
patch -p1 < $CWD/Add-Slackware-metadata.patch
autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--disable-tests \
--enable-udev \
--enable-vala \
--enable-introspection=yes \
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="libosinfo"
VERSION="0.2.11"
HOMEPAGE="http://libosinfo.org"
DOWNLOAD="https://fedorahosted.org/releases/l/i/libosinfo/libosinfo-0.2.11.tar.gz"
MD5SUM="acfcddc6a3f577524fd705947fb5abbc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="vala"
MAINTAINER="Matteo Bernardini"
EMAIL="ponce@slackbuilds.org"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
libosinfo: libosinfo (operating systems library)
libosinfo:
libosinfo: GObject based library API for managing information about operating
libosinfo: systems, hypervisors and the (virtual) hardware devices they can
libosinfo: support. It includes a database containing device metadata and
libosinfo: provides APIs to match/identify optimal devices for deploying
libosinfo: an operating system on a hypervisor.
libosinfo:
libosinfo: homepage: http://libosinfo.org
libosinfo:
libosinfo: