commit 666fa2c906aac5d679bff4e2ec748251d5228af43f791c290b8a457df3bdd5f8 Author: OBS User unknown Date: Mon Dec 18 23:18:07 2006 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/utempter?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/utempter-0.5.5-pie.diff b/utempter-0.5.5-pie.diff new file mode 100644 index 0000000..b71d7ca --- /dev/null +++ b/utempter-0.5.5-pie.diff @@ -0,0 +1,15 @@ +--- 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) diff --git a/utempter-0.5.5.tar.gz b/utempter-0.5.5.tar.gz new file mode 100644 index 0000000..89bd598 --- /dev/null +++ b/utempter-0.5.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:555da9e323b7691bfc8b7d3e428e57642f9a776b742c308dc363e30ca99d4d90 +size 13765 diff --git a/utempter.changes b/utempter.changes new file mode 100644 index 0000000..1caf9ae --- /dev/null +++ b/utempter.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +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. + diff --git a/utempter.eal3.diff b/utempter.eal3.diff new file mode 100644 index 0000000..9a5ed94 --- /dev/null +++ b/utempter.eal3.diff @@ -0,0 +1,47 @@ +--- utempter-0.5.5/Makefile.eal3 2004-08-05 11:33:17.000000000 +0200 ++++ utempter-0.5.5/Makefile 2004-08-05 11:34:06.000000000 +0200 +@@ -25,9 +25,11 @@ + mkdir -p $(RPM_BUILD_ROOT)/usr/sbin + mkdir -p $(RPM_BUILD_ROOT)/$(LIBDIR) + mkdir -p $(RPM_BUILD_ROOT)/usr/include ++ mkdir -p $(RPM_BUILD_ROOT)/usr/share/man/man8 + install -m 4755 utempter $(RPM_BUILD_ROOT)/usr/sbin + install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include + install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION) ++ 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 +--- utempter-0.5.5/utempter.8.eal3 1970-01-01 01:00:00.000000000 +0100 ++++ utempter-0.5.5/utempter.8 2003-11-18 09:01:43.000000000 +0100 +@@ -0,0 +1,30 @@ ++.\" Copyright (C) 2003 International Business Machines Corporation ++.\" Author: Emily Ratliff ++.\" 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 \-a \fIslave-device-name\fR \fIhost\fR ++.sp ++\fButempter\fR \-d \fIslave-device-name\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 "\fB-a \fIslave-device-name host\fR ++add an entry to the utmp/wtmp file ++.IP "\fB\-d \fIslave-device-name\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) diff --git a/utempter.spec b/utempter.spec new file mode 100644 index 0000000..a3ff07b --- /dev/null +++ b/utempter.spec @@ -0,0 +1,88 @@ +# +# spec file for package utempter (Version 0.5.5) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Name: utempter +%define utmpGroup tty +Version: 0.5.5 +Release: 16 +Summary: A privileged helper for utmp and wtmp updates +License: X11/MIT +Group: Productivity/Security +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: utempter-%{version}.tar.gz +Patch: utempter.eal3.diff +Patch1: utempter-0.5.5-pie.diff + +%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. + + + +Authors: +-------- + Redhat + +%prep +%setup -q +%patch -p1 +%patch1 + +%build +make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" + +%install +export DESTDIR=$RPM_BUILD_ROOT +make PREFIX=$DESTDIR LIBDIR=%_libdir install +chmod 755 $DESTDIR%{_libdir}/libutempter.so* +/sbin/ldconfig -n $DESTDIR%{_libdir} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(444,root,root,755) +%doc COPYING +%attr(02755, root, %{utmpGroup}) /usr/sbin/utempter +%attr(555,root,root) %{_libdir}/libutempter.so* +%attr(444,root,root) /usr/include/utempter.h +%attr(444,root,root) %doc /usr/share/man/man8/* + +%changelog -n utempter +* Sat May 27 2006 - schwab@suse.de +- Don't strip binaries. +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Mon Jun 20 2005 - kukuk@suse.de +- Compile with -fpie/-pie +* Thu Aug 05 2004 - okir@suse.de +- Updated to latest upstream version +* Tue Apr 20 2004 - okir@suse.de +- Fix incorrect check for /../ in path names (#39169) +* Fri Jan 16 2004 - thomas@suse.de +- added man-page utempter.8 (EAL3) +* Sun Jan 11 2004 - adrian@suse.de +- add %%run_ldconfig +* Fri Apr 12 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 08 2002 - kukuk@suse.de +- Create libutemtper.so.0 link and include it in RPM [Bug #14672] +* Tue Jan 29 2002 - okir@suse.de +- %%files list uses %%_libdir rather than /usr/lib +* Fri Jan 25 2002 - okir@suse.de +- Initial package.