diff options
author | Lisa M. Seelye <lisa@gentoo.org> | 2006-05-15 12:45:12 +0000 |
---|---|---|
committer | Lisa M. Seelye <lisa@gentoo.org> | 2006-05-15 12:45:12 +0000 |
commit | fd7d120bdc93f6567f33108e0c5404f3129dbcfe (patch) | |
tree | fb37faab9fe7d264415b77a201ce267e0b7d1371 /app-backup/bobs | |
parent | added ~ia64 as tested on dolphin (diff) | |
download | gentoo-2-fd7d120bdc93f6567f33108e0c5404f3129dbcfe.tar.gz gentoo-2-fd7d120bdc93f6567f33108e0c5404f3129dbcfe.tar.bz2 gentoo-2-fd7d120bdc93f6567f33108e0c5404f3129dbcfe.zip |
Added a check to warn the user if they've not got POSIX support for PHP. Nonfatal check for now. Bug #133198. Also change the patch away from PF as its for the 0.6.2 series and not -r specific.
(Portage version: 2.1_pre10-r5)
Diffstat (limited to 'app-backup/bobs')
-rw-r--r-- | app-backup/bobs/ChangeLog | 8 | ||||
-rw-r--r-- | app-backup/bobs/bobs-0.6.2-r1.ebuild | 79 | ||||
-rw-r--r-- | app-backup/bobs/files/digest-bobs-0.6.2-r1 | 3 |
3 files changed, 89 insertions, 1 deletions
diff --git a/app-backup/bobs/ChangeLog b/app-backup/bobs/ChangeLog index f906e09b7479..8fce3dff17ff 100644 --- a/app-backup/bobs/ChangeLog +++ b/app-backup/bobs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-backup/bobs # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-backup/bobs/ChangeLog,v 1.2 2006/05/13 07:48:58 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-backup/bobs/ChangeLog,v 1.3 2006/05/15 12:45:12 lisa Exp $ + +*bobs-0.6.2-r1 (15 May 2006) + + 15 May 2006; Lisa Seelye <lisa@gentoo.org> +bobs-0.6.2-r1.ebuild: + Added a check to warn the user if theyve not got POSIX support for PHP. + Nonfatal check for now. Bug 13 May 2006; Fabian Groffen <grobian@gentoo.org> bobs-0.6.2.ebuild: Added quotes around variables, added 'die' in front of error messages, fixed diff --git a/app-backup/bobs/bobs-0.6.2-r1.ebuild b/app-backup/bobs/bobs-0.6.2-r1.ebuild new file mode 100644 index 000000000000..975945e4f33e --- /dev/null +++ b/app-backup/bobs/bobs-0.6.2-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-backup/bobs/bobs-0.6.2-r1.ebuild,v 1.1 2006/05/15 12:45:12 lisa Exp $ + +inherit webapp eutils + +DESCRIPTION="The Browsable Online Backup System" +HOMEPAGE="http://bobs.sourceforge.net/" + +SRC_URI="mirror://sourceforge/bobs/${P}.tar.gz" + +LICENSE="GPL-2" + +KEYWORDS="x86" + +IUSE="" + +DEPEND="virtual/php" + +src_unpack() { + unpack ${A} ; cd ${S} + + epatch ${FILESDIR}/bobs-0.6.2.patch + + # Original configure looks for httpd process. Hardwire to apache2... + sed -e "s:\$(ps -C httpd:\$(ps -C apache2:" \ + -i 'configure' || die "Autodetect of Apache user failed" + # Slightly nasty fixup for some problems in the orig Makefile + # Otherwise it doesn't respect that prefix given to "make install" + sed -e "s:\$(myBOBSDATA):\$(DESTDIR)\$(myBOBSDATA):" \ + -i 'Makefile.am' || die "Makefile bodge 1 failed" + sed -e "s:\$(top_srcdir)/mkinstalldirs \$(myWEBDIR):\$(top_srcdir)/mkinstalldirs \$(DESTDIR)\$(myWEBDIR):" \ + -i 'inc/servers/Makefile.am' || die "Makefile bodge 2 failed" + sed -e "s:chown -R \$(myHTTPDUSER) \$(myWEBDIR):chown -R \$(myHTTPDUSER) \$(DESTDIR)\$(myWEBDIR):" \ + -i 'inc/servers/Makefile.am' || die "Makefile bodge failed" + # Modify the webdir to match the webapp format + sed -e "s:myWEBDIR=\$with_webdir/bobs:myWEBDIR=\$with_webdir:" \ + -i 'configure' || die "configure bodge failed" +} + +src_compile() { + ./configure \ + --with-webdir=/usr/share/webapps/${PN}/${PV}/htdocs \ + || die "configure failed" + + emake || die "emake failed" +} + +src_install() { + webapp_src_preinst + if [[ ! `built_with_use virtual/php posix` ]]; then + ewarn "Your PHP does not appear to support POSIX functions. ${P} requires" + ewarn "POSIX functions to be enabled. I will continue to install ${P} but" + ewarn "You need to recompile PHP with POSIX support by recompiling" + ewarn "with the 'posix' USE flag enabled for php. See bug #133198." + ebeep 5 + fi + + make DESTDIR="${D}" install || die + keepdir /var/bobsdata/current/process/session + keepdir /var/bobsdata/current/process/cmd + keepdir /var/bobsdata/current/process/mounts + webapp_configfile "${MY_HTDOCSDIR}"/inc/excludes/default.excludelist + webapp_configfile "${MY_HTDOCSDIR}"/inc/config.php + webapp_configfile "${MY_HTDOCSDIR}"/inc/servers/testserver.share.ini + + dodir /var/bobsdata/incoming + dodir /var/bobsdata/incremental + + # Why doesn't this next line work? + chown -R root:apache "${D}"/var/bobsdata/ + einfo "/var/bobsdata MUST be accessible to the apache user" + + dodoc README INSTALL TODO + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + + webapp_src_install +} diff --git a/app-backup/bobs/files/digest-bobs-0.6.2-r1 b/app-backup/bobs/files/digest-bobs-0.6.2-r1 new file mode 100644 index 000000000000..01ae5f773f17 --- /dev/null +++ b/app-backup/bobs/files/digest-bobs-0.6.2-r1 @@ -0,0 +1,3 @@ +MD5 21a3c755e9dfd0d39660b2c46d903de5 bobs-0.6.2.tar.gz 185605 +RMD160 6bf21f098b28d112eb30d5bdeea23a53d2d87216 bobs-0.6.2.tar.gz 185605 +SHA256 0a4f97be37d1244f88f36b7c738011d1d121ba71b2b0f9e044f929f3172e40c8 bobs-0.6.2.tar.gz 185605 |