diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-filesystems | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-filesystems')
28 files changed, 1528 insertions, 0 deletions
diff --git a/meta-filesystems/COPYING.MIT b/meta-filesystems/COPYING.MIT new file mode 100644 index 000000000..89de35479 --- /dev/null +++ b/meta-filesystems/COPYING.MIT | |||
@@ -0,0 +1,17 @@ | |||
1 | Permission is hereby granted, free of charge, to any person obtaining a copy | ||
2 | of this software and associated documentation files (the "Software"), to deal | ||
3 | in the Software without restriction, including without limitation the rights | ||
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
5 | copies of the Software, and to permit persons to whom the Software is | ||
6 | furnished to do so, subject to the following conditions: | ||
7 | |||
8 | The above copyright notice and this permission notice shall be included in | ||
9 | all copies or substantial portions of the Software. | ||
10 | |||
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
17 | THE SOFTWARE. | ||
diff --git a/meta-filesystems/README b/meta-filesystems/README new file mode 100644 index 000000000..639d9eecd --- /dev/null +++ b/meta-filesystems/README | |||
@@ -0,0 +1,144 @@ | |||
1 | This README file contains information on the contents of the | ||
2 | filesystems layer. | ||
3 | |||
4 | Please see the corresponding sections below for details. | ||
5 | |||
6 | |||
7 | Dependencies | ||
8 | ============ | ||
9 | |||
10 | This layer depends on: | ||
11 | |||
12 | URI: git://git.openembedded.org/bitbake | ||
13 | branch: 1.24 | ||
14 | |||
15 | URI: git://git.openembedded.org/openembedded-core | ||
16 | layers: meta | ||
17 | branch: dizzy | ||
18 | |||
19 | URI: git://git.openembedded.org/meta-openembedded | ||
20 | layers: meta-oe | ||
21 | branch: dizzy | ||
22 | |||
23 | Patches | ||
24 | ======= | ||
25 | |||
26 | Please submit any patches against the filesystems layer to the | ||
27 | OpenEmbedded development mailing list (openembedded-devel@lists.openembedded.org) | ||
28 | with '[meta-filesystems][dizzy]' in the subject. | ||
29 | |||
30 | Dizzy branch maintainers: | ||
31 | Otavio Salvador <otavio@ossystems.com.br> | ||
32 | Armin Kuster <akuster808@gmail.com> | ||
33 | |||
34 | Prefix email subject with: [dizzy] | ||
35 | |||
36 | Maintainers List: | ||
37 | physfs Andreas Müller <schnitzeltony@googlemail.com> | ||
38 | |||
39 | fuse Koen Kooi <koen@dominion.thruhere.net> | ||
40 | Philip Balister <philip@balister.org> | ||
41 | hongxu jia <hongxu.jia@windriver.com> | ||
42 | |||
43 | ifuse Sander van Grieken <sander@outrightsolutions.nl> | ||
44 | Koen Kooi <koen@dominion.thruhere.net> | ||
45 | |||
46 | sshfs-fuse Philip Balister <philip@balister.org> | ||
47 | Koen Kooi <koen@dominion.thruhere.net> | ||
48 | |||
49 | owfs Otavio Salvador <otavio@ossystems.com.br> | ||
50 | Koen Kooi <koen@dominion.thruhere.net> | ||
51 | hongxu jia <hongxu.jia@windriver.com> | ||
52 | |||
53 | ntfs-3g-ntfsprogs Otavio Salvador <otavio@ossystems.com.br> | ||
54 | hongxu jia <hongxu.jia@windriver.com> | ||
55 | |||
56 | cramfs Koen Kooi <koen@dominion.thruhere.net> | ||
57 | |||
58 | smbnetfs Sander van Grieken <sander@outrightsolutions.nl> | ||
59 | Koen Kooi <koen@dominion.thruhere.net> | ||
60 | |||
61 | fuse-exfat hongxu jia <hongxu.jia@windriver.com> | ||
62 | |||
63 | exfat-utils hongxu jia <hongxu.jia@windriver.com> | ||
64 | |||
65 | f2fs-tools Martin Jansa <Martin.Jansa@gmail.com> | ||
66 | Koen Kooi <koen@dominion.thruhere.net> | ||
67 | |||
68 | xfsprogs Koen Kooi <koen@dominion.thruhere.net> | ||
69 | hongxu jia <hongxu.jia@windriver.com> | ||
70 | |||
71 | When sending single patches, please use something like: | ||
72 | |||
73 | git send-email -1 -M \ | ||
74 | --to openembedded-devel@lists.openembedded.org \ | ||
75 | --subject-prefix=meta-filesystems][PATCH | ||
76 | |||
77 | |||
78 | Table of Contents | ||
79 | ================= | ||
80 | |||
81 | I. Adding the filesystems layer to your build | ||
82 | II. Misc | ||
83 | |||
84 | |||
85 | I. Adding the filesystems layer to your build | ||
86 | ================================================= | ||
87 | |||
88 | In order to use this layer, you need to make the build system aware of | ||
89 | it. | ||
90 | |||
91 | Assuming the filesystems layer exists at the top-level of your | ||
92 | yocto build tree, you can add it to the build system by adding the | ||
93 | location of the filesystems layer to bblayers.conf, along with any | ||
94 | other layers needed. e.g.: | ||
95 | |||
96 | BBLAYERS ?= " \ | ||
97 | /path/to/yocto/meta \ | ||
98 | /path/to/yocto/meta-oe \ | ||
99 | /path/to/yocto/meta-filesystems \ | ||
100 | " | ||
101 | |||
102 | |||
103 | II. Misc | ||
104 | ======== | ||
105 | |||
106 | --- physfs --- | ||
107 | A library to provide abstract access to various archives | ||
108 | |||
109 | --- fuse --- | ||
110 | Filesystem in Userspace (FUSE) is a simple interface for userspace programs | ||
111 | to export a virtual filesystem to the Linux kernel. | ||
112 | |||
113 | --- ifuse --- | ||
114 | A fuse filesystem to access the contents of an iPhone or iPod Touch | ||
115 | |||
116 | --- sshfs-fuse --- | ||
117 | A filesystem client based on the SSH File Transfer Protocol | ||
118 | |||
119 | --- owfs --- | ||
120 | An easy way to use the 1-Wire file system | ||
121 | |||
122 | --- ntfs-3g-ntfsprogs --- | ||
123 | The ntfs-3g is a freely available read/write NTFS driver for Linux and | ||
124 | ntfsprogs includes utilities for doing all required tasks to NTFS partitions. | ||
125 | |||
126 | --- cramfs --- | ||
127 | Builds cramfs filesystems for embedded systems | ||
128 | |||
129 | --- smbnetfs --- | ||
130 | SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft | ||
131 | network in the same manner as the network neighborhood in Microsoft Windows. | ||
132 | |||
133 | --- fuse-exfat --- | ||
134 | A read and write exFAT driver for FUSE | ||
135 | |||
136 | --- exfat-utils --- | ||
137 | Utilities to create, check, label and dump exFAT filesystem | ||
138 | |||
139 | --- f2fs-tools --- | ||
140 | Tools needed for creating and managing f2fs partitions | ||
141 | |||
142 | --- xfsprogs --- | ||
143 | It provides XFS filesystem utilities. | ||
144 | |||
diff --git a/meta-filesystems/conf/layer.conf b/meta-filesystems/conf/layer.conf new file mode 100644 index 000000000..9ed6d1b73 --- /dev/null +++ b/meta-filesystems/conf/layer.conf | |||
@@ -0,0 +1,16 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "filesystems-layer" | ||
9 | BBFILE_PATTERN_filesystems-layer = "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_filesystems-layer = "6" | ||
11 | |||
12 | # This should only be incremented on significant changes that will | ||
13 | # cause compatibility issues with other layers | ||
14 | LAYERVERSION_filesystems-layer = "1" | ||
15 | |||
16 | LAYERDEPENDS_filesystems-layer = "core openembedded-layer" | ||
diff --git a/meta-filesystems/recipes-filesystems/fuse-exfat/fuse-exfat_1.0.1.bb b/meta-filesystems/recipes-filesystems/fuse-exfat/fuse-exfat_1.0.1.bb new file mode 100644 index 000000000..f984c4bb7 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/fuse-exfat/fuse-exfat_1.0.1.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "read and write exFAT driver for FUSE" | ||
2 | DESCRIPTION = "fuse-exfat is a read and write driver implementing the \ | ||
3 | extended file allocation table as a filesystem in userspace. A mounthelper \ | ||
4 | is provided unter the name mount.exfat-fuse. \ | ||
5 | " | ||
6 | HOMEPAGE = "http://code.google.com/p/exfat/" | ||
7 | SECTION = "universe/otherosfs" | ||
8 | LICENSE = "GPLv3" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
10 | SRC_URI = "${DEBIAN_MIRROR}/main/f/fuse-exfat/fuse-exfat_${PV}.orig.tar.gz \ | ||
11 | " | ||
12 | DEPENDS = "fuse virtual/libc" | ||
13 | RRECOMMENDS_${PN} = "util-linux-mount" | ||
14 | |||
15 | inherit scons | ||
16 | |||
17 | SRC_URI[md5sum] = "7988a5111841593231f20af22153362d" | ||
18 | SRC_URI[sha256sum] = "12ac1ba1b7d4343bef64e7898176705a41cfe3b5a7a179e28549d242e2854758" | ||
19 | |||
20 | EXTRA_OESCONS = " \ | ||
21 | DESTDIR=${D}/${base_sbindir} \ | ||
22 | " | ||
23 | |||
24 | do_install_prepend() { | ||
25 | install -d ${D}/${base_sbindir} | ||
26 | } | ||
diff --git a/meta-filesystems/recipes-filesystems/ifuse/ifuse_1.1.2.bb b/meta-filesystems/recipes-filesystems/ifuse/ifuse_1.1.2.bb new file mode 100644 index 000000000..42f4c872b --- /dev/null +++ b/meta-filesystems/recipes-filesystems/ifuse/ifuse_1.1.2.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "A fuse filesystem to access the contents of an iPhone or iPod Touch" | ||
2 | LICENSE = "LGPLv2.1" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=6ab17b41640564434dda85c06b7124f7" | ||
4 | HOMEPAGE ="http://www.libimobiledevice.org/" | ||
5 | |||
6 | PNBLACKLIST[ifuse] ?= "depends on blacklisted libimobiledevice" | ||
7 | DEPENDS = "fuse libimobiledevice" | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | http://www.libimobiledevice.org/downloads/ifuse-${PV}.tar.bz2 \ | ||
11 | " | ||
12 | |||
13 | SRC_URI[md5sum] = "4152526b2ac3c505cb41797d997be14d" | ||
14 | SRC_URI[sha256sum] = "47835c8afb72588b3202fe0b206d7ea37a68663d9aa4eaf73f0a4bcb6215fc05" | ||
15 | |||
16 | inherit autotools pkgconfig | ||
diff --git a/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2013.1.13.bb b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2013.1.13.bb new file mode 100644 index 000000000..6957ea92b --- /dev/null +++ b/meta-filesystems/recipes-filesystems/ntfs-3g-ntfsprogs/ntfs-3g-ntfsprogs_2013.1.13.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "The NTFS-3G driver is an open source, freely available NTFS driver for Linux with read and write support." | ||
2 | HOMEPAGE = "http://www.ntfs-3g.org/" | ||
3 | DEPENDS = "fuse libgcrypt" | ||
4 | PROVIDES = "ntfsprogs ntfs-3g" | ||
5 | LICENSE = "GPLv2 & LGPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a" | ||
8 | |||
9 | SRC_URI = "http://tuxera.com/opensource/ntfs-3g_ntfsprogs-${PV}.tgz" | ||
10 | S = "${WORKDIR}/ntfs-3g_ntfsprogs-${PV}" | ||
11 | |||
12 | SRC_URI[md5sum] = "2d6fb47ddf62b51733227126fe9227fe" | ||
13 | SRC_URI[sha256sum] = "4b383f0074a3ab7683339d1f18222b107aaeb4983db119292c43c2b275cefb27" | ||
14 | |||
15 | inherit autotools pkgconfig | ||
16 | |||
17 | PACKAGECONFIG ??= "" | ||
18 | PACKAGECONFIG[uuid] = "--with-uuid,--without-uuid,util-linux" | ||
19 | |||
20 | # required or it calls ldconfig at install step | ||
21 | EXTRA_OEMAKE = "LDCONFIG=echo" | ||
22 | |||
23 | PACKAGES =+ "ntfs-3g ntfsprogs libntfs-3g" | ||
24 | |||
25 | FILES_ntfs-3g = "${base_sbindir}/*.ntfs-3g ${bindir}/ntfs-3g* ${base_sbindir}/mount.ntfs" | ||
26 | RDEPENDS_ntfs-3g += "fuse" | ||
27 | RRECOMMENDS_ntfs-3g = "util-linux-mount" | ||
28 | |||
29 | FILES_ntfsprogs = "${base_sbindir}/* ${bindir}/* ${sbindir}/*" | ||
30 | FILES_libntfs-3g = "${libdir}/*${SOLIBS}" | ||
31 | |||
32 | do_install_append() { | ||
33 | # Standard mount will execute the program /sbin/mount.TYPE | ||
34 | # when called. Add the symbolic to let mount could find ntfs. | ||
35 | ln -sf mount.ntfs-3g ${D}/${base_sbindir}/mount.ntfs | ||
36 | } | ||
37 | |||
38 | # Satisfy the -dev runtime dependency | ||
39 | ALLOW_EMPTY_${PN} = "1" | ||
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd b/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd new file mode 100755 index 000000000..5d74d13d9 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/owfs/owfs/owhttpd | |||
@@ -0,0 +1,60 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/bin | ||
4 | |||
5 | DAEMON="owhttpd" | ||
6 | |||
7 | test -f /usr/bin/${DAEMON} || exit 0 | ||
8 | |||
9 | if test -f /etc/default/${DAEMON} ; then | ||
10 | . /etc/default/${DAEMON} | ||
11 | else | ||
12 | : | ||
13 | fi | ||
14 | |||
15 | if [ "$START_OWHTTPD" != "yes" ] | ||
16 | then | ||
17 | exit 0 | ||
18 | fi | ||
19 | |||
20 | |||
21 | startdaemon(){ | ||
22 | echo -n "Starting ${DAEMON}: " | ||
23 | start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid | ||
24 | echo "done" | ||
25 | } | ||
26 | |||
27 | stopdaemon(){ | ||
28 | echo -n "Stopping ${DAEMON}: " | ||
29 | start-stop-daemon --stop -p /var/run/${DAEMON}.pid | ||
30 | echo "done" | ||
31 | } | ||
32 | |||
33 | |||
34 | |||
35 | case "$1" in | ||
36 | start) | ||
37 | startdaemon | ||
38 | ;; | ||
39 | stop) | ||
40 | stopdaemon | ||
41 | ;; | ||
42 | force-reload) | ||
43 | stopdaemon | ||
44 | startdaemon | ||
45 | ;; | ||
46 | restart) | ||
47 | stopdaemon | ||
48 | startdaemon | ||
49 | ;; | ||
50 | reload) | ||
51 | stopdaemon | ||
52 | startdaemon | ||
53 | ;; | ||
54 | *) | ||
55 | echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2 | ||
56 | exit 1 | ||
57 | ;; | ||
58 | esac | ||
59 | |||
60 | exit 0 | ||
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs/owserver b/meta-filesystems/recipes-filesystems/owfs/owfs/owserver new file mode 100755 index 000000000..b69ea53e3 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/owfs/owfs/owserver | |||
@@ -0,0 +1,59 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | PATH=/sbin:/bin:/usr/bin | ||
4 | |||
5 | DAEMON="owserver" | ||
6 | |||
7 | test -f /usr/bin/${DAEMON} || exit 0 | ||
8 | |||
9 | if test -f /etc/default/${DAEMON} ; then | ||
10 | . /etc/default/${DAEMON} | ||
11 | else | ||
12 | : | ||
13 | fi | ||
14 | |||
15 | if [ "$START_OWSERVER" != "yes" ] | ||
16 | then | ||
17 | exit 0 | ||
18 | fi | ||
19 | |||
20 | startdaemon(){ | ||
21 | echo -n "Starting ${DAEMON}: " | ||
22 | start-stop-daemon --start -x /usr/bin/${DAEMON} -- ${CMDLINE} --pid_file /var/run/${DAEMON}.pid | ||
23 | echo "done" | ||
24 | } | ||
25 | |||
26 | stopdaemon(){ | ||
27 | echo -n "Stopping ${DAEMON}: " | ||
28 | start-stop-daemon --stop -p /var/run/${DAEMON}.pid | ||
29 | echo "done" | ||
30 | } | ||
31 | |||
32 | |||
33 | |||
34 | case "$1" in | ||
35 | start) | ||
36 | startdaemon | ||
37 | ;; | ||
38 | stop) | ||
39 | stopdaemon | ||
40 | ;; | ||
41 | force-reload) | ||
42 | stopdaemon | ||
43 | startdaemon | ||
44 | ;; | ||
45 | restart) | ||
46 | stopdaemon | ||
47 | startdaemon | ||
48 | ;; | ||
49 | reload) | ||
50 | stopdaemon | ||
51 | startdaemon | ||
52 | ;; | ||
53 | *) | ||
54 | echo "Usage: ${DAEMON} { start | stop | restart | reload }" >&2 | ||
55 | exit 1 | ||
56 | ;; | ||
57 | esac | ||
58 | |||
59 | exit 0 | ||
diff --git a/meta-filesystems/recipes-filesystems/owfs/owfs_2.9p1.bb b/meta-filesystems/recipes-filesystems/owfs/owfs_2.9p1.bb new file mode 100644 index 000000000..21fd7e93e --- /dev/null +++ b/meta-filesystems/recipes-filesystems/owfs/owfs_2.9p1.bb | |||
@@ -0,0 +1,68 @@ | |||
1 | SUMMARY = "1-Wire file system" | ||
2 | DESCRIPTION = "OWFS is an easy way to use the powerful 1-wire system of Dallas/Maxim" | ||
3 | HOMEPAGE = "http://www.owfs.org/" | ||
4 | SECTION = "console/network" | ||
5 | |||
6 | LICENSE = "GPLv2 & LGPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=a0bc427f423a41220ab79a0b392218bd \ | ||
8 | file://COPYING.LIB;md5=865c4bd642d9e04f43925ad7e929ae87" | ||
9 | |||
10 | DEPENDS = "fuse virtual/libusb0" | ||
11 | |||
12 | SRC_URI = "${SOURCEFORGE_MIRROR}/owfs/owfs-${PV}.tar.gz \ | ||
13 | file://owhttpd \ | ||
14 | file://owserver " | ||
15 | SRC_URI[md5sum] = "56ba145be208002e58775a7203369851" | ||
16 | SRC_URI[sha256sum] = "9d22dbff72d235476688c02669f7171b23e21dffadf40bbdd3b8263908218424" | ||
17 | |||
18 | inherit autotools-brokensep update-rc.d | ||
19 | |||
20 | EXTRA_OECONF = " \ | ||
21 | --with-fuseinclude=${STAGING_INCDIR} \ | ||
22 | --with-fuselib=${STAGING_LIBDIR} \ | ||
23 | --enable-owfs \ | ||
24 | --enable-owhttpd \ | ||
25 | --enable-w1 \ | ||
26 | --disable-swig \ | ||
27 | --disable-owtcl \ | ||
28 | --disable-owphp \ | ||
29 | --disable-owpython \ | ||
30 | --disable-owperl \ | ||
31 | " | ||
32 | |||
33 | do_install_prepend() { | ||
34 | install -d ${D}${sysconfdir}/default/ | ||
35 | install -d ${D}${sysconfdir}/init.d/ | ||
36 | install -m 0755 ${WORKDIR}/owhttpd ${D}${sysconfdir}/init.d/owhttpd | ||
37 | install -m 0755 ${WORKDIR}/owserver ${D}${sysconfdir}/init.d/owserver | ||
38 | } | ||
39 | |||
40 | PACKAGES =+ "owftpd owhttpd owserver owshell libowcapi libow libownet owmon owtap" | ||
41 | |||
42 | DESCRIPTION_owftpd = "Anoymous FTP server for 1-wire access" | ||
43 | DESCRIPTION_owhttpd = "Tiny webserver for 1-wire control" | ||
44 | DESCRIPTION_owserver = "Backend server (daemon) for 1-wire control" | ||
45 | DESCRIPTION_owshell = "owdir owread owwrite owpresent owget - lightweight owserver access" | ||
46 | DESCRIPTION_libowcapi = "easy C-language 1-wire interface " | ||
47 | DESCRIPTION_libow = "easy C-language 1-wire interface to the owserver protocol" | ||
48 | DESCRIPTION_libownet = "easy C-language 1-wire interface to the owserver protocol" | ||
49 | DESCRIPTION_owmon = "Monitor for owserver settings and statistics" | ||
50 | DESCRIPTION_owtap = "Packet sniffer for the owserver protocol" | ||
51 | |||
52 | FILES_owftpd = "${bindir}/owftpd" | ||
53 | FILES_owhttpd = "${bindir}/owhttpd ${sysconfdir}/init.d/owhttpd" | ||
54 | FILES_owserver = "${bindir}/owserver ${sysconfdir}/init.d/owserver" | ||
55 | FILES_owshell = "${bindir}/owread ${bindir}/owwrite \ | ||
56 | ${bindir}/owdir ${bindir}/owpresent \ | ||
57 | ${bindir}/owget ${bindir}/owside" | ||
58 | FILES_owmon = "${bindir}/owmon" | ||
59 | FILES_owtap = "${bindir}/owtap" | ||
60 | FILES_libowcapi = "${libdir}/libowcapi-*" | ||
61 | FILES_libow = "${libdir}/libow-*" | ||
62 | FILES_libownet = "${libdir}/libownet-*" | ||
63 | |||
64 | INITSCRIPT_PACKAGES = "owhttpd owserver" | ||
65 | INITSCRIPT_NAME_owserver = "owserver" | ||
66 | INITSCRIPT_NAME_owhttpd = "owhttpd" | ||
67 | INITSCRIPT_PARAMS_owserver = "defaults 20" | ||
68 | INITSCRIPT_PARAMS_owhttpd = "defaults 21" | ||
diff --git a/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs/configure.patch b/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs/configure.patch new file mode 100644 index 000000000..c80fed187 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs/configure.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | Index: git/configure.in | ||
2 | =================================================================== | ||
3 | --- git.orig/configure.in 2014-06-18 16:06:16.040721349 +0000 | ||
4 | +++ git/configure.in 2014-07-18 07:49:17.085552256 +0000 | ||
5 | @@ -1,5 +1,5 @@ | ||
6 | AC_INIT([SMBNetFS],[0.5.3а]) | ||
7 | -AM_INIT_AUTOMAKE | ||
8 | +AM_INIT_AUTOMAKE([foreign]) | ||
9 | AC_CONFIG_HEADERS([src/config.h]) | ||
10 | AC_PROG_CC | ||
11 | |||
diff --git a/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs_git.bb b/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs_git.bb new file mode 100644 index 000000000..a0eddbc79 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/smbnetfs/smbnetfs_git.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "FUSE module for mounting an entire SMB/NMB network in a single directory" | ||
2 | DESCRIPTION = "SMBNetFS is a Linux/FreeBSD filesystem that allow you to use \ | ||
3 | samba/microsoft network in the same manner as the network \ | ||
4 | neighborhood in Microsoft Windows. Please donate me to help \ | ||
5 | in SMBNetFS development." | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | ||
9 | HOMEPAGE ="http://sourceforge.net/projects/smbnetfs" | ||
10 | |||
11 | DEPENDS = "fuse samba" | ||
12 | |||
13 | inherit autotools gitpkgv pkgconfig | ||
14 | |||
15 | PKGV = "${GITPKGVTAG}" | ||
16 | |||
17 | SRCREV = "ace1c519d45fe488b9b7e6cc77a2bcadb6c83464" | ||
18 | |||
19 | SRC_URI = "git://smbnetfs.git.sourceforge.net/gitroot/smbnetfs/smbnetfs;branch=master \ | ||
20 | file://configure.patch" | ||
21 | |||
22 | PACKAGECONFIG ??= "" | ||
23 | PACKAGECONFIG[gnome-keyring] = "--with-gnome-keyring=yes,--with-gnome-keyring=no,libgnome-keyring" | ||
24 | |||
25 | S = "${WORKDIR}/git" | ||
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_2.5.bb b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_2.5.bb new file mode 100644 index 000000000..459d1575e --- /dev/null +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_2.5.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "This is a filesystem client based on the SSH File Transfer Protocol using FUSE" | ||
2 | AUTHOR = "Miklos Szeredi <miklos@szeredi.hu>" | ||
3 | HOMEPAGE = "http://fuse.sourceforge.net/sshfs.html" | ||
4 | SECTION = "console/network" | ||
5 | LICENSE = "GPLv2" | ||
6 | DEPENDS = "glib-2.0 fuse" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
8 | |||
9 | SRC_URI = "${SOURCEFORGE_MIRROR}/fuse/${BP}.tar.gz" | ||
10 | S = "${WORKDIR}/${P}" | ||
11 | |||
12 | inherit autotools pkgconfig | ||
13 | |||
14 | FILES_${PN} += "${libdir}/sshnodelay.so" | ||
15 | |||
16 | SRC_URI[md5sum] = "17494910db8383a366b1301e5f5148a9" | ||
17 | SRC_URI[sha256sum] = "e9171452e5d0150b9c6a2158fd2e2dcefb5d5d03ba4d208949e00a3a46c6e63e" | ||
diff --git a/meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_0.26.bb b/meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_0.26.bb new file mode 100644 index 000000000..38ded9f68 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/unionfs-fuse/unionfs-fuse_0.26.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | SUMMARY = "A FUSE based implemention of unionfs" | ||
2 | HOMEPAGE = "http://podgorny.cz/moin/UnionFsFuse" | ||
3 | SECTION = "console/network" | ||
4 | LICENSE = "BSD-3-Clause" | ||
5 | DEPENDS = "fuse" | ||
6 | LIC_FILES_CHKSUM = "file://src/unionfs.c;beginline=3;endline=8;md5=30fa8de70fd8abab00b483a1b7943a32" | ||
7 | |||
8 | SRC_URI = "http://podgorny.cz/unionfs-fuse/releases/${BP}.tar.xz" | ||
9 | |||
10 | SRC_URI[md5sum] = "689c636484756f6f7a728ef354cbeac2" | ||
11 | SRC_URI[sha256sum] = "8d5c9dcb51ecb9a9b03890e16d17e37d602b0c1f23ed6a9ddec2b0f719c9f662" | ||
12 | |||
13 | do_install() { | ||
14 | oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix} | ||
15 | } | ||
diff --git a/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb new file mode 100644 index 000000000..0e1e460b6 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/yaffs2/yaffs2-utils_git.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | SUMMARY = "Yet Another Flash File System" | ||
2 | DESCRIPTION = "Tools for managing 'yaffs2' file systems." | ||
3 | |||
4 | SECTION = "base" | ||
5 | HOMEPAGE = "http://www.yaffs.net" | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://utils/mkyaffs2image.c;beginline=12;endline=14;md5=5f5464f9b3e981ca574e65b00e438561" | ||
9 | |||
10 | PV = "0.0+git${SRCPV}" | ||
11 | |||
12 | DEPENDS = "mtd-utils" | ||
13 | |||
14 | # Source is the HEAD of master branch at the time of writing this recipe | ||
15 | SRC_URI = "git://www.aleph1.co.uk/yaffs2;protocol=git;branch=master" | ||
16 | SRCREV = "bc76682d93955cfb33051beb503ad9f8a5450578" | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | CFLAGS_append = " -I.. -DCONFIG_YAFFS_UTIL -DCONFIG_YAFFS_DEFINES_TYPES" | ||
20 | |||
21 | do_compile() { | ||
22 | cd utils && oe_runmake | ||
23 | } | ||
24 | |||
25 | INSTALL_FILES = "mkyaffsimage \ | ||
26 | mkyaffs2image \ | ||
27 | " | ||
28 | do_install() { | ||
29 | install -d ${D}${sbindir}/ | ||
30 | for i in ${INSTALL_FILES}; do | ||
31 | install -m 0755 utils/$i ${D}${sbindir}/ | ||
32 | done | ||
33 | } | ||
34 | |||
35 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-filesystems/recipes-support/fuse/files/001-fix_exec_environment_for_mount_and_umount.patch b/meta-filesystems/recipes-support/fuse/files/001-fix_exec_environment_for_mount_and_umount.patch new file mode 100644 index 000000000..8332bfbb7 --- /dev/null +++ b/meta-filesystems/recipes-support/fuse/files/001-fix_exec_environment_for_mount_and_umount.patch | |||
@@ -0,0 +1,63 @@ | |||
1 | From cfe13b7a217075ae741c018da50cd600e5330de2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Miklos Szeredi <mszeredi@suse.cz> | ||
3 | Date: Fri, 22 May 2015 10:58:43 +0200 | ||
4 | Subject: [PATCH] libfuse: fix exec environment for mount and umount | ||
5 | |||
6 | Found by Tavis Ormandy (CVE-2015-3202). | ||
7 | |||
8 | Upstream-Status: Submitted | ||
9 | Signed-off-by: Tudor Florea <tudor.florea@enea.com> | ||
10 | |||
11 | --- | ||
12 | --- a/lib/mount_util.c | ||
13 | +++ b/lib/mount_util.c | ||
14 | @@ -95,10 +95,12 @@ static int add_mount(const char *prognam | ||
15 | goto out_restore; | ||
16 | } | ||
17 | if (res == 0) { | ||
18 | + char *env = NULL; | ||
19 | + | ||
20 | sigprocmask(SIG_SETMASK, &oldmask, NULL); | ||
21 | setuid(geteuid()); | ||
22 | - execl("/bin/mount", "/bin/mount", "--no-canonicalize", "-i", | ||
23 | - "-f", "-t", type, "-o", opts, fsname, mnt, NULL); | ||
24 | + execle("/bin/mount", "/bin/mount", "--no-canonicalize", "-i", | ||
25 | + "-f", "-t", type, "-o", opts, fsname, mnt, NULL, &env); | ||
26 | fprintf(stderr, "%s: failed to execute /bin/mount: %s\n", | ||
27 | progname, strerror(errno)); | ||
28 | exit(1); | ||
29 | @@ -146,10 +148,17 @@ static int exec_umount(const char *progn | ||
30 | goto out_restore; | ||
31 | } | ||
32 | if (res == 0) { | ||
33 | + char *env = NULL; | ||
34 | + | ||
35 | sigprocmask(SIG_SETMASK, &oldmask, NULL); | ||
36 | setuid(geteuid()); | ||
37 | - execl("/bin/umount", "/bin/umount", "-i", rel_mnt, | ||
38 | - lazy ? "-l" : NULL, NULL); | ||
39 | + if (lazy) { | ||
40 | + execle("/bin/umount", "/bin/umount", "-i", rel_mnt, | ||
41 | + "-l", NULL, &env); | ||
42 | + } else { | ||
43 | + execle("/bin/umount", "/bin/umount", "-i", rel_mnt, | ||
44 | + NULL, &env); | ||
45 | + } | ||
46 | fprintf(stderr, "%s: failed to execute /bin/umount: %s\n", | ||
47 | progname, strerror(errno)); | ||
48 | exit(1); | ||
49 | @@ -205,10 +214,12 @@ static int remove_mount(const char *prog | ||
50 | goto out_restore; | ||
51 | } | ||
52 | if (res == 0) { | ||
53 | + char *env = NULL; | ||
54 | + | ||
55 | sigprocmask(SIG_SETMASK, &oldmask, NULL); | ||
56 | setuid(geteuid()); | ||
57 | - execl("/bin/umount", "/bin/umount", "--no-canonicalize", "-i", | ||
58 | - "--fake", mnt, NULL); | ||
59 | + execle("/bin/umount", "/bin/umount", "--no-canonicalize", "-i", | ||
60 | + "--fake", mnt, NULL, &env); | ||
61 | fprintf(stderr, "%s: failed to execute /bin/umount: %s\n", | ||
62 | progname, strerror(errno)); | ||
63 | exit(1); | ||
diff --git a/meta-filesystems/recipes-support/fuse/files/aarch64.patch b/meta-filesystems/recipes-support/fuse/files/aarch64.patch new file mode 100644 index 000000000..050d1146a --- /dev/null +++ b/meta-filesystems/recipes-support/fuse/files/aarch64.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | fuse: add aarch64 support | ||
2 | |||
3 | u64/u32 is not defined in sys/types.h, include linux/types.h like | ||
4 | the kernel version of fuse.h does. Patch sent to upstream mailing list. | ||
5 | |||
6 | Upstream-Status: Submitted | ||
7 | Signed-off-by: Riku Voipio <riku.voipio@linaro.org> | ||
8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
9 | --- | ||
10 | include/fuse_kernel.h | 7 +------ | ||
11 | 1 file changed, 1 insertion(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h | ||
14 | index c632b58..e804278 100644 | ||
15 | --- a/include/fuse_kernel.h | ||
16 | +++ b/include/fuse_kernel.h | ||
17 | @@ -88,12 +88,7 @@ | ||
18 | #ifndef _LINUX_FUSE_H | ||
19 | #define _LINUX_FUSE_H | ||
20 | |||
21 | -#include <sys/types.h> | ||
22 | -#define __u64 uint64_t | ||
23 | -#define __s64 int64_t | ||
24 | -#define __u32 uint32_t | ||
25 | -#define __s32 int32_t | ||
26 | -#define __u16 uint16_t | ||
27 | +#include <linux/types.h> | ||
28 | |||
29 | /* | ||
30 | * Version negotiation: | ||
31 | -- | ||
32 | 1.8.1.2 | ||
33 | |||
diff --git a/meta-filesystems/recipes-support/fuse/files/gold-unversioned-symbol.patch b/meta-filesystems/recipes-support/fuse/files/gold-unversioned-symbol.patch new file mode 100644 index 000000000..d47f692c0 --- /dev/null +++ b/meta-filesystems/recipes-support/fuse/files/gold-unversioned-symbol.patch | |||
@@ -0,0 +1,92 @@ | |||
1 | fuse: Fix linking issues with gold linker | ||
2 | |||
3 | fuse has problems when linking with gold since it uses version | ||
4 | scripts in a way thats so perticular to bfd ld | ||
5 | |||
6 | /home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/libexec/armv5te-angstrom-linux-gnueabi/gcc/arm-angstro | ||
7 | error: symbol __fuse_exited has undefined version | ||
8 | | collect2: ld returned 1 exit status | ||
9 | | make[1]: *** [libfuse.la] Error 1 | ||
10 | | make[1]: *** Waiting for unfinished jobs.... | ||
11 | |||
12 | For more details | ||
13 | |||
14 | http://blog.flameeyes.eu/2011/06/01/gold-readiness-obstacle-2-base-versioning | ||
15 | http://sources.redhat.com/bugzilla/show_bug.cgi?id=10861 | ||
16 | http://comments.gmane.org/gmane.comp.file-systems.fuse.devel/9524 | ||
17 | http://www.airs.com/blog/archives/300 | ||
18 | |||
19 | Upstream-Status: Pending | ||
20 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
21 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
22 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
23 | --- | ||
24 | lib/fuse.c | 10 +++++----- | ||
25 | lib/fuse_mt.c | 2 +- | ||
26 | lib/fuse_versionscript | 3 +++ | ||
27 | lib/helper.c | 6 +++--- | ||
28 | 4 files changed, 12 insertions(+), 9 deletions(-) | ||
29 | |||
30 | diff --git a/lib/fuse.c b/lib/fuse.c | ||
31 | index 067d0dc..6d27711 100644 | ||
32 | --- a/lib/fuse.c | ||
33 | +++ b/lib/fuse.c | ||
34 | @@ -4873,11 +4873,11 @@ struct fuse *fuse_new_compat1(int fd, int flags, | ||
35 | 11); | ||
36 | } | ||
37 | |||
38 | -FUSE_SYMVER(".symver fuse_exited,__fuse_exited@"); | ||
39 | -FUSE_SYMVER(".symver fuse_process_cmd,__fuse_process_cmd@"); | ||
40 | -FUSE_SYMVER(".symver fuse_read_cmd,__fuse_read_cmd@"); | ||
41 | -FUSE_SYMVER(".symver fuse_set_getcontext_func,__fuse_set_getcontext_func@"); | ||
42 | -FUSE_SYMVER(".symver fuse_new_compat2,fuse_new@"); | ||
43 | +FUSE_SYMVER(".symver fuse_exited,__fuse_exited@FUSE_UNVERSIONED"); | ||
44 | +FUSE_SYMVER(".symver fuse_process_cmd,__fuse_process_cmd@FUSE_UNVERSIONED"); | ||
45 | +FUSE_SYMVER(".symver fuse_read_cmd,__fuse_read_cmd@FUSE_UNVERSIONED"); | ||
46 | +FUSE_SYMVER(".symver fuse_set_getcontext_func,__fuse_set_getcontext_func@FUSE_UNVERSIONED"); | ||
47 | +FUSE_SYMVER(".symver fuse_new_compat2,fuse_new@FUSE_UNVERSIONED"); | ||
48 | FUSE_SYMVER(".symver fuse_new_compat22,fuse_new@FUSE_2.2"); | ||
49 | |||
50 | #endif /* __FreeBSD__ || __NetBSD__ */ | ||
51 | diff --git a/lib/fuse_mt.c b/lib/fuse_mt.c | ||
52 | index f6dbe71..fd5ac23 100644 | ||
53 | --- a/lib/fuse_mt.c | ||
54 | +++ b/lib/fuse_mt.c | ||
55 | @@ -119,4 +119,4 @@ int fuse_loop_mt(struct fuse *f) | ||
56 | return res; | ||
57 | } | ||
58 | |||
59 | -FUSE_SYMVER(".symver fuse_loop_mt_proc,__fuse_loop_mt@"); | ||
60 | +FUSE_SYMVER(".symver fuse_loop_mt_proc,__fuse_loop_mt@FUSE_UNVERSIONED"); | ||
61 | diff --git a/lib/fuse_versionscript b/lib/fuse_versionscript | ||
62 | index 8d91887..de16ab2 100644 | ||
63 | --- a/lib/fuse_versionscript | ||
64 | +++ b/lib/fuse_versionscript | ||
65 | @@ -1,3 +1,6 @@ | ||
66 | +FUSE_UNVERSIONED { | ||
67 | +}; | ||
68 | + | ||
69 | FUSE_2.2 { | ||
70 | global: | ||
71 | fuse_destroy; | ||
72 | diff --git a/lib/helper.c b/lib/helper.c | ||
73 | index b644012..c5349bf 100644 | ||
74 | --- a/lib/helper.c | ||
75 | +++ b/lib/helper.c | ||
76 | @@ -436,10 +436,10 @@ int fuse_mount_compat1(const char *mountpoint, const char *args[]) | ||
77 | return fuse_mount_compat22(mountpoint, NULL); | ||
78 | } | ||
79 | |||
80 | -FUSE_SYMVER(".symver fuse_setup_compat2,__fuse_setup@"); | ||
81 | +FUSE_SYMVER(".symver fuse_setup_compat2,__fuse_setup@FUSE_UNVERSIONED"); | ||
82 | FUSE_SYMVER(".symver fuse_setup_compat22,fuse_setup@FUSE_2.2"); | ||
83 | -FUSE_SYMVER(".symver fuse_teardown,__fuse_teardown@"); | ||
84 | -FUSE_SYMVER(".symver fuse_main_compat2,fuse_main@"); | ||
85 | +FUSE_SYMVER(".symver fuse_teardown,__fuse_teardown@FUSE_UNVERSIONED"); | ||
86 | +FUSE_SYMVER(".symver fuse_main_compat2,fuse_main@FUSE_UNVERSIONED"); | ||
87 | FUSE_SYMVER(".symver fuse_main_real_compat22,fuse_main_real@FUSE_2.2"); | ||
88 | |||
89 | #endif /* __FreeBSD__ || __NetBSD__ */ | ||
90 | -- | ||
91 | 1.8.1.2 | ||
92 | |||
diff --git a/meta-filesystems/recipes-support/fuse/fuse_2.9.3.bb b/meta-filesystems/recipes-support/fuse/fuse_2.9.3.bb new file mode 100644 index 000000000..175338ea4 --- /dev/null +++ b/meta-filesystems/recipes-support/fuse/fuse_2.9.3.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | SUMMARY = "Implementation of a fully functional filesystem in a userspace program" | ||
2 | DESCRIPTION = "FUSE (Filesystem in Userspace) is a simple interface for userspace \ | ||
3 | programs to export a virtual filesystem to the Linux kernel. FUSE \ | ||
4 | also aims to provide a secure method for non privileged users to \ | ||
5 | create and mount their own filesystem implementations. \ | ||
6 | " | ||
7 | HOMEPAGE = "http://fuse.sf.net" | ||
8 | SECTION = "libs" | ||
9 | LICENSE = "GPLv2 & LGPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
11 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/fuse/fuse-${PV}.tar.gz \ | ||
14 | file://gold-unversioned-symbol.patch \ | ||
15 | file://aarch64.patch \ | ||
16 | file://001-fix_exec_environment_for_mount_and_umount.patch \ | ||
17 | " | ||
18 | SRC_URI[md5sum] = "33cae22ca50311446400daf8a6255c6a" | ||
19 | SRC_URI[sha256sum] = "0beb83eaf2c5e50730fc553406ef124d77bc02c64854631bdfc86bfd6437391c" | ||
20 | |||
21 | inherit autotools pkgconfig | ||
22 | |||
23 | DEPENDS = "gettext-native" | ||
24 | |||
25 | PACKAGES =+ "fuse-utils-dbg fuse-utils libulockmgr libulockmgr-dev \ | ||
26 | libulockmgr-dbg fusermount" | ||
27 | |||
28 | RRECOMMENDS_${PN} = "kernel-module-fuse" | ||
29 | |||
30 | FILES_${PN} += "${libdir}/libfuse.so.*" | ||
31 | FILES_${PN}-dev += "${libdir}/libfuse*.la" | ||
32 | |||
33 | FILES_libulockmgr = "${libdir}/libulockmgr.so.*" | ||
34 | FILES_libulockmgr-dev += "${libdir}/libulock*.la" | ||
35 | FILES_libulockmgr-dbg += "${libdir}/.debug/libulock*" | ||
36 | |||
37 | # Forbid auto-renaming to libfuse-utils | ||
38 | FILES_fuse-utils = "${bindir} ${base_sbindir}" | ||
39 | FILES_fuse-utils-dbg = "${bindir}/.debug ${base_sbindir}/.debug" | ||
40 | DEBIAN_NOAUTONAME_fuse-utils = "1" | ||
41 | DEBIAN_NOAUTONAME_fuse-utils-dbg = "1" | ||
42 | |||
43 | do_install_append() { | ||
44 | rm -rf ${D}${base_prefix}/dev | ||
45 | install -d ${D}${base_bindir} | ||
46 | install -m 0755 ${B}/util/fusermount -t ${D}${base_bindir} | ||
47 | } | ||
diff --git a/meta-filesystems/recipes-support/physfs/physfs_2.0.3.bb b/meta-filesystems/recipes-support/physfs/physfs_2.0.3.bb new file mode 100644 index 000000000..5618f28a6 --- /dev/null +++ b/meta-filesystems/recipes-support/physfs/physfs_2.0.3.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | SUMMARY = "PhysicsFS is a library to provide abstract access to various archives" | ||
2 | HOMEAPAGE = "http://icculus.org/physfs" | ||
3 | LICENSE = "Zlib" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5d94e3eaaa10b00ca803ba35a3e87cde" | ||
5 | DEPENDS = "readline zlib" | ||
6 | |||
7 | inherit cmake | ||
8 | |||
9 | SRC_URI = "http://icculus.org/${BPN}/downloads/${BP}.tar.bz2" | ||
10 | SRC_URI[md5sum] = "c2c727a8a8deb623b521b52d0080f613" | ||
11 | SRC_URI[sha256sum] = "ca862097c0fb451f2cacd286194d071289342c107b6fe69079c079883ff66b69" | ||
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch new file mode 100644 index 000000000..5c3558689 --- /dev/null +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | Subject: [PATCH] aufs-util: add tool concept to Makefile for cross compiling | ||
2 | purpose | ||
3 | |||
4 | In a cross compilation environment, c2sh, c2tmac and ver need to be created first. | ||
5 | Add a tools target to Makefile to allow for this. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
10 | --- | ||
11 | Makefile | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/Makefile b/Makefile | ||
15 | index 2f905ad..49c3cd5 100644 | ||
16 | --- a/Makefile | ||
17 | +++ b/Makefile | ||
18 | @@ -85,7 +85,7 @@ aufs.5: aufs.in.5 c2tmac | ||
19 | chmod a-w $@ | ||
20 | |||
21 | c2sh c2tmac ver: CC = ${HOSTCC} | ||
22 | -.INTERMEDIATE: c2sh c2tmac ver | ||
23 | +tools: c2sh c2tmac ver | ||
24 | |||
25 | Install = install -o root -g root -p | ||
26 | install_sbin: File = auibusy auplink mount.aufs umount.aufs | ||
27 | -- | ||
28 | 1.7.9.5 | ||
29 | |||
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-don-t-strip-executables.patch b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-don-t-strip-executables.patch new file mode 100644 index 000000000..48727e6e2 --- /dev/null +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs-util-don-t-strip-executables.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 244863eca77fcaa1187884836c3e28d6b6d1504a Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
3 | Date: Tue, 9 Apr 2013 18:50:34 -0700 | ||
4 | Subject: [PATCH] aufs-util: don't strip executables | ||
5 | |||
6 | By default, aufs-util strips its binaries. This produces QA warnings | ||
7 | as follows: | ||
8 | |||
9 | WARNING: File '/sbin/mount.aufs' from aufs-util was already stripped, this will prevent future debugging! | ||
10 | WARNING: File '/sbin/auplink' from aufs-util was already stripped, this will prevent future debugging! | ||
11 | WARNING: File '/sbin/umount.aufs' from aufs-util was already stripped, this will prevent future debugging! | ||
12 | WARNING: File '/sbin/auibusy' from aufs-util was already stripped, this will prevent future debugging! | ||
13 | WARNING: File '/usr/lib/libau.so.2.6' from aufs-util was already stripped, this will prevent future debugging! | ||
14 | |||
15 | To prevent this, we remove -s from LDFLAGS. | ||
16 | |||
17 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
18 | --- | ||
19 | Makefile | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/Makefile b/Makefile | ||
23 | index 2f905ad..e0c6dcd 100644 | ||
24 | --- a/Makefile | ||
25 | +++ b/Makefile | ||
26 | @@ -56,7 +56,7 @@ all: ver_test ${Man} ${Bin} ${Etc} | ||
27 | ver_test: ver | ||
28 | ./ver | ||
29 | |||
30 | -${Bin}: LDFLAGS += -static -s | ||
31 | +${Bin}: LDFLAGS += -static | ||
32 | ${Bin}: LDLIBS = -L. -lautil | ||
33 | ${BinObj}: %.o: %.c ${LibUtilHdr} ${LibUtil} | ||
34 | |||
35 | -- | ||
36 | 1.7.10.4 | ||
37 | |||
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs_type.h b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs_type.h new file mode 100644 index 000000000..cb439baa4 --- /dev/null +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util/aufs_type.h | |||
@@ -0,0 +1,210 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2005-2013 Junjiro R. Okajima | ||
3 | * | ||
4 | * This program, aufs is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
17 | */ | ||
18 | |||
19 | #ifndef __AUFS_TYPE_H__ | ||
20 | #define __AUFS_TYPE_H__ | ||
21 | |||
22 | #define AUFS_NAME "aufs" | ||
23 | |||
24 | #include <stdint.h> | ||
25 | #include <sys/types.h> | ||
26 | |||
27 | #include <linux/limits.h> | ||
28 | |||
29 | #define AUFS_VERSION "3.8-20130325" | ||
30 | |||
31 | /* todo? move this to linux-2.6.19/include/magic.h */ | ||
32 | #define AUFS_SUPER_MAGIC ('a' << 24 | 'u' << 16 | 'f' << 8 | 's') | ||
33 | |||
34 | /* ---------------------------------------------------------------------- */ | ||
35 | |||
36 | #ifdef CONFIG_AUFS_BRANCH_MAX_127 | ||
37 | typedef int8_t aufs_bindex_t; | ||
38 | #define AUFS_BRANCH_MAX 127 | ||
39 | #else | ||
40 | typedef int16_t aufs_bindex_t; | ||
41 | #ifdef CONFIG_AUFS_BRANCH_MAX_511 | ||
42 | #define AUFS_BRANCH_MAX 511 | ||
43 | #elif defined(CONFIG_AUFS_BRANCH_MAX_1023) | ||
44 | #define AUFS_BRANCH_MAX 1023 | ||
45 | #elif defined(CONFIG_AUFS_BRANCH_MAX_32767) | ||
46 | #define AUFS_BRANCH_MAX 32767 | ||
47 | #endif | ||
48 | #endif | ||
49 | |||
50 | |||
51 | /* ---------------------------------------------------------------------- */ | ||
52 | |||
53 | #define AUFS_FSTYPE AUFS_NAME | ||
54 | |||
55 | #define AUFS_ROOT_INO 2 | ||
56 | #define AUFS_FIRST_INO 11 | ||
57 | |||
58 | #define AUFS_WH_PFX ".wh." | ||
59 | #define AUFS_WH_PFX_LEN ((int)sizeof(AUFS_WH_PFX) - 1) | ||
60 | #define AUFS_WH_TMP_LEN 4 | ||
61 | /* a limit for rmdir/rename a dir */ | ||
62 | #define AUFS_MAX_NAMELEN (NAME_MAX \ | ||
63 | - AUFS_WH_PFX_LEN * 2 /* doubly whiteouted */\ | ||
64 | - 1 /* dot */\ | ||
65 | - AUFS_WH_TMP_LEN) /* hex */ | ||
66 | #define AUFS_XINO_FNAME "." AUFS_NAME ".xino" | ||
67 | #define AUFS_XINO_DEFPATH "/tmp/" AUFS_XINO_FNAME | ||
68 | #define AUFS_XINO_TRUNC_INIT 64 /* blocks */ | ||
69 | #define AUFS_XINO_TRUNC_STEP 4 /* blocks */ | ||
70 | #define AUFS_DIRWH_DEF 3 | ||
71 | #define AUFS_RDCACHE_DEF 10 /* seconds */ | ||
72 | #define AUFS_RDCACHE_MAX 3600 /* seconds */ | ||
73 | #define AUFS_RDBLK_DEF 512 /* bytes */ | ||
74 | #define AUFS_RDHASH_DEF 32 | ||
75 | #define AUFS_WKQ_NAME AUFS_NAME "d" | ||
76 | #define AUFS_MFS_DEF_SEC 30 /* seconds */ | ||
77 | #define AUFS_MFS_MAX_SEC 3600 /* seconds */ | ||
78 | #define AUFS_PLINK_WARN 100 /* number of plinks */ | ||
79 | |||
80 | /* pseudo-link maintenace under /proc */ | ||
81 | #define AUFS_PLINK_MAINT_NAME "plink_maint" | ||
82 | #define AUFS_PLINK_MAINT_DIR "fs/" AUFS_NAME | ||
83 | #define AUFS_PLINK_MAINT_PATH AUFS_PLINK_MAINT_DIR "/" AUFS_PLINK_MAINT_NAME | ||
84 | |||
85 | #define AUFS_DIROPQ_NAME AUFS_WH_PFX ".opq" /* whiteouted doubly */ | ||
86 | #define AUFS_WH_DIROPQ AUFS_WH_PFX AUFS_DIROPQ_NAME | ||
87 | |||
88 | #define AUFS_BASE_NAME AUFS_WH_PFX AUFS_NAME | ||
89 | #define AUFS_PLINKDIR_NAME AUFS_WH_PFX "plnk" | ||
90 | #define AUFS_ORPHDIR_NAME AUFS_WH_PFX "orph" | ||
91 | |||
92 | /* doubly whiteouted */ | ||
93 | #define AUFS_WH_BASE AUFS_WH_PFX AUFS_BASE_NAME | ||
94 | #define AUFS_WH_PLINKDIR AUFS_WH_PFX AUFS_PLINKDIR_NAME | ||
95 | #define AUFS_WH_ORPHDIR AUFS_WH_PFX AUFS_ORPHDIR_NAME | ||
96 | |||
97 | /* branch permissions and attributes */ | ||
98 | #define AUFS_BRPERM_RW "rw" | ||
99 | #define AUFS_BRPERM_RO "ro" | ||
100 | #define AUFS_BRPERM_RR "rr" | ||
101 | #define AUFS_BRRATTR_WH "wh" | ||
102 | #define AUFS_BRWATTR_NLWH "nolwh" | ||
103 | |||
104 | /* ---------------------------------------------------------------------- */ | ||
105 | |||
106 | /* ioctl */ | ||
107 | enum { | ||
108 | /* readdir in userspace */ | ||
109 | AuCtl_RDU, | ||
110 | AuCtl_RDU_INO, | ||
111 | |||
112 | /* pathconf wrapper */ | ||
113 | AuCtl_WBR_FD, | ||
114 | |||
115 | /* busy inode */ | ||
116 | AuCtl_IBUSY | ||
117 | }; | ||
118 | |||
119 | /* borrowed from linux/include/linux/kernel.h */ | ||
120 | #ifndef ALIGN | ||
121 | #define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a)-1) | ||
122 | #define __ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) | ||
123 | #endif | ||
124 | |||
125 | /* borrowed from linux/include/linux/compiler-gcc3.h */ | ||
126 | #ifndef __aligned | ||
127 | #define __aligned(x) __attribute__((aligned(x))) | ||
128 | #endif | ||
129 | |||
130 | |||
131 | struct au_rdu_cookie { | ||
132 | uint64_t h_pos; | ||
133 | int16_t bindex; | ||
134 | uint8_t flags; | ||
135 | uint8_t pad; | ||
136 | uint32_t generation; | ||
137 | } __aligned(8); | ||
138 | |||
139 | struct au_rdu_ent { | ||
140 | uint64_t ino; | ||
141 | int16_t bindex; | ||
142 | uint8_t type; | ||
143 | uint8_t nlen; | ||
144 | uint8_t wh; | ||
145 | char name[0]; | ||
146 | } __aligned(8); | ||
147 | |||
148 | static __inline__ int au_rdu_len(int nlen) | ||
149 | { | ||
150 | /* include the terminating NULL */ | ||
151 | return ALIGN(sizeof(struct au_rdu_ent) + nlen + 1, | ||
152 | sizeof(uint64_t)); | ||
153 | } | ||
154 | |||
155 | union au_rdu_ent_ul { | ||
156 | struct au_rdu_ent *e; | ||
157 | uint64_t ul; | ||
158 | }; | ||
159 | |||
160 | enum { | ||
161 | AufsCtlRduV_SZ, | ||
162 | AufsCtlRduV_End | ||
163 | }; | ||
164 | |||
165 | struct aufs_rdu { | ||
166 | /* input */ | ||
167 | union { | ||
168 | uint64_t sz; /* AuCtl_RDU */ | ||
169 | uint64_t nent; /* AuCtl_RDU_INO */ | ||
170 | }; | ||
171 | union au_rdu_ent_ul ent; | ||
172 | uint16_t verify[AufsCtlRduV_End]; | ||
173 | |||
174 | /* input/output */ | ||
175 | uint32_t blk; | ||
176 | |||
177 | /* output */ | ||
178 | union au_rdu_ent_ul tail; | ||
179 | /* number of entries which were added in a single call */ | ||
180 | uint64_t rent; | ||
181 | uint8_t full; | ||
182 | uint8_t shwh; | ||
183 | |||
184 | struct au_rdu_cookie cookie; | ||
185 | } __aligned(8); | ||
186 | |||
187 | /* ---------------------------------------------------------------------- */ | ||
188 | |||
189 | struct aufs_wbr_fd { | ||
190 | uint32_t oflags; | ||
191 | int16_t brid; | ||
192 | } __aligned(8); | ||
193 | |||
194 | /* ---------------------------------------------------------------------- */ | ||
195 | |||
196 | struct aufs_ibusy { | ||
197 | uint64_t ino, h_ino; | ||
198 | int16_t bindex; | ||
199 | } __aligned(8); | ||
200 | |||
201 | /* ---------------------------------------------------------------------- */ | ||
202 | |||
203 | #define AuCtlType 'A' | ||
204 | #define AUFS_CTL_RDU _IOWR(AuCtlType, AuCtl_RDU, struct aufs_rdu) | ||
205 | #define AUFS_CTL_RDU_INO _IOWR(AuCtlType, AuCtl_RDU_INO, struct aufs_rdu) | ||
206 | #define AUFS_CTL_WBR_FD _IOW(AuCtlType, AuCtl_WBR_FD, \ | ||
207 | struct aufs_wbr_fd) | ||
208 | #define AUFS_CTL_IBUSY _IOWR(AuCtlType, AuCtl_IBUSY, struct aufs_ibusy) | ||
209 | |||
210 | #endif /* __AUFS_TYPE_H__ */ | ||
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb new file mode 100644 index 000000000..48c545660 --- /dev/null +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | |||
@@ -0,0 +1,53 @@ | |||
1 | SUMMARY = "Tools for managing AUFS mounts" | ||
2 | SECTION = "base" | ||
3 | HOMEPAGE = "http://aufs.sourceforge.net/" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" | ||
6 | |||
7 | DEPENDS = "aufs-util-native" | ||
8 | DEPENDS_class-native = "" | ||
9 | |||
10 | SRCREV = "f29056fe396d56fc2a06a96312feabaebbe14c59" | ||
11 | SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.9 \ | ||
12 | file://aufs-util-don-t-strip-executables.patch \ | ||
13 | file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \ | ||
14 | file://aufs_type.h \ | ||
15 | " | ||
16 | |||
17 | PV = "3.9+git${SRCPV}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | do_configure_append () { | ||
22 | install -d ${S}/include/linux/ | ||
23 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ | ||
24 | } | ||
25 | |||
26 | do_configure_append_class-target () { | ||
27 | for i in ver c2sh c2tmac; do | ||
28 | cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ./ | ||
29 | done | ||
30 | } | ||
31 | |||
32 | do_compile () { | ||
33 | oe_runmake CPPFLAGS="-I${S}/include -I${S}/libau" | ||
34 | } | ||
35 | |||
36 | do_compile_class-native () { | ||
37 | oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau" | ||
38 | } | ||
39 | |||
40 | do_install () { | ||
41 | oe_runmake 'DESTDIR=${D}' install_sbin install_ubin install_etc | ||
42 | } | ||
43 | |||
44 | do_install_class-native () { | ||
45 | install -d ${D}${bindir}/aufs-util-${PV} | ||
46 | for i in ver c2sh c2tmac; do | ||
47 | install -m 755 $i ${D}${bindir}/aufs-util-${PV}/$i | ||
48 | done | ||
49 | } | ||
50 | |||
51 | RRECOMMENDS_${PN} += "kernel-module-aufs" | ||
52 | |||
53 | BBCLASSEXTEND = "native" | ||
diff --git a/meta-filesystems/recipes-utils/exfat-utils/exfat-utils_1.0.1.bb b/meta-filesystems/recipes-utils/exfat-utils/exfat-utils_1.0.1.bb new file mode 100644 index 000000000..a5a314fb6 --- /dev/null +++ b/meta-filesystems/recipes-utils/exfat-utils/exfat-utils_1.0.1.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "utilities to create, check, label and dump exFAT filesystem" | ||
2 | DESCRIPTION = "Utilities to manage extended file allocation table filesystem. \ | ||
3 | This package provides tools to create, check and label the filesystem. It \ | ||
4 | contains \ | ||
5 | - dumpexfat to dump properties of the filesystem \ | ||
6 | - exfatfsck / fsck.exfat to report errors found on a exFAT filesystem \ | ||
7 | - exfatlabel to label a exFAT filesystem \ | ||
8 | - mkexfatfs / mkfs.exfat to create a exFAT filesystem. \ | ||
9 | " | ||
10 | HOMEPAGE = "http://code.google.com/p/exfat/" | ||
11 | SECTION = "universe/otherosfs" | ||
12 | LICENSE = "GPLv3" | ||
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
14 | SRC_URI = "${DEBIAN_MIRROR}/main/e/exfat-utils/exfat-utils_${PV}.orig.tar.gz \ | ||
15 | " | ||
16 | DEPENDS = "virtual/libc" | ||
17 | |||
18 | inherit scons | ||
19 | |||
20 | SRC_URI[md5sum] = "e592130829d0bf61fa5e3cd1c759d329" | ||
21 | SRC_URI[sha256sum] = "eeacedca1878065dc3886674ae39cd51149c37bd7d6d7e9325c971a1d1acdab3" | ||
22 | |||
23 | EXTRA_OESCONS = " \ | ||
24 | DESTDIR=${D}/${base_sbindir} \ | ||
25 | " | ||
26 | |||
27 | do_install_prepend() { | ||
28 | install -d ${D}/${base_sbindir} | ||
29 | } | ||
diff --git a/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.1.0.bb b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.1.0.bb new file mode 100644 index 000000000..267aef056 --- /dev/null +++ b/meta-filesystems/recipes-utils/f2fs-tools/f2fs-tools_1.1.0.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Tools for Flash-Friendly File System (F2FS)" | ||
2 | HOMEPAGE = "http://sourceforge.net/projects/f2fs-tools/" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=15667d9b3cb737b57471c148b7c50734" | ||
6 | |||
7 | # to provide libuuid | ||
8 | DEPENDS = "util-linux" | ||
9 | |||
10 | SRCREV = "da59f6146c37e727bb83ae4922ca56d42958e61c" | ||
11 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git" | ||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
17 | |||
18 | do_configure_prepend() { | ||
19 | # workaround for endless do_configure loop: | ||
20 | # make: Warning: File `Makefile.am' has modification time 5.3e+04 s in the future | ||
21 | touch ${S}/* | ||
22 | } | ||
diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/drop-configure-check-for-aio.patch b/meta-filesystems/recipes-utils/xfsprogs/files/drop-configure-check-for-aio.patch new file mode 100644 index 000000000..760109506 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/files/drop-configure-check-for-aio.patch | |||
@@ -0,0 +1,93 @@ | |||
1 | xfsprogs: drop configure check for aio | ||
2 | |||
3 | It's unused and breaks compilation with uclibc. | ||
4 | |||
5 | Upstream-Status: Pending | ||
6 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
7 | --- | ||
8 | configure.ac | 6 +++--- | ||
9 | m4/Makefile | 1 - | ||
10 | m4/package_aiodev.m4 | 36 ------------------------------------ | ||
11 | 3 files changed, 3 insertions(+), 40 deletions(-) | ||
12 | |||
13 | diff --git a/configure.ac b/configure.ac | ||
14 | index b968977..4e2a263 100644 | ||
15 | --- a/configure.ac | ||
16 | +++ b/configure.ac | ||
17 | @@ -47,6 +47,9 @@ AC_ARG_ENABLE(lib64, | ||
18 | enable_lib64=yes) | ||
19 | AC_SUBST(enable_lib64) | ||
20 | |||
21 | +librt="-lrt" | ||
22 | +AC_SUBST(librt) | ||
23 | + | ||
24 | # | ||
25 | # If the user specified a libdir ending in lib64 do not append another | ||
26 | # 64 to the library names. | ||
27 | @@ -92,9 +95,6 @@ AC_PACKAGE_GLOBALS(xfsprogs) | ||
28 | AC_PACKAGE_UTILITIES(xfsprogs) | ||
29 | AC_MULTILIB($enable_lib64) | ||
30 | |||
31 | -AC_PACKAGE_NEED_AIO_H | ||
32 | -AC_PACKAGE_NEED_LIO_LISTIO | ||
33 | - | ||
34 | AC_PACKAGE_NEED_UUID_H | ||
35 | AC_PACKAGE_NEED_UUIDCOMPARE | ||
36 | |||
37 | diff --git a/m4/Makefile b/m4/Makefile | ||
38 | index 654a4fb..d282f0a 100644 | ||
39 | --- a/m4/Makefile | ||
40 | +++ b/m4/Makefile | ||
41 | @@ -14,7 +14,6 @@ CONFIGURE = \ | ||
42 | |||
43 | LSRCFILES = \ | ||
44 | manual_format.m4 \ | ||
45 | - package_aiodev.m4 \ | ||
46 | package_blkid.m4 \ | ||
47 | package_globals.m4 \ | ||
48 | package_libcdev.m4 \ | ||
49 | diff --git a/m4/package_aiodev.m4 b/m4/package_aiodev.m4 | ||
50 | index 490d9c8..8b13789 100644 | ||
51 | --- a/m4/package_aiodev.m4 | ||
52 | +++ b/m4/package_aiodev.m4 | ||
53 | @@ -1,37 +1 @@ | ||
54 | -# | ||
55 | -# Check if we have a libaio.h installed | ||
56 | -# | ||
57 | -AC_DEFUN([AC_PACKAGE_WANT_AIO], | ||
58 | - [ AC_CHECK_HEADERS(libaio.h, [ have_aio=true ], [ have_aio=false ]) | ||
59 | - AC_SUBST(have_aio) | ||
60 | - ]) | ||
61 | - | ||
62 | -# | ||
63 | -# Check if we have an aio.h installed | ||
64 | -# | ||
65 | -AC_DEFUN([AC_PACKAGE_NEED_AIO_H], | ||
66 | - [ AC_CHECK_HEADERS(aio.h) | ||
67 | - if test $ac_cv_header_aio_h = no; then | ||
68 | - echo | ||
69 | - echo 'FATAL ERROR: could not find a valid <aio.h> header.' | ||
70 | - exit 1 | ||
71 | - fi | ||
72 | - ]) | ||
73 | - | ||
74 | -# | ||
75 | -# Check if we have the lio_listio routine in either libc/librt | ||
76 | -# | ||
77 | -AC_DEFUN([AC_PACKAGE_NEED_LIO_LISTIO], | ||
78 | - [ AC_CHECK_FUNCS(lio_listio) | ||
79 | - if test $ac_cv_func_lio_listio = yes; then | ||
80 | - librt="" | ||
81 | - else | ||
82 | - AC_CHECK_LIB(rt, lio_listio,, [ | ||
83 | - echo | ||
84 | - echo 'FATAL ERROR: could not find a library with lio_listio.' | ||
85 | - exit 1],[-lpthread]) | ||
86 | - librt="-lrt" | ||
87 | - fi | ||
88 | - AC_SUBST(librt) | ||
89 | - ]) | ||
90 | |||
91 | -- | ||
92 | 1.8.1.2 | ||
93 | |||
diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/remove-install-as-user.patch b/meta-filesystems/recipes-utils/xfsprogs/files/remove-install-as-user.patch new file mode 100644 index 000000000..e761db371 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/files/remove-install-as-user.patch | |||
@@ -0,0 +1,205 @@ | |||
1 | remove install as user | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
6 | --- | ||
7 | include/buildmacros | 2 +- | ||
8 | include/install-sh | 95 ++++++++--------------------------------------------- | ||
9 | 2 files changed, 14 insertions(+), 83 deletions(-) | ||
10 | |||
11 | diff --git a/include/buildmacros b/include/buildmacros | ||
12 | index 7a01880..0840d55 100644 | ||
13 | --- a/include/buildmacros | ||
14 | +++ b/include/buildmacros | ||
15 | @@ -30,7 +30,7 @@ OBJECTS = $(ASFILES:.s=.o) \ | ||
16 | $(LFILES:.l=.o) \ | ||
17 | $(YFILES:%.y=%.tab.o) | ||
18 | |||
19 | -INSTALL = $(TOPDIR)/install-sh -o $(PKG_USER) -g $(PKG_GROUP) | ||
20 | +INSTALL = $(TOPDIR)/install-sh | ||
21 | |||
22 | IMAGES_DIR = $(TOPDIR)/all-images | ||
23 | DIST_DIR = $(TOPDIR)/dist | ||
24 | diff --git a/include/install-sh b/include/install-sh | ||
25 | index c952a71..b9d66f7 100755 | ||
26 | --- a/include/install-sh | ||
27 | +++ b/include/install-sh | ||
28 | @@ -24,11 +24,11 @@ | ||
29 | # set set | yes yes | ||
30 | # | ||
31 | _usage() { | ||
32 | - echo "Usage: $prog [-o owner] [-g group] [-m mode] -d directory" | ||
33 | - echo "or $prog [-D] [-o owner] [-g group] [-m mode] file directory/file" | ||
34 | - echo "or $prog [-o owner] [-g group] [-m mode] file [file ...] directory" | ||
35 | + echo "Usage: $prog [-m mode] -d directory" | ||
36 | + echo "or $prog [-m mode] file directory/file" | ||
37 | + echo "or $prog [-m mode] file [file ...] directory" | ||
38 | echo "or $prog -S file target (creates \"target\" symlink)" | ||
39 | - echo "or $prog -T lt_arg [-o owner] [-g group] [-m mode] libtool.lai directory" | ||
40 | + echo "or $prog -T lt_arg [-m mode] libtool.lai directory" | ||
41 | echo "" | ||
42 | echo "The \$DIST_MANIFEST and \$DIST_ROOT environment variables affect the" | ||
43 | echo "behaviour of this command - see comments in the script." | ||
44 | @@ -38,32 +38,6 @@ _usage() { | ||
45 | exit 1 | ||
46 | } | ||
47 | |||
48 | -_chown () | ||
49 | -{ | ||
50 | - _st=255 | ||
51 | - if [ $# -eq 3 ] ; then | ||
52 | - chown $1:$2 $3 | ||
53 | - _st=$? | ||
54 | - if [ $_st -ne 0 ] ; then | ||
55 | - if [ $REAL_UID != '0' ] ; then | ||
56 | - if [ ! -f $DIST_ROOT/.chown.quiet ] ; then | ||
57 | - echo '===============================================' | ||
58 | - echo Ownership of files under ${DIST_ROOT:-/} | ||
59 | - echo cannot be changed | ||
60 | - echo '===============================================' | ||
61 | - if [ -n "$DIST_ROOT" ] ; then | ||
62 | - touch $DIST_ROOT/.chown.quiet | ||
63 | - fi | ||
64 | - fi | ||
65 | - _st=0 | ||
66 | - fi | ||
67 | - fi | ||
68 | - fi | ||
69 | - | ||
70 | - return $_st | ||
71 | -} | ||
72 | - | ||
73 | - | ||
74 | _manifest () | ||
75 | { | ||
76 | echo $* | sed -e 's/\/\//\//g' >>${DIST_MANIFEST:-/dev/null} | ||
77 | @@ -77,9 +51,6 @@ Sflag=false | ||
78 | Tflag=false | ||
79 | DIRMODE=755 | ||
80 | FILEMODE=644 | ||
81 | -OWNER=`id -u` | ||
82 | -GROUP=`id -g` | ||
83 | -REAL_UID=$OWNER | ||
84 | |||
85 | # default is to install and don't append manifest | ||
86 | INSTALL=true | ||
87 | @@ -94,24 +65,16 @@ MANIFEST=: | ||
88 | |||
89 | if $INSTALL | ||
90 | then | ||
91 | - CP=cp; LN=ln; MKDIR=mkdir; CHMOD=chmod; CHOWN=_chown | ||
92 | + CP=cp; LN=ln; MKDIR=mkdir; CHMOD=chmod; | ||
93 | else | ||
94 | - CP=true; LN=true; MKDIR=true; CHMOD=true; CHOWN=true | ||
95 | + CP=true; LN=true; MKDIR=true; CHMOD=true; | ||
96 | fi | ||
97 | |||
98 | -[ -n "$DIST_ROOT" -a $REAL_UID -ne 0 ] && CHOWN=true | ||
99 | - | ||
100 | -while getopts "Dcm:d:S:o:g:T:" c $* | ||
101 | +while getopts "Dcm:d:S:T:" c $* | ||
102 | do | ||
103 | case $c in | ||
104 | c) | ||
105 | ;; | ||
106 | - g) | ||
107 | - GROUP=$OPTARG | ||
108 | - ;; | ||
109 | - o) | ||
110 | - OWNER=$OPTARG | ||
111 | - ;; | ||
112 | m) | ||
113 | DIRMODE=`expr $OPTARG` | ||
114 | FILEMODE=$DIRMODE | ||
115 | @@ -146,18 +109,7 @@ then | ||
116 | # first usage | ||
117 | # | ||
118 | $MKDIR -p $dir | ||
119 | - status=$? | ||
120 | - if [ $status -eq 0 ] | ||
121 | - then | ||
122 | - $CHMOD $DIRMODE $dir | ||
123 | - status=$? | ||
124 | - fi | ||
125 | - if [ $status -eq 0 ] | ||
126 | - then | ||
127 | - $CHOWN $OWNER $GROUP $dir | ||
128 | - status=$? | ||
129 | - fi | ||
130 | - $MANIFEST d $DIRMODE $OWNER $GROUP ${dir#$DIST_ROOT} | ||
131 | + $MANIFEST d $DIRMODE ${dir#$DIST_ROOT} | ||
132 | elif $Sflag | ||
133 | then | ||
134 | # | ||
135 | @@ -203,7 +155,7 @@ then | ||
136 | install_name=$target/$solib | ||
137 | $CP $solib $install_name | ||
138 | status=$? | ||
139 | - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$solib ${install_name#$DIST_ROOT} | ||
140 | + $MANIFEST f $FILEMODE $HERE/$solib ${install_name#$DIST_ROOT} | ||
141 | break | ||
142 | fi | ||
143 | done | ||
144 | @@ -254,7 +206,7 @@ then | ||
145 | install_name=$target/$old_library | ||
146 | $CP $old_library $install_name | ||
147 | status=$? | ||
148 | - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$old_library ${install_name#$DIST_ROOT} | ||
149 | + $MANIFEST f $FILEMODE $HERE/$old_library ${install_name#$DIST_ROOT} | ||
150 | ;; | ||
151 | *) | ||
152 | echo "$prog: -T $lt_install invalid" | ||
153 | @@ -267,7 +219,6 @@ then | ||
154 | if [ $status -eq 0 ] | ||
155 | then | ||
156 | $CHMOD $FILEMODE $install_name | ||
157 | - $CHOWN $OWNER $GROUP $install_name | ||
158 | fi | ||
159 | ;; | ||
160 | esac | ||
161 | @@ -292,23 +243,10 @@ else | ||
162 | then | ||
163 | if [ -f $dir/$f ] | ||
164 | then | ||
165 | - $CHMOD $FILEMODE $dir/$f | ||
166 | - status=$? | ||
167 | - if [ $status -eq 0 ] | ||
168 | - then | ||
169 | - $CHOWN $OWNER $GROUP $dir/$f | ||
170 | - status=$? | ||
171 | - fi | ||
172 | - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$f ${dir#$DIST_ROOT}/$f | ||
173 | + $MANIFEST f $FILEMODE $HERE/$f ${dir#$DIST_ROOT}/$f | ||
174 | else | ||
175 | $CHMOD $FILEMODE $dir | ||
176 | - status=$? | ||
177 | - if [ $status -eq 0 ] | ||
178 | - then | ||
179 | - $CHOWN $OWNER $GROUP $dir | ||
180 | - status=$? | ||
181 | - fi | ||
182 | - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$dir ${dir#$DIST_ROOT} | ||
183 | + $MANIFEST f $FILEMODE $HERE/$dir ${dir#$DIST_ROOT} | ||
184 | fi | ||
185 | fi | ||
186 | else | ||
187 | @@ -334,14 +272,7 @@ else | ||
188 | status=$? | ||
189 | if [ $status -eq 0 ] | ||
190 | then | ||
191 | - $CHMOD $FILEMODE $dir/$f | ||
192 | - status=$? | ||
193 | - if [ $status -eq 0 ] | ||
194 | - then | ||
195 | - $CHOWN $OWNER $GROUP $dir/$f | ||
196 | - status=$? | ||
197 | - fi | ||
198 | - $MANIFEST f $FILEMODE $OWNER $GROUP $HERE/$f ${dir#$DIST_ROOT}/$f | ||
199 | + $MANIFEST f $FILEMODE $HERE/$f ${dir#$DIST_ROOT}/$f | ||
200 | fi | ||
201 | [ $status -ne 0 ] && break | ||
202 | done | ||
203 | -- | ||
204 | 1.8.1.2 | ||
205 | |||
diff --git a/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_3.1.11.bb b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_3.1.11.bb new file mode 100644 index 000000000..fcf8f12bb --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_3.1.11.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | SUMMARY = "XFS Filesystem Utilities" | ||
2 | HOMEPAGE = "http://oss.sgi.com/projects/xfs" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "GPLv2" | ||
5 | LICENSE_libhandle = "LGPLv2.1" | ||
6 | LIC_FILES_CHKSUM = "file://doc/COPYING;md5=dbdb5f4329b7e7145de650e9ecd4ac2a" | ||
7 | DEPENDS = "util-linux" | ||
8 | |||
9 | SRC_URI = "ftp://oss.sgi.com/projects/xfs/cmd_tars/${BP}.tar.gz \ | ||
10 | file://remove-install-as-user.patch \ | ||
11 | file://drop-configure-check-for-aio.patch \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "de9f1f45026c2f4e0776058d429ff4b6" | ||
15 | SRC_URI[sha256sum] = "adf4980177b5c890c1ca86b9c0e3e4d69a3f95bfc01746844280c2393cf4d6be" | ||
16 | |||
17 | inherit autotools-brokensep | ||
18 | |||
19 | PACKAGES =+ "${PN}-fsck ${PN}-mkfs libhandle" | ||
20 | |||
21 | RDEPENDS_${PN} = "${PN}-fsck ${PN}-mkfs" | ||
22 | |||
23 | FILES_${PN}-fsck = "${base_sbindir}/fsck.xfs" | ||
24 | FILES_${PN}-mkfs = "${base_sbindir}/mkfs.xfs" | ||
25 | FILES_libhandle = "${base_libdir}/libhandle${SOLIBS}" | ||
26 | |||
27 | EXTRA_OECONF = "--enable-gettext=no" | ||
28 | do_configure () { | ||
29 | # Prevent Makefile from calling configure without arguments, | ||
30 | # when do_configure gets called for a second time. | ||
31 | rm -f include/builddefs include/platform_defs.h | ||
32 | # Recreate configure script. | ||
33 | rm -f configure | ||
34 | oe_runmake configure | ||
35 | # Configure. | ||
36 | export DEBUG="-DNDEBUG" | ||
37 | gnu-configize --force | ||
38 | oe_runconf | ||
39 | } | ||
40 | |||
41 | LIBTOOL = "${HOST_SYS}-libtool" | ||
42 | EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'" | ||
43 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
44 | PARALLEL_MAKE = "" | ||
45 | |||
46 | do_install () { | ||
47 | export DIST_ROOT=${D} | ||
48 | oe_runmake install | ||
49 | # needed for xfsdump | ||
50 | oe_runmake install-dev | ||
51 | rm ${D}${base_libdir}/libhandle.a | ||
52 | rm ${D}${base_libdir}/libhandle.la | ||
53 | rm ${D}${base_libdir}/libhandle.so | ||
54 | rm ${D}${libdir}/libhandle.so | ||
55 | ln -s ../..${base_libdir}/libhandle.so.1 ${D}${libdir}/libhandle.so | ||
56 | } | ||