SHA256
3
0
forked from pool/utempter

Accepting request 180096 from home:msmeissn:branches:Base:System

- 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

OBS-URL: https://build.opensuse.org/request/show/180096
OBS-URL: https://build.opensuse.org/package/show/Base:System/utempter?expand=0&rev=20
This commit is contained in:
Marcus Meissner 2013-06-20 09:49:51 +00:00 committed by Git OBS Bridge
parent 5072d52006
commit a05bac28ee
11 changed files with 248 additions and 85 deletions

View File

@ -1 +1,2 @@
utempter libutempter0
utempter-devel

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b898565f31ced7e5c1fa0a2eaa0f6ff0ed862b5fe375d26375b64bfbdfeac397
size 15705

View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEABECAAYFAkzSv90ACgkQ2XqGi/fduzoyqgCeL+Ib3+WRh63+dGi1b62yh8Qk
1/sAnRP+QVdpxvP+L4uB+MvwEj7tRJAR
=Lwhu
-----END PGP SIGNATURE-----

View File

@ -1,15 +0,0 @@
--- Makefile
+++ Makefile 2005/06/20 11:16:24
@@ -21,6 +21,12 @@
%.os : %.c
$(CC) -c $(CFLAGS) -fPIC $< -o $@
+%.o : %.c
+ $(CC) -c $(CFLAGS) -fpie $< -o $@
+
+utempter: utempter.o
+ $(CC) -o $@ -pie $^
+
install:
mkdir -p $(RPM_BUILD_ROOT)/usr/sbin
mkdir -p $(RPM_BUILD_ROOT)/$(LIBDIR)

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:555da9e323b7691bfc8b7d3e428e57642f9a776b742c308dc363e30ca99d4d90
size 13765

View File

@ -0,0 +1,30 @@
Index: libutempter-1.1.6/Makefile
===================================================================
--- libutempter-1.1.6.orig/Makefile
+++ libutempter-1.1.6/Makefile
@@ -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
@@ -53,7 +53,7 @@ all: $(TARGETS)
$(COMPILE.c) -fPIC $< $(OUTPUT_OPTION)
$(PROJECT): utempter.c
- $(LINK.c) -Wl,-z,now,-stats $(LDLIBS) $< $(OUTPUT_OPTION)
+ $(LINK.c) -Wl,-z,now,-stats -pie $(LDLIBS) $< $(OUTPUT_OPTION)
$(SHAREDLIB): iface.os $(MAP)
$(LINK.o) -shared \
@@ -74,7 +74,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)/

View File

@ -1,30 +0,0 @@
--- utempter-0.5.5/utempter.c
+++ utempter-0.5.5/utempter.c
@@ -89,6 +89,7 @@ int main(int argc, const char ** argv) {
int i;
struct stat sb;
char * id;
+ struct timeval tv;
if (argc < 3) usage();
@@ -116,6 +117,9 @@ int main(int argc, const char ** argv) {
host = NULL;
}
+ memset(&tv, 0, sizeof(tv));
+ (void) gettimeofday(&tv, 0);
+
memset(&utx, 0, sizeof(utx));
if (add)
utx.ut_type = USER_PROCESS;
@@ -152,7 +156,8 @@ int main(int argc, const char ** argv) {
strncpy(utx.ut_id, id, sizeof(utx.ut_id));
- gettimeofday(&utx.ut_tv, NULL);
+ utx.ut_tv.tv_sec = tv.tv_sec;
+ utx.ut_tv.tv_usec = tv.tv_usec;
pututxline(&utx);
updwtmpx(_PATH_WTMP, &utx);

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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 Fri Apr 5 10:01:05 UTC 2013 - idonmez@suse.com

View File

@ -1,19 +1,40 @@
--- utempter-0.5.5/Makefile.eal3 2004-08-05 11:33:17.000000000 +0200 Index: libutempter-1.1.6/Makefile
+++ utempter-0.5.5/Makefile 2004-08-05 11:34:06.000000000 +0200 ===================================================================
@@ -25,9 +25,11 @@ --- libutempter-1.1.6.orig/Makefile
mkdir -p $(RPM_BUILD_ROOT)/usr/sbin +++ libutempter-1.1.6/Makefile
mkdir -p $(RPM_BUILD_ROOT)/$(LIBDIR) @@ -35,6 +35,7 @@ libexecdir = /usr/lib
mkdir -p $(RPM_BUILD_ROOT)/usr/include includedir = /usr/include
+ mkdir -p $(RPM_BUILD_ROOT)/usr/share/man/man8 mandir = /usr/share/man
install -m 4755 utempter $(RPM_BUILD_ROOT)/usr/sbin man3dir = $(mandir)/man3
install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include +man8dir = $(mandir)/man8
install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION) DESTDIR =
+ install -c -m 644 utempter.8 $(RPM_BUILD_ROOT)/usr/share/man/man8/utempter.8
ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB)
$(SHAREDLIB): utmpintf.os WARNINGS = -W -Wall -Waggregate-return -Wcast-align -Wconversion \
--- utempter-0.5.5/utempter.8.eal3 1970-01-01 01:00:00.000000000 +0100 @@ -68,6 +69,8 @@ iface.o: iface.c utempter.h
+++ utempter-0.5.5/utempter.8 2003-11-18 09:01:43.000000000 +0100 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,9 +78,11 @@ 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; \
+ ln -s $(PROJECT).8 $(DESTDIR)$(man8dir)/$$n.8; \
done
clean:
Index: libutempter-1.1.6/utempter.8
===================================================================
--- /dev/null
+++ libutempter-1.1.6/utempter.8
@@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
+.\" Copyright (C) 2003 International Business Machines Corporation +.\" Copyright (C) 2003 International Business Machines Corporation
+.\" Author: Emily Ratliff <ratliff@austin.ibm.com> +.\" Author: Emily Ratliff <ratliff@austin.ibm.com>

110
utempter.keyring Normal file
View File

@ -0,0 +1,110 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQGiBEOmnRIRBACtkmB/90l9XnFMUxYv+CnHBTe84AKGXDZkBvQtbIKEjjJ1EqnG
xuC5bXPUfx7kQwCMw8Jz+p3dwjPnWEXjRikzPq3WThbSLny08JzmtDfA2R3kofdJ
UfREfV5ZfNyXEaYzLo4l0EjzZRlGRKIa0acT6Haum9NEDkV82La6aJYHnwCgm6oy
ydVVpD9AZKdV1+pjBuO6s7kEAIi2dxJfR8vxwHLu3DxkxUmt/pHwh9lBUi6E40EX
1umdJdXkACfmy2ja4cIGdehVyLV0kAA4BiAtnTursHibSC5/SqJHHwWaV6b8IGnU
yVIPOXdUXodFw/ElwEE3HuMCInz2xr7bYBOcGrWlroWFOijuZruD9ErXBuQb9mnk
o/3YA/43qm8GZzUtekdPGKGPNCg0ZcWi9qKRu8nfsUz2Xdv+vkqB9ewnh8x6/X5Y
SMuycAkaxsgwacJPtNb7HWSC5xx7Ao+sSWem59zrLOKprQ2aidgbhWr0X2VfCkmr
WbXsSZGRzC/I0WYhzRjuBKcDCkLOsPdCs7X765hRJCGqLrex/LQwRG1pdHJ5IFYu
IExldmluIChmb3IgcGFja2FnZXMpIDxsZHZAYWx0bGludXgucnU+iEYEEBECAAYF
AkOmoQMACgkQDv56tsGqsZX6RgCgtf17/CBQFYdQNZfMaOu+bj1t4fkAniIyEBHI
yMxXA6MO9I9hekbbG/B4iEYEEBECAAYFAkOmougACgkQ9viEa8HiNCmtlACfaqJg
NxNEzyTxd9grQh052Q76e3sAoIKAQ8E7VqvaFg0QfVXNq4fSZRZuiEYEEBECAAYF
AkOnIcEACgkQW0M6DurJHKDqzwCdEfx1+tt56Lc0TVjRy7Xkf4sclHkAoM41muC1
E0od0iN982e9GBSE8vYbiEYEEBECAAYFAkYbQMEACgkQJGLEG1jrYMgu8ACfSxwi
cLoCTM+QpOZXJ2RU64Jsm9A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sQAWdy/KtyZ+DrylxAOABGE
OW+tkBeF/dGMeMNQiwjE1FxPtx1DJvXsmJ4Uaksf2s6YHongxl86hHSUJYNxJSLV
93/t4c2/6eeJKww+oaoj8wndvn+bdaT4PSHSzhHvIGkGmiRYkcuXm/3n07nrhBbo
RFQNPT3HsoeTFTqhZJhP9Ntx4HHal0GezH+owIW5+bedxhkCSqfl2qH30YpqWg3o
oV4L0FBC8tMqskuBrOTbavFe+fHRtOLlvVgrwd/JJToeplb7Do0B72y8VgUn9hP8
3fGF/vuziUcC8ICITwQYEQIADwIbDAUCTQ1LAAUJEsyvYwAKCRDZeoaL9927Ot/k
AJ9K5dZgD0JiXhN39a1PK2N+L57LWACfUmz5MViuqI6IO1c8oN1KXzxu/gM=
=GfHG
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -16,9 +16,10 @@
# #
%define lname libutempter0
Name: utempter Name: utempter
%define utmpGroup utmp %define utmpGroup utmp
Version: 0.5.5 Version: 1.1.6
Release: 0 Release: 0
Summary: A privileged helper for utmp and wtmp updates Summary: A privileged helper for utmp and wtmp updates
License: MIT License: MIT
@ -27,12 +28,17 @@ Group: Productivity/Security
%ifarch ppc64 %ifarch ppc64
Obsoletes: utempter-64bit Obsoletes: utempter-64bit
%endif %endif
%define _hash a628f149132e2f729bc4601e6a4f6c29 Url: ftp://ftp.altlinux.org/pub/people/ldv/utempter/
Source: http://pkgs.fedoraproject.org/repo/pkgs/%{name}/%{name}-%{version}.tar.gz/%{_hash}/%{name}-%{version}.tar.gz Source: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2
Source1: ftp://ftp.altlinux.org/pub/people/ldv/utempter/lib%name-%version.tar.bz2.asc
Source2: baselibs.conf Source2: baselibs.conf
Source3: %name.keyring
Patch0: utempter.eal3.diff Patch0: utempter.eal3.diff
Patch1: utempter-0.5.5-pie.diff Patch1: utempter-no-staticlib.patch
Patch2: utempter-ppc64.patch %if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
%endif
# #
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -44,41 +50,63 @@ setuid root.
%package devel %package devel
Summary: Development files for utempter Summary: Development files for utempter
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %lname = %{version}
%description devel %description devel
Utempter is a privileged helper for utmp and wtmp updates. This Utempter is a privileged helper for utmp and wtmp updates. This
package contains the development files needed. package contains the development files needed.
%package -n %lname
Summary: Shared library of utempter
Group: Development/Libraries/C and C++
PreReq: permissions
Provides: utempter = %version
Obsoletes: utempter <= 0.5.5
Requires: %{name}
%description -n %lname
Utempter is a privileged helper for utmp and wtmp updates. This
package contains the library used by applications.
%prep %prep
%setup -q %if 0%{?suse_version} > 1220
%gpg_verify %{S:1}
%endif
%setup -q -n lib%name-%version
%patch0 -p1 %patch0 -p1
%patch1 %patch1 -p1
%patch2 -p1
%build %build
make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags}" CC="gcc" make %{?_smp_mflags} RPM_OPT_FLAGS="%{optflags} -fPIC" CC="gcc"
%install %install
export DESTDIR=%{buildroot} export DESTDIR=%{buildroot}
make PREFIX=$DESTDIR LIBDIR=%{_libdir} install make PREFIX=$DESTDIR libdir=%{_libdir} DESTDIR=%{buildroot} install
chmod 755 $DESTDIR%{_libdir}/libutempter.so* chmod 755 $DESTDIR%{_libdir}/libutempter.so*
/sbin/ldconfig -n $DESTDIR%{_libdir} /sbin/ldconfig -n $DESTDIR%{_libdir}
%post -p /sbin/ldconfig %verifyscript -n %lname
%verify_permissions -e /usr/lib/utempter/utempter
%postun -p /sbin/ldconfig %post -n %lname
%set_permissions /usr/lib/utempter/utempter
/sbin/ldconfig
%files %postun -n %lname -p /sbin/ldconfig
%defattr(444,root,root,755)
%files -n %lname
%defattr(644,root,root,755)
%doc COPYING %doc COPYING
%attr(02755, root, %{utmpGroup}) %{_sbindir}/utempter %dir /usr/lib/utempter
%attr(555,root,root) %{_libdir}/libutempter.so.* %attr(02755, root, %{utmpGroup}) /usr/lib/utempter/utempter
%attr(444,root,root) %doc %{_mandir}/man8/* %attr(755,root,root) %{_libdir}/libutempter.so.*
%attr(644,root,root) %doc %{_mandir}/man8/*
%files devel %files devel
%defattr(444,root,root,755) %doc COPYING
%attr(555,root,root) %{_libdir}/libutempter.so %defattr(644,root,root,755)
%attr(444,root,root) %{_includedir}/utempter.h %attr(755,root,root) %{_libdir}/libutempter.so
%attr(644,root,root) %{_includedir}/utempter.h
%attr(644,root,root) %doc %{_mandir}/man3/*
%changelog %changelog