diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2004-07-13 05:08:29 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2004-07-13 05:08:29 +0000 |
commit | f8bc8add6fec0ec83d97401e748076173c2722dc (patch) | |
tree | 1f7f5a15b2e12bfc061031faecc994131f5014b5 /sys-apps/utempter | |
parent | ~sparc ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-f8bc8add6fec0ec83d97401e748076173c2722dc.tar.gz gentoo-2-f8bc8add6fec0ec83d97401e748076173c2722dc.tar.bz2 gentoo-2-f8bc8add6fec0ec83d97401e748076173c2722dc.zip |
version bump to the rebuilded src.rpm -- no feature additions or any other changes. Also, refer the SRC_URI to gentoo mirrors instead. Should close bug #51185 by Joe Gallo <jsg8pitt@yahoo.com>
Diffstat (limited to 'sys-apps/utempter')
-rw-r--r-- | sys-apps/utempter/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/utempter/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/utempter/files/digest-utempter-0.5.5.5 | 1 | ||||
-rw-r--r-- | sys-apps/utempter/files/utempter-0.5.5.5-soname-makefile-fix.patch | 23 | ||||
-rw-r--r-- | sys-apps/utempter/utempter-0.5.5.5.ebuild | 58 |
5 files changed, 92 insertions, 3 deletions
diff --git a/sys-apps/utempter/ChangeLog b/sys-apps/utempter/ChangeLog index 9a862c02067f..2dc45d3c3cb7 100644 --- a/sys-apps/utempter/ChangeLog +++ b/sys-apps/utempter/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/utempter # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.20 2004/07/01 21:43:39 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.21 2004/07/13 05:08:29 seemant Exp $ + + 12 Jul 2004; Seemant Kulleen <seemant@gentoo.org> : + version bump to the rebuilded src.rpm -- no feature additions or any other + changes. Also, refer the SRC_URI to gentoo mirrors instead. Should close bug + #51185 by Joe Gallo <jsg8pitt@yahoo.com> 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> utempter-0.5.5.4.ebuild: diff --git a/sys-apps/utempter/Manifest b/sys-apps/utempter/Manifest index 9b82127575e8..b73b55cab50b 100644 --- a/sys-apps/utempter/Manifest +++ b/sys-apps/utempter/Manifest @@ -1,6 +1,8 @@ +MD5 dc3d73bd0115e70f177535c0fe0a0391 utempter-0.5.5.5.ebuild 1185 +MD5 dc3d73bd0115e70f177535c0fe0a0391 utempter-0.5.5.4.ebuild 1185 MD5 340b7531525cca5cc6a2e1b219394a97 ChangeLog 2936 MD5 865db25e01f95e3aa4643b7a95fd1ab0 metadata.xml 183 -MD5 dc3d73bd0115e70f177535c0fe0a0391 utempter-0.5.5.4.ebuild 1185 -MD5 d0e4e8890ac8dd494a927260b110b33a files/digest-utempter-0.5.5.4 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 d3293569252b4437ee84ef41b158aa00 files/digest-utempter-0.5.5.5 68 diff --git a/sys-apps/utempter/files/digest-utempter-0.5.5.5 b/sys-apps/utempter/files/digest-utempter-0.5.5.5 new file mode 100644 index 000000000000..9d04dab1a569 --- /dev/null +++ b/sys-apps/utempter/files/digest-utempter-0.5.5.5 @@ -0,0 +1 @@ +MD5 5b5bcf2a802067ce1a6d258b5c52e1e6 utempter-0.5.5-5.src.rpm 20957 diff --git a/sys-apps/utempter/files/utempter-0.5.5.5-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.5.5-soname-makefile-fix.patch new file mode 100644 index 000000000000..ae50456a987f --- /dev/null +++ b/sys-apps/utempter/files/utempter-0.5.5.5-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.5.ebuild b/sys-apps/utempter/utempter-0.5.5.5.ebuild new file mode 100644 index 000000000000..583388ac03c4 --- /dev/null +++ b/sys-apps/utempter/utempter-0.5.5.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.5.5.ebuild,v 1.1 2004/07/13 05:08:29 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="mirror://gentoo/${MY_P}.src.rpm" + +LICENSE="MIT | LGPL-2" +SLOT="0" +KEYWORDS="x86 ppc sparc ~mips alpha arm hppa amd64 ia64 ~ppc64" +IUSE="" + +RDEPEND="virtual/libc" + +pkg_setup() { + 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 +} |