This commit is contained in:
Mario Fetka
2024-06-18 10:44:56 +02:00
parent 6a37474503
commit 20ef8b5c88
95 changed files with 4227 additions and 99 deletions

13
sys-fs/posixovl/ChangeLog Normal file
View File

@@ -0,0 +1,13 @@
# ChangeLog for sys-fs/posixovl
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
30 Jul 2015; Mario Fetka <mario.fetka@gmail.com> posixovl-1.2.ebuild,
posixovl-9999.ebuild:
Make stable in arm
*posixovl-1.2 (01 Nov 2012)
01 Nov 2012; Mario Fetka <mario.fetka@gmail.com> +posixovl-1.2.ebuild,
+metadata.xml:
Initial commit

8
sys-fs/posixovl/Manifest Normal file
View File

@@ -0,0 +1,8 @@
AUX 0001-fix-mount-option-bug-and-compile-warnings.patch 1762 BLAKE2B 98df99b03b5ae82b09b2a55302beebcc11d1e49b4bc233970c971e18b1fba1bb94f4cfee6c51181bac8714627aab445b09ee3be3cb9d282a4e50e76cefdd48fb SHA512 ca190fff89f0a3a6a5bea5d249d539beb4caf00bf00293290e4bcc02df1dc504f2014d9ef6e10ca21cb87c43cbd743f25f022d306b4da1f270f4f33c9dc02044
DIST posixovl-1.2.tar.xz 14980 BLAKE2B 6a5764a2a7ba897b2cfc04fa2d361928785fb92d53f7a01a59cdbfb1edcebbf1db4ffc9873e384769a2eb1096f0fbd316bba08cbc90b3b40857ba76a05c94c6c SHA512 67ef4074993a286c79ffafb31feb99e57819e39e73bbef100a5de381368d88d3b179a24b5a49102e29d4c4fe8134ea04e7b13b07f366873586d9e83877963244
DIST posixovl-1.3.tar.xz 82672 BLAKE2B 4f5aff0a5256152be66b4babdf47a2cb7f92342a17d62bd34d08cc7b41dd2fac723b70657689317a8dc139f182c81c30f762fd043c11c6c9d4906d45cd227db4 SHA512 8182c9e852cd605adf7bb9c79904ec72cae432771be0f06527504f29e7676168a4c0d1a6af8fede92726d8b2429709265083946a76f54766c6660d674ee8b42f
EBUILD posixovl-1.2.ebuild 744 BLAKE2B b70ae322cc2822230dca042210364efb465a35822b301c1f61660b5fe1e6f9ae9dfc6955b692561c6328e439fcc4f520c1c9672adafe58ee296ae9adb3d3815b SHA512 d64870bd22342e5b9fc7104d006d2e15ef2ce47110dde21b94e8103bc804f91ffde21f9eff2ba0738d7c275b57d5a4aa257bfbfdb29af97792db464c8c69f9a1
EBUILD posixovl-1.3.ebuild 836 BLAKE2B 3262d3f0660371797c889354fbe16602d089298bead48450b3496bcaeb03b082edc723ad55cb969242f402c747612629a43b397d6274afac94cf0b45f1bf3ddc SHA512 d9c30d8868e3779f08361fbb91b61e1903883144e1911ce09525201eb5a833e9d5dd335c9af55e005aa529f2d0e232bbfea7e3963028bdf3009af0aefb89e3de
EBUILD posixovl-9999.ebuild 728 BLAKE2B 140c5ae382d5ea3d9e73c5c75cb9abcd6d6c2fd5b72ad5a4358d5e238bd1b2904d2189a756cecf1f85fa2730917ebf08ad82c716a1243fa6ec23d72277fb664e SHA512 ada4a4fde6354186775a3cc4aa3f67a8ac6c7cd104d1f0e0f403018999f978f211ba0ee8945fc44899d2d78c128f869ce337852c3c1890d7c152cc098ed69cb9
MISC ChangeLog 370 BLAKE2B 572586c24ed78c254c756abeafeb68658446f2861ee2af0d8fe17ce70f6a3f38fc4cf4d8df3fe92576aa264716075011360775f7143efdb028ba47998a1198db SHA512 1d3b78695712a4dc48527f152c87e0c59daa545eefd35de49b6524c2ebf369c6d9a3f02c51686480643d4360869a21296a590daa435adf4ab48d07752f582074
MISC metadata.xml 205 BLAKE2B 2885a6508cc84e8c20c79cd20d9fd3269df33e1ce3c6394fda79b8f7f17b6f92ade1a3177ca71e41b027cd1f16cb7795f1dfb4b99a3aa1f6f8055bb778d633a4 SHA512 ef3a39d2cd131cd29451ec2d009484e89b60e8cbeed5fc0f5f899cebb0c5f9867682ce603982e4de32004493944c6ff99a4c797e7ef2441d6049e5a616143a8b

View File

@@ -0,0 +1,74 @@
Description: Fix compile warnings and a mount option bug
Forwarded: not-needed
--- a/posixovl.c
+++ b/posixovl.c
@@ -195,7 +195,7 @@
static char *strlcpy(char *dest, const char *src, size_t n)
{
- strncpy(dest, src, n);
+ strncpy(dest, src, n-1);
dest[n-1] = '\0';
return dest;
}
@@ -2011,8 +2011,9 @@
char **aptr, **new_argv;
int new_argc = 0, original_wd, c;
char xargs[256];
+ char *mount_option = NULL;
- while ((c = getopt(argc, argv, "1FHS:")) > 0) {
+ while ((c = getopt(argc, argv, "1FHS:o:")) > 0) {
switch (c) {
case '1':
single_threaded = true;
@@ -2026,6 +2027,9 @@
case 'S':
root_dir = optarg;
break;
+ case 'o':
+ mount_option = optarg;
+ break;
default:
usage(*argv);
return EXIT_FAILURE;
@@ -2035,7 +2039,12 @@
if (argv[optind] == NULL)
usage(*argv);
if (root_dir == NULL)
+ {
root_dir = argv[optind];
+ /* If there is another one, it is a target path. */
+ if (optind + 1 < argc)
+ optind++;
+ }
umask(0);
if ((root_fd = open(root_dir, O_DIRECTORY)) < 0) {
@@ -2046,7 +2055,7 @@
original_wd = open(".", O_DIRECTORY);
- new_argv = malloc(sizeof(char *) * (argc + 5 - optind));
+ new_argv = malloc(sizeof(char *) * (argc + 7 - optind));
new_argv[new_argc++] = argv[0];
#ifdef HAVE_JUST_FUSE_2_6_5
snprintf(xargs, sizeof(xargs),
@@ -2063,9 +2072,16 @@
new_argv[new_argc++] = "-oallow_other";
if (single_threaded)
new_argv[new_argc++] = "-s";
+ if (mount_option != NULL)
+ {
+ new_argv[new_argc++] = "-o";
+ new_argv[new_argc++] = mount_option;
+ }
for (aptr = &argv[optind]; *aptr != NULL; ++aptr)
+ {
new_argv[new_argc++] = *aptr;
+ }
new_argv[new_argc] = NULL;
c = fuse_main(new_argc, (char **)new_argv, &posixovl_ops, NULL);

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>mario.fetka@gmail.com</email>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,29 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/sshfs-fuse/sshfs-fuse-2.4.ebuild,v 1.5 2012/05/04 19:09:18 jdhore Exp $
EAPI="8"
inherit autotools
DESCRIPTION="Fuse-filesystem utilizing the Fat POSIX Overlay"
SRC_URI="https://sourceforge.net/projects/posixovl/files/${P}.tar.xz"
HOMEPAGE="http://sourceforge.net/projects/posixovl/"
LICENSE="GPL-2"
KEYWORDS="amd64 arm ~hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
SLOT="0"
IUSE=""
CDEPEND=">=sys-fs/fuse-2.6.0_pre3"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${PN}
src_prepare() {
eautoreconf
}
#DOCS=( README NEWS ChangeLog AUTHORS FAQ.txt )

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/sshfs-fuse/sshfs-fuse-2.4.ebuild,v 1.5 2012/05/04 19:09:18 jdhore Exp $
EAPI="8"
inherit autotools
DESCRIPTION="Fuse-filesystem utilizing the Fat POSIX Overlay"
SRC_URI="https://sourceforge.net/projects/posixovl/files/${P}.tar.xz"
HOMEPAGE="http://sourceforge.net/projects/posixovl/"
LICENSE="GPL-2"
KEYWORDS="amd64 arm ~hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
SLOT="0"
IUSE=""
CDEPEND=">=sys-fs/fuse-2.6.0_pre3"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${P}
PATCHES=(
"${FILESDIR}"/0001-fix-mount-option-bug-and-compile-warnings.patch
)
src_prepare() {
default
eautoreconf
}
#DOCS=( README NEWS ChangeLog AUTHORS FAQ.txt )

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/sshfs-fuse/sshfs-fuse-2.4.ebuild,v 1.5 2012/05/04 19:09:18 jdhore Exp $
EAPI="8"
inherit autotools git-r3
EGIT_REPO_URI="git://git.code.sf.net/p/posixovl/posixovl"
DESCRIPTION="Fuse-filesystem utilizing the Fat POSIX Overlay"
HOMEPAGE="http://sourceforge.net/projects/posixovl/"
LICENSE="GPL-2"
KEYWORDS="amd64 arm ~hppa ~ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
SLOT="0"
IUSE=""
CDEPEND=">=sys-fs/fuse-2.6.0_pre3"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}
virtual/pkgconfig"
src_prepare() {
eautoreconf
default
}
#DOCS=( README NEWS ChangeLog AUTHORS FAQ.txt )