diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2005-06-20 21:49:19 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2005-06-20 21:49:19 +0000 |
commit | 4f2f7b86cd303b806ed73858ce9fb787b5fe0408 (patch) | |
tree | ec26542a8ac7514bcebdc6007572e0e380e0c479 /app-text/scrollkeeper | |
parent | corrected deps (diff) | |
download | historical-4f2f7b86cd303b806ed73858ce9fb787b5fe0408.tar.gz historical-4f2f7b86cd303b806ed73858ce9fb787b5fe0408.tar.bz2 historical-4f2f7b86cd303b806ed73858ce9fb787b5fe0408.zip |
New revision, installs logrotate config file. Fixes bug #89351.
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'app-text/scrollkeeper')
-rw-r--r-- | app-text/scrollkeeper/ChangeLog | 9 | ||||
-rw-r--r-- | app-text/scrollkeeper/Manifest | 5 | ||||
-rw-r--r-- | app-text/scrollkeeper/files/digest-scrollkeeper-0.3.14-r1 | 1 | ||||
-rw-r--r-- | app-text/scrollkeeper/files/scrollkeeper-logrotate | 11 | ||||
-rw-r--r-- | app-text/scrollkeeper/scrollkeeper-0.3.14-r1.ebuild | 95 |
5 files changed, 119 insertions, 2 deletions
diff --git a/app-text/scrollkeeper/ChangeLog b/app-text/scrollkeeper/ChangeLog index 033330d54fae..8853e217ddc5 100644 --- a/app-text/scrollkeeper/ChangeLog +++ b/app-text/scrollkeeper/ChangeLog @@ -1,7 +1,14 @@ # ChangeLog for app-text/scrollkeeper # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/ChangeLog,v 1.47 2005/05/30 03:04:29 leonardop Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/ChangeLog,v 1.48 2005/06/20 21:49:19 leonardop Exp $ +*scrollkeeper-0.3.14-r1 (20 Jun 2005) + + 20 Jun 2005; Leonardo Boshell <leonardop@gentoo.org> + scrollkeeper-0.3.14-r1.ebuild, files/scrollkeeper-logrotate: + New revision, installs a logrotate file for /var/log/scrollkeeper.log. + Thanks to Gad Kadosh for the contribution on bug #89351. + 29 May 2005; Leonardo Boshell <leonardop@gentoo.org> scrollkeeper-0.3.14.ebuild, files/scrollkeeper-0.3.14-gentoo.patch: Modified patch to avoid failure with 'collision-protect' feature; thanks diff --git a/app-text/scrollkeeper/Manifest b/app-text/scrollkeeper/Manifest index cf50933eecfa..b5abed6eeb27 100644 --- a/app-text/scrollkeeper/Manifest +++ b/app-text/scrollkeeper/Manifest @@ -1,6 +1,9 @@ -MD5 af7d9a698d26155759f86b81783415c4 ChangeLog 6794 +MD5 f3bdbbe514427c8afa2fc03c6749f956 ChangeLog 7086 MD5 50da2ea188fbcc09d9f995915da8af85 metadata.xml 183 +MD5 b1502e7402f93deed65d79e01e61861f scrollkeeper-0.3.14-r1.ebuild 2542 MD5 6a5f16d1c02485adc69fffaa6d44bfe1 scrollkeeper-0.3.14.ebuild 2446 MD5 9c87b86ee24f0bd0bca55255f7333a83 files/scrollkeeper-0.3.14-gentoo.patch 1103 +MD5 ca681d7dde4a4d560fa091cf7b7e0d85 files/digest-scrollkeeper-0.3.14-r1 71 MD5 ca681d7dde4a4d560fa091cf7b7e0d85 files/digest-scrollkeeper-0.3.14 71 +MD5 865456e567efe5df6f1069f2d99b46ed files/scrollkeeper-logrotate 265 MD5 a1bbb6129b61f8b8c59a1fcedd8b2b3e files/scrollkeeper-0.3.14-gcc2_fix.patch 692 diff --git a/app-text/scrollkeeper/files/digest-scrollkeeper-0.3.14-r1 b/app-text/scrollkeeper/files/digest-scrollkeeper-0.3.14-r1 new file mode 100644 index 000000000000..4cfbc6123884 --- /dev/null +++ b/app-text/scrollkeeper/files/digest-scrollkeeper-0.3.14-r1 @@ -0,0 +1 @@ +MD5 161eb3f29e30e7b24f84eb93ac696155 scrollkeeper-0.3.14.tar.gz 679513 diff --git a/app-text/scrollkeeper/files/scrollkeeper-logrotate b/app-text/scrollkeeper/files/scrollkeeper-logrotate new file mode 100644 index 000000000000..013366432930 --- /dev/null +++ b/app-text/scrollkeeper/files/scrollkeeper-logrotate @@ -0,0 +1,11 @@ +# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/files/scrollkeeper-logrotate,v 1.1 2005/06/20 21:49:19 leonardop Exp $ +# +# Scrollkeeper logrotate snippet for Gentoo Linux +# contributed by Gad Kadosh +# + +/var/log/scrollkeeper.log { + rotate 1 + size=100k +} + diff --git a/app-text/scrollkeeper/scrollkeeper-0.3.14-r1.ebuild b/app-text/scrollkeeper/scrollkeeper-0.3.14-r1.ebuild new file mode 100644 index 000000000000..8ed62a85c6b9 --- /dev/null +++ b/app-text/scrollkeeper/scrollkeeper-0.3.14-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/scrollkeeper/scrollkeeper-0.3.14-r1.ebuild,v 1.1 2005/06/20 21:49:19 leonardop Exp $ + +inherit libtool eutils + +DESCRIPTION="cataloging system for documentation on open systems" +HOMEPAGE="http://scrollkeeper.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="FDL-1.1 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="nls" + +RDEPEND=">=dev-libs/libxml2-2.4.19 + >=dev-libs/libxslt-1.0.14 + >=sys-libs/zlib-1.1.3 + =app-text/docbook-xml-dtd-4.1.2* + >=app-text/docbook-sgml-utils-0.6.6" +DEPEND="${RDEPEND} + >=dev-util/intltool-0.29 + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch + epatch ${FILESDIR}/${P}-gcc2_fix.patch +} + +src_compile() { + elibtoolize + + local myconf="" + + use nls || { + myconf="${myconf} --disable-nls" + # Not existing can cause ./configure to fail in some cases. + touch ${S}/intl/libintl.h + } + + + econf \ + --localstatedir=/var \ + ${myconf} || die + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + insinto /etc/logrotate.d + newins ${FILESDIR}/scrollkeeper-logrotate scrollkeeper + + dodoc AUTHORS INSTALL TODO COPYING* ChangeLog README NEWS +} + +pkg_preinst() { + if [ -d ${ROOT}/usr/share/scrollkeeper/Templates ] + then + rm -rf ${ROOT}/usr/share/scrollkeeper/Templates + fi +} + +pkg_postinst() { + einfo "Installing catalog..." + ${ROOT}/usr/bin/xmlcatalog --noout --add "public" \ + "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ + "`echo "${ROOT}/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" |sed -e "s://:/:g"`" \ + ${ROOT}/etc/xml/catalog + einfo "Rebuilding Scrollkeeper database..." + scrollkeeper-rebuilddb -q -p ${ROOT}/var/lib/scrollkeeper + einfo "Updating Scrollkeeper database..." + scrollkeeper-update -v &>${T}/foo +} + +pkg_postrm() { + if [ ! -x ${ROOT}/usr/bin/scrollkeeper-config ] + then + # SK is being removed, not upgraded. + # Remove all generated files + einfo "Cleaning up ${ROOT}/var/lib/scrollkeeper..." + rm -rf ${ROOT}/var/lib/scrollkeeper + rm -rf ${ROOT}/var/log/scrollkeeper.log + rm -rf ${ROOT}/var/log/scrollkeeper.log.1 + ${ROOT}/usr/bin/xmlcatalog --noout --del \ + "${ROOT}/usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" \ + ${ROOT}/etc/xml/catalog + + einfo "Scrollkeeper ${PV} unmerged, if you removed the package" + einfo "you might want to clean up /var/lib/scrollkeeper." + fi +} |