Sync from SUSE:ALP:Source:Standard:1.0 utempter revision 48fbb0b41fa9741e4d650b8dc9513c87

This commit is contained in:
Adrian Schröter 2023-07-31 13:45:51 +02:00
commit 5a6b5907e2
9 changed files with 526 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
baselibs.conf Normal file
View File

@ -0,0 +1,3 @@
libutempter0
obsoletes "utempter-<targettype> < <version>"
utempter-devel

BIN
libutempter-1.2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIcBAABCAAGBQJfAtoAAAoJEKgEH6g54W42i3MP/iHRIYFgDUEoJ6kmXXMwF1xe
bPlYlc0JvRMm1cykby4YzJNRzvGhKVZYnwKLADCPhEQTxWxZi2IvUXy9lHTMHjk6
NDT81Br6WSRriNIInDwP0lGVksHTEKA+f68/2Di71tSlmFzZQ0GUfxwMotgT37ke
A2fTLBYPr726VeX2unOsIeT4/go9T9tDFQCoAgepHO6+T6vA4pohbk/y/dtC1JXu
fwNjhGiqZDD3yieVUQRDx2+JrVmOHn2osXCriVTVXNG02CCg0XylTlqT5VZqd1W/
OjQaQW+EdoumY1StzsII/6/MDn80hPHYOazMVGkCxIgyQFzGnD2HB6p5iDnbAYKI
w2463dXRaHsLz060Z4c0YC73aRyXuW3AUmkW7TMQSfiRpVurszgunA5SqRmKtPLl
D7QQeOh1zvvdeSf4rCC3aXciBjhTmo0Jsrn/jJpN3YFTk4LYMHvUJopH3tBg2NTH
1ugmZOjCJNNy+dvAB4ju5XxsEFL4VmwiSU0TB/0qAgUNv1cHNOsTcbR0piDeBb0e
RvySgV1T+XJrZuzGUEzxwA40HerL+c4UQG3SFfcNZnyeyPoWo9sWbUEXgLTI7BU+
YW62qpIn6mI9X0AqX7iHf3cJ/ZTrtVlV9YYxJaRwTcM9w9ow8aD4aTpNk4XAILnz
14VPww1jbZqQUE4WMEE+
=8f43
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,21 @@
Index: libutempter-1.2.0/Makefile
===================================================================
--- libutempter-1.2.0.orig/Makefile 2020-05-06 13:48:03.671980211 +0200
+++ libutempter-1.2.0/Makefile 2020-05-06 13:48:03.683980273 +0200
@@ -27,7 +27,7 @@ SONAME = $(SHAREDLIB).$(MAJOR)
STATICLIB = lib$(PROJECT).a
MAP = lib$(PROJECT).map
-TARGETS = $(PROJECT) $(SHAREDLIB) $(STATICLIB)
+TARGETS = $(PROJECT) $(SHAREDLIB)
INSTALL = install
libdir = /usr/lib
@@ -85,7 +85,6 @@ install:
$(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
$(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
$(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
- $(INSTALL) -p -m644 $(STATICLIB) $(DESTDIR)$(libdir)/
ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
$(INSTALL) -p -m644 $(PROJECT).3 $(DESTDIR)$(man3dir)/

184
utempter.changes Normal file
View File

@ -0,0 +1,184 @@
-------------------------------------------------------------------
Mon Apr 10 01:26:06 UTC 2023 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- version update to 1.2.1
* utempter: relaxed host argument validation: it is now allowed
to contain spaces except in the first character.
- switch source from ftp to http
-------------------------------------------------------------------
Mon Sep 28 20:25:57 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Fix License, libutempter has been LGPL-2.1+ for the last 19 years
- Fix utempter.8 man page to match real parameters
- Remove erroneous links to utempter.8 man page
- Clean up spec file
-------------------------------------------------------------------
Thu Sep 3 15:52:03 UTC 2020 - Marcus Meissner <meissner@suse.com>
- fixed utempter location after libexecdir change (bsc#1175925)
-------------------------------------------------------------------
Wed May 6 12:15:39 UTC 2020 - pgajdos@suse.com
- version update to 1.2.0
* maintenance work:
https://github.com/altlinux/libutempter/commits/
- modified patches
% utempter-no-staticlib.patch (refreshed)
- modified sources
% utempter.keyring
- set now libexecdir=%{_libexecdir} as utemper binary complies FHS
definition
-------------------------------------------------------------------
Fri Feb 23 08:35:22 UTC 2018 - fvogt@suse.com
- Use %license (boo#1082318)
-------------------------------------------------------------------
Wed Sep 13 19:43:32 UTC 2017 - schwab@linux-m68k.org
- Pre-require group(%{utmpGroup})
-------------------------------------------------------------------
Thu Nov 13 16:13:17 UTC 2014 - tchvatal@suse.com
- remove /sbin/ldconfig -n $DESTDIR%{_libdir} as it should be not
needed in install phase
- Remove Requires: %name as there is no name and adjust obsolete
as there exist version 0.5.5.6 which is larger than the provides
- Remove sle10 obsolete for ppc64 utempter-64bit
- Clean-up with spec-cleaner
-------------------------------------------------------------------
Thu Aug 14 15:59:02 UTC 2014 - fcrozat@suse.com
- Obsoletes utempter-32bit in libutempter0-32bit.
-------------------------------------------------------------------
Fri Jun 21 07:17:10 UTC 2013 - meissner@suse.com
- remove gpg offline checking to avoid buildloops. will be
done by source service.
-------------------------------------------------------------------
Wed Jun 5 11:23:54 UTC 2013 - meissner@suse.com
- updated to 1.1.6 upstream (bnc#823302)
- new apis (old are staying)
- utempter-ppc64.patch: is upstream, removed
- utempter-0.5.5-pie.diff: done differently, removed
- utempter-no-staticlib.patch: no static library wanted
- gpg source tarball checking
- hooked up permissions framework correctly
-------------------------------------------------------------------
Fri Apr 5 10:01:05 UTC 2013 - idonmez@suse.com
- Add Source URL, see https://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Sat Oct 15 08:59:16 UTC 2011 - andrea.turrini@gmail.com
- fixed typo in utempter.spec
-------------------------------------------------------------------
Tue Oct 4 09:03:15 UTC 2011 - uli@suse.com
- cross-build fix: use %__cc macro
-------------------------------------------------------------------
Thu Nov 11 09:09:07 UTC 2010 - aj@suse.de
- Use group utmp for utempter (bnc#652877).
-------------------------------------------------------------------
Sun Oct 31 12:37:02 UTC 2010 - jengelh@medozas.de
- Use %_smp_mflags
-------------------------------------------------------------------
Thu Sep 9 15:00:50 UTC 2010 - aj@suse.de
- Split up devel package.
-------------------------------------------------------------------
Mon May 10 15:52:56 CEST 2010 - meissner@suse.de
- handle ppc64 utmp entries with 32bit timeval correctly. bnc#602489
-------------------------------------------------------------------
Wed Dec 16 00:17:51 CET 2009 - jengelh@medozas.de
- add baselibs.conf as a source
- enable parallel building
-------------------------------------------------------------------
Wed Jan 7 12:34:56 CET 2009 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Sat May 27 22:15:27 CEST 2006 - schwab@suse.de
- Don't strip binaries.
-------------------------------------------------------------------
Wed Jan 25 21:31:03 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Jun 20 13:21:30 CEST 2005 - kukuk@suse.de
- Compile with -fpie/-pie
-------------------------------------------------------------------
Thu Aug 5 11:38:05 CEST 2004 - okir@suse.de
- Updated to latest upstream version
-------------------------------------------------------------------
Tue Apr 20 10:48:40 CEST 2004 - okir@suse.de
- Fix incorrect check for /../ in path names (#39169)
-------------------------------------------------------------------
Fri Jan 16 11:52:12 CET 2004 - thomas@suse.de
- added man-page utempter.8 (EAL3)
-------------------------------------------------------------------
Sun Jan 11 09:29:00 CET 2004 - adrian@suse.de
- add %run_ldconfig
-------------------------------------------------------------------
Fri Apr 12 09:20:27 CEST 2002 - okir@suse.de
- well, if the files list says %_libdir, one should make sure
the shared lib really goes to in %_libdir :)
-------------------------------------------------------------------
Fri Mar 8 13:14:24 CET 2002 - kukuk@suse.de
- Create libutemtper.so.0 link and include it in RPM [Bug #14672]
-------------------------------------------------------------------
Tue Jan 29 10:38:33 CET 2002 - okir@suse.de
- %files list uses %_libdir rather than /usr/lib
-------------------------------------------------------------------
Fri Jan 25 16:23:24 CET 2002 - okir@suse.de
- Initial package.

64
utempter.eal3.diff Normal file
View File

@ -0,0 +1,64 @@
Index: libutempter-1.1.6/Makefile
===================================================================
--- libutempter-1.1.6.orig/Makefile
+++ libutempter-1.1.6/Makefile
@@ -35,6 +35,7 @@ libexecdir = /usr/lib
includedir = /usr/include
mandir = /usr/share/man
man3dir = $(mandir)/man3
+man8dir = $(mandir)/man8
DESTDIR =
WARNINGS = -W -Wall -Waggregate-return -Wcast-align -Wconversion \
@@ -68,6 +69,8 @@ iface.o: iface.c utempter.h
install:
mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/$(PROJECT) \
$(DESTDIR)$(includedir) $(DESTDIR)$(man3dir)
+ mkdir -p $(DESTDIR)$(libdir) $(DESTDIR)$(libexecdir)/$(PROJECT) \
+ $(DESTDIR)$(includedir) $(DESTDIR)$(man8dir)
$(INSTALL) -p -m2711 $(PROJECT) $(DESTDIR)$(libexecdir)/$(PROJECT)/
$(INSTALL) -p -m644 $(PROJECT).h $(DESTDIR)$(includedir)/
$(INSTALL) -p -m755 $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SHAREDLIB).$(VERSION)
@@ -75,6 +78,7 @@ install:
ln -s $(SHAREDLIB).$(VERSION) $(DESTDIR)$(libdir)/$(SONAME)
ln -s $(SONAME) $(DESTDIR)$(libdir)/$(SHAREDLIB)
$(INSTALL) -p -m644 $(PROJECT).3 $(DESTDIR)$(man3dir)/
+ $(INSTALL) -p -m644 $(PROJECT).8 $(DESTDIR)$(man8dir)/
for n in lib$(PROJECT) utempter_add_record utempter_remove_record \
utempter_remove_added_record utempter_set_helper; do \
ln -s $(PROJECT).3 $(DESTDIR)$(man3dir)/$$n.3; \
Index: libutempter-1.1.6/utempter.8
===================================================================
--- /dev/null
+++ libutempter-1.1.6/utempter.8
@@ -0,0 +1,30 @@
+.\" Copyright (C) 2003 International Business Machines Corporation
+.\" Author: Emily Ratliff <ratliff@austin.ibm.com>
+.\" This file is distributed according to the GNU General Public License.
+.\"
+.TH "UTEMPTER" 8 "2003-03-21" "" "Linux System Administrator's Manual"
+.SH NAME
+utempter \- privileged helper program for utmp/wtmp updates
+.SH "SYNOPSIS"
+\fButempter\fR add \fIhost\fR
+.sp
+\fButempter\fR del\fR
+.SH "DESCRIPTION"
+.B utempter
+is a privileged helper program that writes utmp/wtmp entries for unprivileged
+programs.
+
+.SH "OPTIONS"
+The following options are supported:
+.IP "\fBadd \fIhost\fR"
+add an entry to the utmp/wtmp file
+.IP "\fBdel\fR"
+delete an entry from the utmp file
+
+.SH "RETURN VALUE"
+On success, 0 is returned.
+On error, 1 is returned.
+
+.SH "SEE ALSO"
+.BR utmp (5),
+.BR utmpname (3)

118
utempter.keyring Normal file
View File

@ -0,0 +1,118 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFYnbLEBEACsADGvgMHHp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7WaYSDncgcbB8seZZL5TZivvBVmDn+WeIy
Pp4DdMULTvwd9AihKyFdy2Rqm4TgAolg640oot40YV1w+ORxa440JAn+xSivAIFE
XZD7ECaStvpl31XqPd98n61WF1sOXKXcgQhPyTCJOzh15Wrcg/EEZreupSX1P3mx
tGuUkFcb9p3s6wARAQABiQIlBBgBCAAPBQJWJ3H9AhsMBQkSzAMAAAoJEC21vYmj
QK63UcQP/08PwPt5wQ5F/PUfIwWEU95HyGs8E8JqyacoXF5CiMO4GMa3Tj95Cpln
iUxwVC5SASKPfwQROR+DhFcMhWMbmYQlEXsyhbG337nsi8L6BvnY6q6dQ0FXVwJU
SxdCUeyOYjWZGg0CJqqHfR4ATht65AsnK6cdGebWbUt+lTd5saiUtxw2jnsfWkQ5
Nq3vhJefvzV/fHS1H3vwpBCCLzEE+b2mVY6xEC+Ee796FKyfi6fQZGxhrne0TWgP
sVQxPCE3aOvVtVj+9YJmBjIBAyusPsLm60+7YXEzqHb2ogmSIZ1Nm7A57qaN1MF6
3dXbwlF2Ez42BhHYaczhV37FWWQA7Zv3WVZbis0reExwMqsH3yBvpko0OErkAWI/
NdzcIkvATHk4TvuPZ2Mlzwx6fnseFJ1dIGvMABtq51FajJ6ue6T3kygaA5SgwFmt
wY7CjG5tfSxx5BjvdDnKrCG8JXohQvmUAEweepq01IaBogyZouHVM+d3tmZxl9sv
M1brQpcQ9/rhVsS4Fng4//9kR1z17LxKPBnHAFiFfd6Vd/fUl+EIFa+Msyj33lLT
BxgChRZ+Nl3UXAdaVFs6qwN013pYQKolRFjJghB2/N43YBLAw/7DwKZtLNkisncX
9mmJ7FXihdcXmRCFfHF5wX5eev3jgv3kQaw9zhmLVKPbJFvnUzwY
=Cv76
-----END PGP PUBLIC KEY BLOCK-----

94
utempter.spec Normal file
View File

@ -0,0 +1,94 @@
#
# spec file for package utempter
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lname libutempter0
%define utmpGroup utmp
Name: utempter
Version: 1.2.1
Release: 0
Summary: A privileged helper for utmp and wtmp updates
License: LGPL-2.1-or-later
Group: Productivity/Security
URL: https://github.com/altlinux/libutempter/
Source: http://ftp.altlinux.org/pub/people/ldv/utempter/lib%{name}-%{version}.tar.gz
Source1: http://ftp.altlinux.org/pub/people/ldv/utempter/lib%{name}-%{version}.tar.gz.asc
Source2: baselibs.conf
Source3: %{name}.keyring
Patch0: utempter.eal3.diff
Patch1: utempter-no-staticlib.patch
%description
Utempter is a utility that allows non-privileged applications such as
terminal emulators to modify the utmp database without having to be
setuid root.
%package devel
Summary: Development files for utempter
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
Utempter is a privileged helper for utmp and wtmp updates. This
package contains the development files needed.
%package -n %{lname}
Summary: Shared library of utempter
Group: Development/Libraries/C and C++
Requires(post): permissions
Requires(pre): group(%{utmpGroup})
Provides: %{name} = %{version}
Obsoletes: %{name} < 0.5.6
%description -n %{lname}
Utempter is a privileged helper for utmp and wtmp updates. This
package contains the library used by applications.
%prep
%setup -q -n lib%{name}-%{version}
%patch0 -p1
%patch1 -p1
%build
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags} -fPIC" CC="gcc" libexecdir=%{_libexecdir}
%install
make libdir=%{_libdir} libexecdir=%{_libexecdir} DESTDIR=%{buildroot} install
%verifyscript -n %{lname}
%verify_permissions -e %{_libexecdir}/utempter/utempter
%post -n %{lname}
%set_permissions %{_libexecdir}/utempter/utempter
/sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license COPYING
%dir %{_libexecdir}/utempter
%attr(02755, root, %{utmpGroup}) %{_libexecdir}/utempter/utempter
%attr(755,root,root) %{_libdir}/libutempter.so.*
%attr(644,root,root) %doc %{_mandir}/man8/*
%files devel
%license COPYING
%attr(755,root,root) %{_libdir}/libutempter.so
%attr(644,root,root) %{_includedir}/utempter.h
%attr(644,root,root) %doc %{_mandir}/man3/*
%changelog