diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /sys-apps/pmount | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'sys-apps/pmount')
-rw-r--r-- | sys-apps/pmount/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch | 12 | ||||
-rw-r--r-- | sys-apps/pmount/files/pmount-0.9.99_alpha-missing-includes.patch | 82 | ||||
-rw-r--r-- | sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild | 4 | ||||
-rw-r--r-- | sys-apps/pmount/pmount-0.9.99_alpha-r7.ebuild | 92 |
5 files changed, 192 insertions, 3 deletions
diff --git a/sys-apps/pmount/Manifest b/sys-apps/pmount/Manifest index f3a9f659894b..cba3b490150d 100644 --- a/sys-apps/pmount/Manifest +++ b/sys-apps/pmount/Manifest @@ -1,7 +1,10 @@ AUX pmount-0.9.19-testsuite-missing-dir.patch 1360 BLAKE2B 3a44bfe3de89169f5666886b9c192e0f530b3a3785c8a64fbfbdbbbc93331a9c74cbc19cab25ebcc0f5e3fb64d23348f1dd8deaf028545d444000a64d6a5b45a SHA512 3bc940550f59d62106c610d7846ddea09cab674b176cd7361848d283b0f19a0fda5573c6bafb99abe99c806651493ed07ac21f92d32f7dc30d0ccb77a4c1928e AUX pmount-0.9.99_alpha-exfat-support.patch 499 BLAKE2B 11045f138c9b20c03f39760d2da8c36600f1be539b2fdfba6e5ba9f97b953945fed7fd9d127ed0f1874cf9f36efe455c32a726e52bf8274c381da476a64e723d SHA512 d2b0024a73343646d688212749ef4e1b6b01f93e2e5059eb1a94b3e0a84a1c2491551c80d295fa62815e609c5f7c442920cfa832fa74a836904b6cef1048c847 +AUX pmount-0.9.99_alpha-limits-musl.patch 176 BLAKE2B 34e41d6c1b5e0a13db17ec5341cbc66a95a6e52f0edccace07f067655d7c72fe186203368941c4b5172c32b826e86becca25a50cb7fdde9ffc6d213029887ade SHA512 20d90921827b6bcc89dc8df01c2b83279c334d096b4f17591acf8d042d7813d6e16bcc7b3fa40feddfbc740fdc98d1c16e6e95359af8c3f40496e1ac8c3ab82e AUX pmount-0.9.99_alpha-locale-regex.patch 753 BLAKE2B a79805f883143f6beea9597ab88059e15ccde83d08ce69625c8c3387b419e46f8a6ea3c3937c17adfdbaeaa4dd5c3f9ad7aef8d67cc5dd406e79dbc250196c1b SHA512 423d52a372c7cdd73206a9001fcc717b50b834023130cc77e4e063ac2b62ae5c84698d127646e3658ae44e3a47f2c77522d007664cf0c4277dc49b47413c8563 +AUX pmount-0.9.99_alpha-missing-includes.patch 1522 BLAKE2B d1adc8c74fb67010df912eaa650f6d06fb0dab513edbcce403834b9679cb95c56681f6785bc1a8bdc306335c49339384e912de51550d062ef595733bda77bd97 SHA512 5457a641e5a40c90119d25d835757d7f4ed127cc36838715ddb6d957b83b3dddb5fb0357cfef7fe0b4b6133249476fc585a8d78cda1057debf9576c316df8ddc AUX pmount.bash-completion 2935 BLAKE2B 8d89d6098764dbbbddcdc45e3aaac377eb71ead5ca0ea3f44b9eda1dbe1573e3cde154d51b9486903c6fe104948af1ad29031837375953239956651efff7dfad SHA512 b57a37afc2a124c6a4f19924a367d03b315e93575d0b152acde06e43c7dcd1b3d5df46c02d2e5ceef35911edb4f96d1d4113fb6d7cd1e9531fd9840c3729f924 DIST pmount_0.9.99-alpha.orig.tar.bz2 364282 BLAKE2B a023d75623374186fb2de07bf1a41b01b2fc2570f9560b8bddec04441ffd083c6a0ece32b53db4e6067d181269f74cb7044f2c60bffece4b0e4c8dba9f1611b5 SHA512 12105674f099afb82302c0960f4f50a4bc75382071940e897d9c65b57a0f4de1fafdaa2a4c05f0fa5cba55453ae0c21376b9891353cad1afa88e5fbd9f63d5e9 -EBUILD pmount-0.9.99_alpha-r6.ebuild 2054 BLAKE2B 6fd8f5a1d5a3f68636fa85c0ac07e2ad666694173e7d6712fe85c0b0caa8908c12133159c5d19b56972060eeb19b1e7f7966eb29690d734ba357e49d521190ee SHA512 dd24bfdbe6f7cd5e2d1ca844976d440ef0c76476c4c0808a689ba2fc607613b916dab12b091e7a29492e898bdb7bf2fc7d3a1aee719699a0285a79ff0136553b +EBUILD pmount-0.9.99_alpha-r6.ebuild 2091 BLAKE2B 1765473acb740cad9ec5d9fd44f31b2742b82ff375156824cc7fb34b921b767cfa5887558e7ffedf04df3cd3afbfae78f3ff7a4ee4898768a38fad659fc4bd5c SHA512 93ea2e28487a0fd771afc81f0d413dbeaeb63d3337b849976b035efb4e3666f148cce9d9fd871991e2e4073c47910c23a962677919bec161b4e3ce31d638fc63 +EBUILD pmount-0.9.99_alpha-r7.ebuild 2274 BLAKE2B 11ade87d1a94362701f85ed5f243833b041bbfa85fed6d32cf7a9a02336a0de10056458f3bbf788e5ca93e89a192a6e33019072c846d831dee1c2da05e163af4 SHA512 3da339d0e774a8236f1b2317acebe6634f9dcc7c122319aafccdcb90bd3fb422bfa1d189d8f8288b147de9f764153a0d84b4b0e4a9470329bb5173792def1494 MISC metadata.xml 435 BLAKE2B 66040336d89bbeae61ac4385f1744bff6cd3f0275efae4c57df0dc6a9a74a0594a046e25092b21273b83cd80ee86f29963702063ee3b9ef73a3f6d6ff9fd7289 SHA512 c1f52d17d0922fe6809259d0394453110c796e94114e348a70e32e5af134a843c7a4b2bb61ca67361a2dc1e8e7c41822cffe7118590b63eeb7afcd285816d341 diff --git a/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch b/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch new file mode 100644 index 000000000000..af6a1ebc521d --- /dev/null +++ b/sys-apps/pmount/files/pmount-0.9.99_alpha-limits-musl.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/713422 +--- a/src/utils.c ++++ b/src/utils.c +@@ -25,6 +25,7 @@ + #include <libintl.h> + + #include <unistd.h> ++#include <limits.h> + + #include "utils.h" + + diff --git a/sys-apps/pmount/files/pmount-0.9.99_alpha-missing-includes.patch b/sys-apps/pmount/files/pmount-0.9.99_alpha-missing-includes.patch new file mode 100644 index 000000000000..cdcb65ad822d --- /dev/null +++ b/sys-apps/pmount/files/pmount-0.9.99_alpha-missing-includes.patch @@ -0,0 +1,82 @@ +--- a/src/conffile.c ++++ b/src/conffile.c +@@ -22,6 +22,7 @@ + #include <sys/types.h> + #include <pwd.h> + #include <grp.h> ++#include <unistd.h> + + #include "conffile.h" + #include "config.h" +--- a/src/luks.c ++++ b/src/luks.c +@@ -13,7 +13,9 @@ + #include "utils.h" + #include "policy.h" + #include <stdio.h> ++#include <fcntl.h> + #include <limits.h> ++#include <unistd.h> + #include <sys/stat.h> + #include <libintl.h> + +--- a/src/policy.c ++++ b/src/policy.c +@@ -13,6 +13,7 @@ + #include "policy.h" + #include "utils.h" + ++#include <ctype.h> + #include <stdio.h> + #include <string.h> + #include <unistd.h> +--- a/src/pmount.c ++++ b/src/pmount.c +@@ -29,6 +29,7 @@ + #include "policy.h" + #include "utils.h" + #include "luks.h" ++#include "loop.h" + #include "config.h" + + /* Configuration file handling */ +--- a/src/policy.c ++++ b/src/policy.c +@@ -33,6 +33,7 @@ + #include <pwd.h> + #include <utmpx.h> + ++#include "configuration.h" + + /* We use our own safe version of realpath */ + #include "realpath.h" +--- a/src/pumount.c ++++ b/src/pumount.c +@@ -24,6 +24,7 @@ + #include "utils.h" + #include "luks.h" + #include "config.h" ++#include "configuration.h" + + /* error codes */ + const int E_ARGS = 1; +--- a/tests/test_policy.c ++++ b/tests/test_policy.c +@@ -16,6 +16,7 @@ + #include "policy.h" + #include "utils.h" + #include <stdio.h> ++#include <string.h> + + int testsFailed = 0; + int totalTests = 0; +--- a/tests/test_spawn.c ++++ b/tests/test_spawn.c +@@ -12,6 +12,7 @@ + + + #include <stdio.h> ++#include <string.h> + #include <unistd.h> + #include "utils.h" + diff --git a/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild b/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild index e6a575c9f139..1d336844462f 100644 --- a/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild +++ b/sys-apps/pmount/pmount-0.9.99_alpha-r6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -26,7 +26,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch "${FILESDIR}"/${P}-locale-regex.patch "${FILESDIR}"/${P}-exfat-support.patch - + "${FILESDIR}"/${P}-limits-musl.patch ) src_prepare() { diff --git a/sys-apps/pmount/pmount-0.9.99_alpha-r7.ebuild b/sys-apps/pmount/pmount-0.9.99_alpha-r7.ebuild new file mode 100644 index 000000000000..baad4714b833 --- /dev/null +++ b/sys-apps/pmount/pmount-0.9.99_alpha-r7.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 + +DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user" +HOMEPAGE="https://launchpad.net/pmount" +SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV/_/-}.orig.tar.bz2" +S="${WORKDIR}"/${P/_/-} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="crypt" + +# cryptsetup is executed at runtime only, no libraries used AFAICT +# but in DEPEND too as it's checked during configure +RDEPEND=" + acct-group/plugdev + >=sys-apps/util-linux-2.17.2 + crypt? ( >=sys-fs/cryptsetup-1.0.6-r2 )" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-util/intltool + sys-devel/gettext" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch + "${FILESDIR}"/${P}-locale-regex.patch + "${FILESDIR}"/${P}-exfat-support.patch + "${FILESDIR}"/${P}-limits-musl.patch + "${FILESDIR}"/${P}-missing-includes.patch +) + +src_prepare() { + # Restore default value from pmount <= 0.9.23 wrt #393633 + sed -i -e '/^not_physically_logged_allow/s:=.*:= yes:' etc/pmount.conf || die + + cat <<-EOF > po/POTFILES.skip || die + src/conffile.c + src/configuration.c + src/loop.c + EOF + + default +} + +src_configure() { + econf --disable-hal +} + +src_test() { + local testdir=${S}/tests/check_fstab + + ln -s a "${testdir}/b" && + ln -s d "${testdir}/c" && + ln -s c "${testdir}/e" || + die "Unable to create fake symlinks required for testsuite" + + emake check +} + +src_install() { + # Must be run SETUID+SETGID, bug #250106 + exeinto /usr/bin + exeopts -m 6710 -g plugdev + doexe src/{p,pu}mount + + dodoc AUTHORS ChangeLog TODO + doman man/{{p,pu}mount.1,pmount.conf.5} + + insinto /etc + doins etc/pmount.{allow,conf} + + keepdir /media #501772 + + newbashcomp "${FILESDIR}/${PN}.bash-completion" "${PN}" + bashcomp_alias pmount pumount +} + +pkg_postinst() { + elog + elog "This package has been installed setuid and setgid." + + elog "The permissions are as such that only users that belong to the plugdev" + elog "group are allowed to run this. But if a script run by root mounts a" + elog "device, members of the plugdev group will have access to it." + elog + elog "Please add your user to the plugdev group to be able to mount USB drives" +} |