diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /sys-apps/udevil | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'sys-apps/udevil')
| -rw-r--r-- | sys-apps/udevil/Manifest | 1 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.3-flags.patch | 46 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-include-sysmacros.patch | 15 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-no-conf.d.patch | 63 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-no-libtool.patch | 10 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-remove-exfat-options.patch | 23 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch | 20 | ||||
| -rw-r--r-- | sys-apps/udevil/files/udevil-0.4.4-stat.patch | 11 | ||||
| -rw-r--r-- | sys-apps/udevil/metadata.xml | 15 | ||||
| -rw-r--r-- | sys-apps/udevil/udevil-0.4.4-r5.ebuild | 74 | ||||
| -rw-r--r-- | sys-apps/udevil/udevil-0.4.4-r6.ebuild | 77 |
11 files changed, 355 insertions, 0 deletions
diff --git a/sys-apps/udevil/Manifest b/sys-apps/udevil/Manifest new file mode 100644 index 000000000000..d2414c411593 --- /dev/null +++ b/sys-apps/udevil/Manifest @@ -0,0 +1 @@ +DIST udevil-0.4.4.tar.gz 477254 BLAKE2B 16a1980da8b3b98e36921c8e2fe6490c495066178dd928695a07eb8d5d7367cae49e314983f251a1ec684bd16a34286ea4ccc83329c9af0dd71af84c77ced20d SHA512 adce4916e06d1cc4965521abbcbc2901e53930691167f431cb18e28d3ef8bde740e95a6a5f40dfc58dfd7b4b661b4475d3dd2b6174a5d7a55ae7c65629b82327 diff --git a/sys-apps/udevil/files/udevil-0.4.3-flags.patch b/sys-apps/udevil/files/udevil-0.4.3-flags.patch new file mode 100644 index 000000000000..524cdfff9900 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.3-flags.patch @@ -0,0 +1,46 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Oct 21 19:33:04 UTC 2012 +Subject: build system + + respect flags where possible + +--- a/configure.ac ++++ b/configure.ac +@@ -18,26 +18,6 @@ + + + dnl linker optimizations +-AC_MSG_CHECKING([whether $LD accepts --as-needed]) +-case `$LD --as-needed -v 2>&1 </dev/null` in +-*GNU* | *'with BFD'*) +- LDFLAGS="$LDFLAGS -Wl,--as-needed" +- AC_MSG_RESULT([yes]) +- ;; +-*) +- AC_MSG_RESULT([no]) +- ;; +-esac +-AC_MSG_CHECKING([whether $LD accepts -O1]) +-case `$LD -O1 -v 2>&1 </dev/null` in +-*GNU* | *'with BFD'*) +- LDFLAGS="$LDFLAGS -Wl,-O1" +- AC_MSG_RESULT([yes]) +- ;; +-*) +- AC_MSG_RESULT([no]) +- ;; +-esac + AC_MSG_CHECKING([whether $LD accepts -Bsymbolic-functions]) + case `$LD -Bsymbolic-functions -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) +@@ -49,10 +29,6 @@ + ;; + esac + +-dnl advanced compiler tweaking +-CPPFLAGS="$CPPFLAGS -fstrict-aliasing -fmessage-length=0" +- +- + # program paths + AC_ARG_WITH(mount-prog, + AC_HELP_STRING([--with-mount-prog=PATH], [Path to mount program (default: /bin/mount)]), diff --git a/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros.patch b/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros.patch new file mode 100644 index 000000000000..7adda2893d07 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-include-sysmacros.patch @@ -0,0 +1,15 @@ +# Include sysmacros.h, solves Gentoo bug 580364 +# Upstream has merged similar changes, should be present +# in 0.4.5 +--- a/src/udevil.c 2015-05-04 06:34:32.000000000 -0700 ++++ b/src/udevil.c 2017-01-02 07:25:14.744273858 -0800 +@@ -33,6 +33,9 @@ + #include <netdb.h> + #include <arpa/inet.h> + ++// major/minor, dev_t, needed for glibc>=2.25 ++#include <sys/sysmacros.h> ++ + // groups + #include <grp.h> + diff --git a/sys-apps/udevil/files/udevil-0.4.4-no-conf.d.patch b/sys-apps/udevil/files/udevil-0.4.4-no-conf.d.patch new file mode 100644 index 000000000000..0c99b662c4d4 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-no-conf.d.patch @@ -0,0 +1,63 @@ +diff --git a/etc/Makefile.am b/etc/Makefile.am +index 9b6e752..a33ce8e 100644 +--- a/etc/Makefile.am ++++ b/etc/Makefile.am +@@ -1,5 +1,5 @@ + if ADD_SYSTEMD +-EXTRA_DIST = udevil.conf devmon devmon@.service ++EXTRA_DIST = udevil.conf devmon@.service + else + EXTRA_DIST = udevil.conf + endif +@@ -11,11 +11,6 @@ install-data-hook: + $(srcdir)/udevil.conf \ + $(DESTDIR)/$(sysconfdir)/udevil/udevil.conf + if ADD_SYSTEMD +- test -d $(DESTDIR)/$(sysconfdir)/conf.d || mkdir -p -- \ +- $(DESTDIR)/$(sysconfdir)/conf.d +- test -f $(DESTDIR)/$(sysconfdir)/conf.d/devmon || $(INSTALL_DATA) \ +- $(srcdir)/systemd/devmon \ +- $(DESTDIR)/$(sysconfdir)/conf.d/devmon + test -d $(DESTDIR)/$(libdir)/systemd/system || \ + mkdir -p -- $(DESTDIR)/$(libdir)/systemd/system + $(INSTALL_DATA) $(srcdir)/systemd/devmon@.service \ +diff --git a/etc/Makefile.in b/etc/Makefile.in +index bf2b19b..4489e30 100644 +--- a/etc/Makefile.in ++++ b/etc/Makefile.in +@@ -262,7 +262,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + @ADD_SYSTEMD_FALSE@EXTRA_DIST = udevil.conf +-@ADD_SYSTEMD_TRUE@EXTRA_DIST = udevil.conf devmon devmon@.service ++@ADD_SYSTEMD_TRUE@EXTRA_DIST = udevil.conf devmon@.service + all: all-am + + .SUFFIXES: +@@ -462,11 +462,6 @@ install-data-hook: + test -f $(DESTDIR)/$(sysconfdir)/udevil/udevil.conf || $(INSTALL_DATA) \ + $(srcdir)/udevil.conf \ + $(DESTDIR)/$(sysconfdir)/udevil/udevil.conf +-@ADD_SYSTEMD_TRUE@ test -d $(DESTDIR)/$(sysconfdir)/conf.d || mkdir -p -- \ +-@ADD_SYSTEMD_TRUE@ $(DESTDIR)/$(sysconfdir)/conf.d +-@ADD_SYSTEMD_TRUE@ test -f $(DESTDIR)/$(sysconfdir)/conf.d/devmon || $(INSTALL_DATA) \ +-@ADD_SYSTEMD_TRUE@ $(srcdir)/systemd/devmon \ +-@ADD_SYSTEMD_TRUE@ $(DESTDIR)/$(sysconfdir)/conf.d/devmon + @ADD_SYSTEMD_TRUE@ test -d $(DESTDIR)/$(libdir)/systemd/system || \ + @ADD_SYSTEMD_TRUE@ mkdir -p -- $(DESTDIR)/$(libdir)/systemd/system + @ADD_SYSTEMD_TRUE@ $(INSTALL_DATA) $(srcdir)/systemd/devmon@.service \ +diff --git a/etc/systemd/devmon@.service b/etc/systemd/devmon@.service +index 23ccf87..1d707ce 100644 +--- a/etc/systemd/devmon@.service ++++ b/etc/systemd/devmon@.service +@@ -6,8 +6,7 @@ Type=simple + User=%i + # Set DISPLAY for popup dialogs + Environment=DISPLAY=:0 +-EnvironmentFile=/etc/conf.d/devmon +-ExecStart=/usr/bin/devmon $ARGS ++ExecStart=/usr/bin/devmon + + [Install] + WantedBy=multi-user.target + diff --git a/sys-apps/udevil/files/udevil-0.4.4-no-libtool.patch b/sys-apps/udevil/files/udevil-0.4.4-no-libtool.patch new file mode 100644 index 000000000000..ba01e94f15f7 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-no-libtool.patch @@ -0,0 +1,10 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -11,7 +11,6 @@ AM_MAINTAINER_MODE + AC_ISC_POSIX + AM_PROG_CC_C_O + AC_HEADER_STDC +-AM_PROG_LIBTOOL + AC_PROG_INSTALL + + AC_DEFINE_UNQUOTED(UDEVIL_VERSION, "$VERSION", [udevil version]) diff --git a/sys-apps/udevil/files/udevil-0.4.4-remove-exfat-options.patch b/sys-apps/udevil/files/udevil-0.4.4-remove-exfat-options.patch new file mode 100644 index 000000000000..6c53b84b01e8 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-remove-exfat-options.patch @@ -0,0 +1,23 @@ +diff --git a/etc/udevil.conf b/etc/udevil.conf +index 75a4c0d..f0dd102 100644 +--- a/etc/udevil.conf ++++ b/etc/udevil.conf +@@ -221,7 +221,7 @@ default_options_file = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, + default_options_iso9660 = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID, ro, utf8 + default_options_udf = nosuid, noexec, nodev, noatime, uid=$UID, gid=$GID + default_options_vfat = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID, utf8 +-default_options_exfat = nosuid, noexec, nodev, noatime, umask=0077, uid=$UID, gid=$GID, iocharset=utf8, namecase=0, nonempty ++default_options_exfat = nosuid, noexec, nodev, noatime, umask=0077, uid=$UID, gid=$GID, iocharset=utf8 + default_options_msdos = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID + default_options_umsdos = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID + default_options_ntfs = nosuid, noexec, nodev, noatime, fmask=0133, uid=$UID, gid=$GID, utf8 +@@ -252,7 +252,7 @@ allowed_options_smbfs = nosuid, noexec, nodev, ro, rw, remount, port=*, user + allowed_options_sshfs = nosuid, noexec, nodev, noatime, ro, rw, uid=$UID, gid=$GID, nonempty, allow_other, idmap=user, BatchMode=yes, port=* + allowed_options_curlftpfs = nosuid, noexec, nodev, noatime, ro, rw, uid=$UID, gid=$GID, nonempty, allow_other, user=* + allowed_options_ftpfs = nosuid, noexec, nodev, noatime, ro, rw, port=*, user=*, pass=*, root=*, uid=$UID, gid=$GID +-allowed_options_exfat = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID, umask=0077, namecase=*, ro, rw, sync, flush, iocharset=*, remount, nonempty ++allowed_options_exfat = nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID, umask=0077, ro, rw, sync, flush, iocharset=*, remount + + + # mount_point_mode, if present and set to a non-empty value, will cause udevil + diff --git a/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch b/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch new file mode 100644 index 000000000000..49b5cf7aa5a9 --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-signal-handlers.patch @@ -0,0 +1,20 @@ +--- a/src/udevil.c ++++ b/src/udevil.c +@@ -4795,7 +4795,7 @@ static int command_info( CommandData* data ) + return ret; + } + +-void command_monitor_finalize() ++void command_monitor_finalize(int signal) + { + //if (signal == SIGINT || signal == SIGTERM) + //printf( "\nudevil: SIGINT || SIGTERM\n"); +@@ -4913,7 +4913,7 @@ finish_: + return 1; + } + +-void command_interrupt() ++void command_interrupt(int signal) + { + if ( udev ) + { diff --git a/sys-apps/udevil/files/udevil-0.4.4-stat.patch b/sys-apps/udevil/files/udevil-0.4.4-stat.patch new file mode 100644 index 000000000000..427a6f1f670d --- /dev/null +++ b/sys-apps/udevil/files/udevil-0.4.4-stat.patch @@ -0,0 +1,11 @@ +Fixes bug #552072. Thanks Helmut Jarausch. +--- a/src/device-info.h ++++ b/src/device-info.h +@@ -14,6 +14,7 @@ + #include <libudev.h> + #include <fcntl.h> + #include <errno.h> ++#include <sys/stat.h> + + // intltool + #include <glib/gi18n.h> diff --git a/sys-apps/udevil/metadata.xml b/sys-apps/udevil/metadata.xml new file mode 100644 index 000000000000..11838161eff5 --- /dev/null +++ b/sys-apps/udevil/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>hoelbezier@riseup.net</email> + <name>Hoël Bézier</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">IgnorantGuru/udevil</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/udevil/udevil-0.4.4-r5.ebuild b/sys-apps/udevil/udevil-0.4.4-r5.ebuild new file mode 100644 index 000000000000..459b9c93cf89 --- /dev/null +++ b/sys-apps/udevil/udevil-0.4.4-r5.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools linux-info optfeature + +DESCRIPTION="Mount and unmount removable devices without a password" +HOMEPAGE="https://ignorantguru.github.io/udevil/" +SRC_URI="https://github.com/IgnorantGuru/udevil/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + acct-group/plugdev + >=app-shells/bash-4.0:* + dev-libs/glib:2 + sys-apps/util-linux + virtual/acl + >=virtual/udev-143" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + # This works for 0.4.4 too, no sense copying the patch + "${FILESDIR}"/${PN}-0.4.3-flags.patch + "${FILESDIR}"/${PN}-0.4.4-stat.patch + "${FILESDIR}"/${PN}-0.4.4-include-sysmacros.patch + "${FILESDIR}"/${PN}-0.4.4-no-libtool.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-setfacl-prog="$(type -P setfacl)" \ + --enable-systemd +} + +src_install() { + default + fowners root:plugdev /usr/bin/udevil + fperms 4754 /usr/bin/udevil +} + +pkg_postinst() { + einfo + elog "Please add your user to the plugdev group" + elog "to be able to use ${PN} as a user" + elog + optfeature_header "Optional dependencies:" + optfeature "Devmon popups" "gnome-extra/zenity" + optfeature "Mounting WebDAV resources" "net-fs/davfs2" + optfeature "Mounting Samba shares" "net-fs/cifs-utils" + optfeature "Mounting FTP shares" "net-fs/curlftpfs" + optfeature "Mounting NFS shares" "net-fs/nfs-utils" + optfeature "Mounting SFTP shares" "net-fs/sshfs" + if ! has_version 'sys-fs/udisks' ; then + elog + elog "When using ${PN} without udisks, and without the udisks-daemon running," + elog "you may need to enable kernel polling for device media changes to be detected." + elog "See https://ignorantguru.github.com/${PN}/#polling" + has_version '<virtual/udev-173' && ewarn "You need at least udev-173" + kernel_is lt 2 6 38 && ewarn "You need at least kernel 2.6.38" + einfo + fi +} diff --git a/sys-apps/udevil/udevil-0.4.4-r6.ebuild b/sys-apps/udevil/udevil-0.4.4-r6.ebuild new file mode 100644 index 000000000000..74dddd720dd6 --- /dev/null +++ b/sys-apps/udevil/udevil-0.4.4-r6.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools linux-info optfeature + +DESCRIPTION="Mount and unmount removable devices without a password" +HOMEPAGE="https://ignorantguru.github.io/udevil/" +SRC_URI="https://github.com/IgnorantGuru/udevil/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm64 x86" + +RDEPEND=" + acct-group/plugdev + >=app-shells/bash-4.0:* + dev-libs/glib:2 + sys-apps/util-linux + virtual/acl + >=virtual/udev-143" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +PATCHES=( + # This works for 0.4.4 too, no sense copying the patch + "${FILESDIR}"/${PN}-0.4.3-flags.patch + "${FILESDIR}"/${PN}-0.4.4-stat.patch + "${FILESDIR}"/${PN}-0.4.4-include-sysmacros.patch + "${FILESDIR}"/${PN}-0.4.4-no-libtool.patch + "${FILESDIR}"/${PN}-0.4.4-no-conf.d.patch + "${FILESDIR}"/${PN}-0.4.4-remove-exfat-options.patch + "${FILESDIR}"/${PN}-0.4.4-signal-handlers.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --with-setfacl-prog="$(type -P setfacl)" \ + --enable-systemd +} + +src_install() { + default + fowners root:plugdev /usr/bin/udevil + fperms 4754 /usr/bin/udevil +} + +pkg_postinst() { + einfo + elog "Please add your user to the plugdev group" + elog "to be able to use ${PN} as a user" + elog + optfeature_header "Optional dependencies:" + optfeature "Devmon popups" "gnome-extra/zenity" + optfeature "Mounting WebDAV resources" "net-fs/davfs2" + optfeature "Mounting Samba shares" "net-fs/cifs-utils" + optfeature "Mounting FTP shares" "net-fs/curlftpfs" + optfeature "Mounting NFS shares" "net-fs/nfs-utils" + optfeature "Mounting SFTP shares" "net-fs/sshfs" + if ! has_version 'sys-fs/udisks' ; then + elog + elog "When using ${PN} without udisks, and without the udisks-daemon running," + elog "you may need to enable kernel polling for device media changes to be detected." + elog "See https://ignorantguru.github.com/${PN}/#polling" + has_version '<virtual/udev-173' && ewarn "You need at least udev-173" + kernel_is lt 2 6 38 && ewarn "You need at least kernel 2.6.38" + einfo + fi +} |
