diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2004-05-03 21:15:48 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2004-05-03 21:15:48 +0000 |
commit | bdda6bc51df38ce54611685f3bf6232397f6ed52 (patch) | |
tree | 4b1d49b1602c76e63ecb65dcc7a73f6b230b8ea4 /sys-apps/utempter | |
parent | Changes to catch common ebuild problems (diff) | |
download | historical-bdda6bc51df38ce54611685f3bf6232397f6ed52.tar.gz historical-bdda6bc51df38ce54611685f3bf6232397f6ed52.tar.bz2 historical-bdda6bc51df38ce54611685f3bf6232397f6ed52.zip |
version bump, for security fix in bug #49536 by gen2daniel <gen2daniel@gmx.net>
Diffstat (limited to 'sys-apps/utempter')
-rw-r--r-- | sys-apps/utempter/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/utempter/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/utempter/files/digest-utempter-0.5.5.4 | 1 | ||||
-rw-r--r-- | sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch | 23 | ||||
-rw-r--r-- | sys-apps/utempter/utempter-0.5.5.4.ebuild | 59 |
5 files changed, 94 insertions, 2 deletions
diff --git a/sys-apps/utempter/ChangeLog b/sys-apps/utempter/ChangeLog index 980f1df3686d..e6ca6bb7b8fe 100644 --- a/sys-apps/utempter/ChangeLog +++ b/sys-apps/utempter/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/utempter # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.10 2004/04/18 21:04:39 lv Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.11 2004/05/03 21:15:48 seemant Exp $ + +*utempter-0.5.5.4 (03 May 2004) + + 03 May 2004; Seemant Kulleen <seemant@gentoo.org> + +files/utempter-0.5.5.4-soname-makefile-fix.patch, +utempter-0.5.5.4.ebuild: + version bump, for security fix in bug #49536 by gen2daniel <gen2daniel@gmx.net> 18 Apr 2004; Travis Tilley <lv@gentoo.org> utempter-0.5.3.2-r1.ebuild: marking stable on amd64 as a needed dependency for xorg-x11. see bug 48261 for diff --git a/sys-apps/utempter/Manifest b/sys-apps/utempter/Manifest index aedf064781df..5a31739520fc 100644 --- a/sys-apps/utempter/Manifest +++ b/sys-apps/utempter/Manifest @@ -1,7 +1,10 @@ MD5 504eb821002b723a4b6f081c19a60fa2 utempter-0.5.3.2-r1.ebuild 1206 +MD5 08e5988b6d76b35df1ebc71ac78d308f utempter-0.5.5.4.ebuild 1211 MD5 b8b6d692aab710cf39e8c167bc7e7116 utempter-0.5.2.ebuild 742 -MD5 d2db3d8e4946cd396f6e56a88d62bf9a ChangeLog 1790 +MD5 545c9289b50320ba10badc317c08e4f4 ChangeLog 2042 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 MD5 33c9a8bf7fd33ad52e6fe296e35543d4 files/digest-utempter-0.5.3.2-r1 68 MD5 b2dc09a11b51ceac5735f963a718fa32 files/utempter-0.5.3.2-soname-makefile-fix.patch 932 +MD5 b2dc09a11b51ceac5735f963a718fa32 files/utempter-0.5.5.4-soname-makefile-fix.patch 932 +MD5 d0e4e8890ac8dd494a927260b110b33a files/digest-utempter-0.5.5.4 68 MD5 a5f81a801233fc1c8464078fa452836a files/digest-utempter-0.5.2 65 diff --git a/sys-apps/utempter/files/digest-utempter-0.5.5.4 b/sys-apps/utempter/files/digest-utempter-0.5.5.4 new file mode 100644 index 000000000000..f821f14a0c3d --- /dev/null +++ b/sys-apps/utempter/files/digest-utempter-0.5.5.4 @@ -0,0 +1 @@ +MD5 4fb1fd3dcc99c4309796478b80755084 utempter-0.5.5-4.src.rpm 21067 diff --git a/sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch new file mode 100644 index 000000000000..ae50456a987f --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch @@ -0,0 +1,23 @@ +diff -urN utempter-0.5.3.orig/Makefile utempter-0.5.3/Makefile +--- utempter-0.5.3.orig/Makefile 2004-04-07 23:02:39.000000000 -0400 ++++ utempter-0.5.3/Makefile 2004-04-07 23:04:33.000000000 -0400 +@@ -5,6 +5,10 @@ + CVSROOT=$(shell cat CVS/Root) + # major number of the .so lib + SOMAJOR = 0 ++# minor number of the .so lib ++SOMINOR = 5 ++# major number of the .so lib ++SOMICRO = 3 + + SHAREDLIB = lib$(NAME).so + SONAME = $(SHAREDLIB).$(SOMAJOR) +@@ -29,6 +33,8 @@ + install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include + install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION) + ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB) ++ ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR).$(SOMINOR) ++ ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR) + + $(SHAREDLIB): utmpintf.os + $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc diff --git a/sys-apps/utempter/utempter-0.5.5.4.ebuild b/sys-apps/utempter/utempter-0.5.5.4.ebuild new file mode 100644 index 000000000000..81716eb5c00f --- /dev/null +++ b/sys-apps/utempter/utempter-0.5.5.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.5.4.ebuild,v 1.1 2004/05/03 21:15:48 seemant Exp $ + +inherit rpm eutils + +MY_P=${P%.*}-${PV##*.} +S=${WORKDIR}/${P%.*} +DESCRIPTION="App that allows non-privileged apps to write utmp (login) info, which needs root access" +HOMEPAGE="http://www.redhat.com/" +SRC_URI="ftp://fr2.rpmfind.net/linux/fedora/core/development/SRPMS/${MY_P}.src.rpm" + +LICENSE="MIT | LGPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm ~amd64 ~ia64 ~ppc64" +IUSE="" + +RDEPEND="virtual/glibc" + +pkg_setup() { + einfo ${S} + enewgroup utmp 406 +} + +src_unpack() { + rpm_src_unpack + cd ${S} + epatch ${FILESDIR}/${P}-soname-makefile-fix.patch +} + +src_compile() { + make RPM_OPT_FLAGS="${CFLAGS}" || die +} + +src_install() { + make \ + RPM_BUILD_ROOT="${D}" \ + LIBDIR=/usr/lib \ + install || die + dobin utmp +} + + +pkg_postinst() { + if [ "${ROOT}" = "/" ] + then + if [ -f /var/log/wtmp ] + then + chown root:utmp /var/log/wtmp + chmod 664 /var/log/wtmp + fi + + if [ -f /var/run/utmp ] + then + chown root:utmp /var/run/utmp + chmod 664 /var/run/utmp + fi + fi +} |