commit: cceca2274993d990afc0d47978d0c59505a28218 Author: Dave Hughes <davidhughes205 <AT> gmail <DOT> com> AuthorDate: Tue Apr 13 12:58:41 2021 +0000 Commit: Dave Hughes <davidhughes205 <AT> gmail <DOT> com> CommitDate: Tue Apr 13 12:58:41 2021 +0000 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=cceca227
sys-libs/libutempter: remove from overlay Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Dave Hughes <davidhughes205 <AT> gmail.com> sys-libs/libutempter/Manifest | 1 - .../libutempter-remove-glibc-assumption.patch | 81 ---------------------- sys-libs/libutempter/libutempter-1.1.6-r2.ebuild | 71 ------------------- sys-libs/libutempter/metadata.xml | 12 ---- 4 files changed, 165 deletions(-) diff --git a/sys-libs/libutempter/Manifest b/sys-libs/libutempter/Manifest deleted file mode 100644 index 6899858..0000000 --- a/sys-libs/libutempter/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST libutempter-1.1.6.tar.bz2 15705 SHA256 b898565f31ced7e5c1fa0a2eaa0f6ff0ed862b5fe375d26375b64bfbdfeac397 SHA512 6ada410b981d157ae20b578de8ce20997ec0446ec6de6859549b080aa65976fc9900d211600dab09dc3d0d109daabad0994a648b093b8781b442ff26ca17fede WHIRLPOOL c94d42d6929754608f9504defec3ab5b4c5c61fd0baa373e07508a11167241c07de4ecf26e14271e2c9914b731afba12ff7930e8ecd0126da1f472dccabdea30 diff --git a/sys-libs/libutempter/files/libutempter-remove-glibc-assumption.patch b/sys-libs/libutempter/files/libutempter-remove-glibc-assumption.patch deleted file mode 100644 index 6ed9335..0000000 --- a/sys-libs/libutempter/files/libutempter-remove-glibc-assumption.patch +++ /dev/null @@ -1,81 +0,0 @@ -diff -Naur libutempter-1.1.6.orig/utempter.c libutempter-1.1.6/utempter.c ---- libutempter-1.1.6.orig/utempter.c 2010-11-04 13:14:53.000000000 -0400 -+++ libutempter-1.1.6/utempter.c 2014-06-20 16:37:09.762403323 -0400 -@@ -34,13 +34,7 @@ - #include <sys/stat.h> - #include <utmp.h> - --#ifdef __GLIBC__ - # include <pty.h> --#elif defined(__FreeBSD__) --# include <libutil.h> --#else --# error Unsupported platform --#endif /* __GLIBC__ || __FreeBSD__ */ - - #define DEV_PREFIX "/dev/" - #define DEV_PREFIX_LEN (sizeof(DEV_PREFIX)-1) -@@ -106,17 +100,12 @@ - - static int - write_uwtmp_record(const char *user, const char *term, const char *host, --#ifdef __GLIBC__ - pid_t pid, --#endif - int add) - { - struct utmp ut; - struct timeval tv; -- --#ifdef __GLIBC__ - size_t offset; --#endif - - memset(&ut, 0, sizeof(ut)); - -@@ -128,8 +117,6 @@ - if (host) - strncpy(ut.ut_host, host, sizeof(ut.ut_host)); - --#ifdef __GLIBC__ -- - offset = (strlen(term) <= sizeof(ut.ut_id)) ? 0 : - strlen(term) - sizeof(ut.ut_id); - strncpy(ut.ut_id, term + offset, sizeof(ut.ut_id)); -@@ -156,27 +143,6 @@ - - (void) updwtmp(_PATH_WTMP, &ut); - --#elif defined(__FreeBSD__) -- -- ut.ut_time = tv.tv_sec; -- -- if (add) -- { -- login(&ut); -- } else -- { -- if (logout(term) != 1) -- { --#ifdef UTEMPTER_DEBUG -- fprintf(stderr, "utempter: logout: %s\n", -- strerror(errno)); --#endif -- exit(EXIT_FAILURE); -- } -- } -- --#endif /* __GLIBC__ || __FreeBSD__ */ -- - #ifdef UTEMPTER_DEBUG - fprintf(stderr, - "utempter: DEBUG: utmp/wtmp record %s for terminal '%s'\n", -@@ -255,8 +221,6 @@ - validate_device(device); - - return write_uwtmp_record(pw->pw_name, device + DEV_PREFIX_LEN, host, --#ifdef __GLIBC__ - pid, --#endif - add); - } diff --git a/sys-libs/libutempter/libutempter-1.1.6-r2.ebuild b/sys-libs/libutempter/libutempter-1.1.6-r2.ebuild deleted file mode 100644 index 2f9f4f1..0000000 --- a/sys-libs/libutempter/libutempter-1.1.6-r2.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="4" - -inherit user multilib flag-o-matic - -DESCRIPTION="Library that allows non-privileged apps to write utmp (login) info, which need root access" -HOMEPAGE="http://altlinux.org/index.php?module=sisyphus&package=libutempter" -SRC_URI="ftp://ftp.altlinux.org/pub/people/ldv/${PN}/${P}.tar.bz2" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~mips ppc x86" -IUSE="static-libs elibc_FreeBSD" - -RDEPEND="!sys-apps/utempter" - -pkg_setup() { - enewgroup utmp 406 -} - -src_prepare() { - local args=( - -e "/^libdir /s:/usr/lib:${EPREFIX}/usr/$(get_libdir):" - -e '/^libexecdir /s:=.*:= $(libdir)/misc:' - -e '/^CFLAGS = $(RPM_OPT_FLAGS)/d' - -e 's:,-stats::' - -e "/^includedir /s:/usr/include:${EPREFIX}/usr/include:" - -e "/^mandir /s:=.*:= ${EPREFIX}/usr/share/man:" - ) - use static-libs || args+=( - -e '/^STATICLIB/d' - -e '/INSTALL.*STATICLIB/d' - ) - sed -i "${args[@]}" Makefile || die - - epatch "${FILESDIR}"/${PN}-remove-glibc-assumption.patch -} - -src_configure() { - use elibc_FreeBSD && append-libs -lutil - tc-export AR CC -} - -src_compile() { - emake LDLIBS="${LIBS}" -} - -src_install() { - default - - if ! use prefix ; then - fowners root:utmp /usr/$(get_libdir)/misc/utempter/utempter - fperms 2755 /usr/$(get_libdir)/misc/utempter/utempter - fi - dodir /usr/sbin - dosym ../$(get_libdir)/misc/utempter/utempter /usr/sbin/utempter -} - -pkg_postinst() { - if [ -f "${EROOT}/var/log/wtmp" ] ; then - chown root:utmp "${EROOT}/var/log/wtmp" - chmod 664 "${EROOT}/var/log/wtmp" - fi - - if [ -f "${EROOT}/var/run/utmp" ] ; then - chown root:utmp "${EROOT}/var/run/utmp" - chmod 664 "${EROOT}/var/run/utmp" - fi -} diff --git a/sys-libs/libutempter/metadata.xml b/sys-libs/libutempter/metadata.xml deleted file mode 100644 index 910808b..0000000 --- a/sys-libs/libutempter/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>base-sys...@gentoo.org</email> - <name>Gentoo Base System</name> -</maintainer> -<maintainer type="project"> - <email>x...@gentoo.org</email> - <name>X11</name> -</maintainer> -</pkgmetadata>