diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-19 23:38:11 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-19 23:38:11 +0000 |
commit | 66464b8932d94869afb775fec2c8eebc14e72837 (patch) | |
tree | cbb2f7c6014f0d945829c719e835d07252a51b7c /sys-apps/rlocate | |
parent | Version bump. (diff) | |
download | gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.tar.gz gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.tar.bz2 gentoo-2-66464b8932d94869afb775fec2c8eebc14e72837.zip |
Version bump and add init.d script #113126.
(Portage version: 2.0.53)
Diffstat (limited to 'sys-apps/rlocate')
-rw-r--r-- | sys-apps/rlocate/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/rlocate/files/digest-rlocate-0.3.3 | 1 | ||||
-rw-r--r-- | sys-apps/rlocate/files/rlocate-0.3.3-build.patch | 66 | ||||
-rwxr-xr-x | sys-apps/rlocate/files/rlocated.rc | 24 | ||||
-rw-r--r-- | sys-apps/rlocate/rlocate-0.3.3.ebuild | 46 |
5 files changed, 145 insertions, 1 deletions
diff --git a/sys-apps/rlocate/ChangeLog b/sys-apps/rlocate/ChangeLog index 3d47f34548bc..541a48a24f7f 100644 --- a/sys-apps/rlocate/ChangeLog +++ b/sys-apps/rlocate/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/rlocate # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/rlocate/ChangeLog,v 1.6 2005/10/24 01:08:38 malc Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rlocate/ChangeLog,v 1.7 2005/12/19 23:38:11 vapier Exp $ + +*rlocate-0.3.3 (19 Dec 2005) + + 19 Dec 2005; Mike Frysinger <vapier@gentoo.org> + +files/rlocate-0.3.3-build.patch, +files/rlocated.rc, + +rlocate-0.3.3.ebuild: + Version bump and add init.d script #113126. 23 Oct 2005; Malcolm Lashley <malc@gentoo.org> rlocate-0.3.2.ebuild: Added to ~amd64 per bug #109312 diff --git a/sys-apps/rlocate/files/digest-rlocate-0.3.3 b/sys-apps/rlocate/files/digest-rlocate-0.3.3 new file mode 100644 index 000000000000..807c5ef72494 --- /dev/null +++ b/sys-apps/rlocate/files/digest-rlocate-0.3.3 @@ -0,0 +1 @@ +MD5 ec08bea10ff51cb796280a61f9ab4ff2 rlocate-0.3.3.tar.gz 191277 diff --git a/sys-apps/rlocate/files/rlocate-0.3.3-build.patch b/sys-apps/rlocate/files/rlocate-0.3.3-build.patch new file mode 100644 index 000000000000..ac288c160d40 --- /dev/null +++ b/sys-apps/rlocate/files/rlocate-0.3.3-build.patch @@ -0,0 +1,66 @@ +--- Makefile.in.orig 2005-12-19 18:20:09.000000000 -0500 ++++ Makefile.in 2005-12-19 18:22:02.000000000 -0500 +@@ -196,7 +196,7 @@ + RLOCATE_DB = $(RLOCATE_DB_DIR)/$(rlocate).db + RLOCATE_DB_TMP = $(RLOCATE_DB_DIR)/$(rlocate).db.tmp + MODULE_CFG = $(RLOCATE_DB_DIR)/module.cfg +-RLOCATE_GRP = $(rlocate) ++RLOCATE_GRP =locate + RLOCATED_CMD = $(DESTDIR)$(sbindir)/$(rlocated) + AM_CPPFLAGS = -DRLOCATE_DB=\"$(RLOCATE_DB)\" \ + -DRLOCATE_DB_TMP=\"$(RLOCATE_DB_TMP)\" \ +@@ -207,7 +207,7 @@ + + rlocate_SOURCES = pidfile.h pidfile.c main.c link.c misc.c link.h \ + misc.h rlocate.h rlocate.c $(am__append_1) +-SUBDIRS = doc rlocate-daemon rlocate-module rlocate-scripts ++SUBDIRS = doc rlocate-daemon rlocate-scripts + EXTRA_DIST = rlocate.cron debian rlocate-scripts autogen.sh \ + contrib install-cron.sh.in ChangeLog.slocate + +@@ -704,17 +704,15 @@ + + install-exec-hook: + # if FREEBSD +-# -/usr/sbin/pw groupadd rlocate + # else +-# -/usr/sbin/groupadd rlocate + # endif + $(INSTALL) -d $(RLOCATE_DB_DIR) +- chown root:$(rlocate) $(DESTDIR)$(bindir)/$(rlocate) +- chown root:$(rlocate) $(RLOCATE_DB_DIR) ++ chown root:locate $(DESTDIR)$(bindir)/$(rlocate) ++ chown root:locate $(RLOCATE_DB_DIR) + chmod 2755 $(DESTDIR)$(bindir)/$(rlocate) + chmod 0750 $(RLOCATE_DB_DIR) +- -$(LN_S) -f $(DESTDIR)$(bindir)/$(rlocate) $(DESTDIR)$(bindir)/$(updatedb) +- -$(LN_S) -f $(DESTDIR)$(bindir)/$(rlocate) $(DESTDIR)$(bindir)/$(locate) ++ -$(LN_S) -f $(rlocate) $(DESTDIR)$(bindir)/$(updatedb) ++ -$(LN_S) -f $(rlocate) $(DESTDIR)$(bindir)/$(locate) + @CRON_TRUE@ $(mkinstalldirs) $(DESTDIR)/etc/cron.daily/ + @CRON_TRUE@ sed \ + @CRON_TRUE@ -e "s,@UPDATEDB@,$(bindir)/$(updatedb)," \ +--- rlocate-daemon/Makefile.in.orig 2005-12-19 18:20:09.000000000 -0500 ++++ rlocate-daemon/Makefile.in 2005-12-19 18:20:09.000000000 -0500 +@@ -168,7 +168,7 @@ + MODULE_CFG = $(RLOCATE_DB_DIR)/module.cfg + AM_CPPFLAGS = -DRLOCATE_DB=\"$(RLOCATE_DB)\" \ + -DMODULE_CFG=\"$(MODULE_CFG)\" \ +- -DRLOCATE_GRP=\"$(rlocate)\" ++ -DRLOCATE_GRP=\"locate\" + + rlocated_SOURCES = ../misc.h ../misc.c ../pidfile.h ../pidfile.c rlocated.c + AM_CFLAGS = -O2 -Wall +--- rlocate-scripts/Makefile.in.orig 2005-12-19 18:20:09.000000000 -0500 ++++ rlocate-scripts/Makefile.in 2005-12-19 18:20:09.000000000 -0500 +@@ -343,9 +343,7 @@ + rm $(srcdir)/rlocate-checkpoint.temp + + install-exec-hook: +-@FREEBSD_TRUE@ -/usr/sbin/pw groupadd $(rlocate) +-@FREEBSD_FALSE@ -/usr/sbin/groupadd $(rlocate) +- chown root:$(rlocate) $(DESTDIR)$(bindir)/rlocate-checkpoint ++ chown root:locate $(DESTDIR)$(bindir)/rlocate-checkpoint + chmod 2755 $(DESTDIR)$(bindir)/rlocate-checkpoint + + uninstall-hook: diff --git a/sys-apps/rlocate/files/rlocated.rc b/sys-apps/rlocate/files/rlocated.rc new file mode 100755 index 000000000000..4fccbc6ed53f --- /dev/null +++ b/sys-apps/rlocate/files/rlocated.rc @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rlocate/files/rlocated.rc,v 1.1 2005/12/19 23:38:11 vapier Exp $ + +checkconfig() { + if [[ ! -e /proc/rlocate ]] ; then + modprobe rlocate || return 1 + fi + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting rlocated" + rlocated + eend $? +} + +stop() { + ebegin "Stopping rlocated" + start-stop-daemon --stop --quiet --pidfile /var/run/rlocated.pid + eend $? +} diff --git a/sys-apps/rlocate/rlocate-0.3.3.ebuild b/sys-apps/rlocate/rlocate-0.3.3.ebuild new file mode 100644 index 000000000000..fad36c3e809d --- /dev/null +++ b/sys-apps/rlocate/rlocate-0.3.3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/rlocate/rlocate-0.3.3.ebuild,v 1.1 2005/12/19 23:38:11 vapier Exp $ + +inherit eutils linux-mod + +DESCRIPTION="locate implementation that is always up-to-date" +HOMEPAGE="http://rlocate.sourceforge.net/" +SRC_URI="mirror://sourceforge/rlocate/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="!sys-apps/slocate" + +pkg_setup() { + MODULE_NAMES="rlocate(misc:${S}/rlocate-module)" + CONFIG_CHECK="SECURITY" + SECURITY_ERROR="You need to select the \"Enable different security models\" option in the kernel configuration (CONFIG_SECURITY)." + BUILD_TARGETS="all" + linux-mod_pkg_setup + + enewgroup locate +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + econf --enable-sandboxed --with-kernel=${KV_DIR} || die + emake || die + linux-mod_src_compile +} + +src_install() { + make install DESTDIR="${D}" || die + newinitd "${FILESDIR}"/rlocated.rc rlocated + linux-mod_src_install + dodoc AUTHORS ChangeLog* NEWS README +die +} |