diff options
Diffstat (limited to 'sys-apps/utempter')
-rw-r--r-- | sys-apps/utempter/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch | 23 | ||||
-rw-r--r-- | sys-apps/utempter/utempter-0.5.5.6-r2.ebuild | 50 |
3 files changed, 75 insertions, 0 deletions
diff --git a/sys-apps/utempter/Manifest b/sys-apps/utempter/Manifest index e7fa30c61c52..6a7571015cf2 100644 --- a/sys-apps/utempter/Manifest +++ b/sys-apps/utempter/Manifest @@ -1,5 +1,7 @@ AUX utempter-0.5.5.6-fix-build-system.patch 1168 BLAKE2B c513d18115a7a78e2c4d381f7ae650aa56de4d0833fa7c610948da072c4a1e85ae6832517012dd0c04ca91f4c3cb51d8b3b332c58b66b0716c63e3576917fe77 SHA512 a2febc07a01e0f9f95c8c846616d8f46e74e3db2ea66af720539f6825019dd05ab5472507210945c5caf84566584ab01824ebf0f16e51e7012f1334fc5a920b4 +AUX utempter-0.5.5.6-no_gettimeofday.patch 519 BLAKE2B 3418e18695ab38e0621c4f22c6ebfde03d7a8e397fe32c4548fac1887cbde1da95013a987b816b20f2ae1597e491a4468156a33ec9e39a70b4895daf944eda37 SHA512 5174b7fa123bec7cacf0cf0d7a34dec4500f0b3eb5e19c7f9b3777eab141e1c70efb49571806e3fb3682aab996eab506a8d41d73d1e95ebc46bc5e1136fa3cb1 AUX utempter-0.5.5.6-no_utmpx.patch 666 BLAKE2B 9ee0c3634b87ddd50d50f81811f749f615e4fad8dc27b9fc97cc1b61ffdd64eb5045910457547b2cbc245c593490ab354e3a7f5a5965a8aeebf330c6b32d4889 SHA512 4cdc7616f1b886b74fa39272f502fb9eb303047c93be57122ba32517f49a0274e4f7e02b25ead9dd9b60584610a576cb2d78c6350350b3d8364ccd903c3dafcf DIST utempter-0.5.5-6.src.rpm 21099 BLAKE2B a4a8c53ab31d53ec56d60a16e5c1d3a0a2ec6c73c3c3025c15dfc389da75f969545392b46976017cfcde1d9f9ca974b14786bbf39709aebdda890df13a7866ed SHA512 81eeac830631922f2d1b2099a559b60bfd21818b38a524d3c5f61aec143b3e70e95a9ccc300f649dd81f515837fe3befaba6b93bb2e22767e71eee7acb711655 EBUILD utempter-0.5.5.6-r1.ebuild 950 BLAKE2B 1111f393b972caaeafad2527451d7a2c790067332bc0e87eb735c29f72218afdf4dbf613460712e736a2e30c8e9b9b47f529046970658e04ec05583ec21888c5 SHA512 fefa5360978fef80e566efcd25158d7ac0c4929f5c4c94da4914908ab34e708abcfc6e4e17fdefaad464815e9598cfdab263cb488587987e996ad6f55d15c71f +EBUILD utempter-0.5.5.6-r2.ebuild 1007 BLAKE2B db27f2595430567da7dad72173aedbc5c0a4d26388bd5a5a61987fbe71cfe68008badc851dea6f38d353b61eecfe6126c1e6855b6b8b28f90c3d5c1a766245e5 SHA512 3ec588441026a4f411045aba1170f73e827abe96dfd74656cf3c81ba0090b9a07d69dce0265b223d16ee5113e2084523bcb8b9d3d87482143ba397e4a9256f82 MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c diff --git a/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch b/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch new file mode 100644 index 000000000000..26bfdb9e9eb0 --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.6-no_gettimeofday.patch @@ -0,0 +1,23 @@ +From: Brahmajit Das <brahmajit.xyz@gmail.com> +Date: Sun, 28 May 2023 06:25:33 +0000 +Subject: [PATCH] Fix undeclared funtion gettimeofday. + +Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> +--- + utempter.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/utempter.c b/utempter.c +index 3f2f3a2..13214cc 100644 +--- a/utempter.c ++++ b/utempter.c +@@ -11,6 +11,7 @@ + #include <sys/stat.h> + #include <sys/sysmacros.h> + #include <utmp.h> ++#include <sys/time.h> + #ifndef __UCLIBC__ + #include <utmpx.h> + #endif +-- +2.40.1 diff --git a/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild b/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild new file mode 100644 index 000000000000..92d7dd374dd3 --- /dev/null +++ b/sys-apps/utempter/utempter-0.5.5.6-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="${P%.*}" +MY_P="${MY_PN}-${PV##*.}" + +inherit flag-o-matic rpm toolchain-funcs + +DESCRIPTION="App that allows non-privileged apps to write utmp (login) info" +HOMEPAGE="https://www.redhat.com/" +SRC_URI="mirror://gentoo/${MY_P}.src.rpm" +S="${WORKDIR}/${MY_PN}" + +LICENSE="|| ( MIT LGPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + +BDEPEND="acct-group/utmp" +RDEPEND=" + ${BDEPEND} + !sys-libs/libutempter +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.5.6-no_utmpx.patch + "${FILESDIR}"/${PN}-0.5.5.6-fix-build-system.patch + "${FILESDIR}"/${PN}-0.5.5.6-no_gettimeofday.patch +) + +src_prepare() { + default + tc-export CC + append-cflags -Wall +} + +src_install() { + local myemakeargs=( + LIBDIR="/usr/$(get_libdir)" + RPM_BUILD_ROOT="${ED}" + ) + + emake "${myemakeargs[@]}" install + + dobin utmp + + fowners root:utmp /usr/sbin/utempter + fperms 2755 /usr/sbin/utempter +} |