Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26508 - new ebuild for typo3-3.5.0 with the testsite package
Summary: new ebuild for typo3-3.5.0 with the testsite package
Status: RESOLVED DUPLICATE of bug 37465
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-08-12 16:27 UTC by Dietrich Heise
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
net-www/typo3/typo3-3.5.0.ebuild (typo3-3.5.0.ebuild,2.34 KB, text/plain)
2003-08-12 16:29 UTC, Dietrich Heise
Details
media-gfx/imagemagick/imagemagick-4.2.9.ebuild (imagemagick-4.2.9.ebuild,2.06 KB, text/plain)
2003-08-12 16:31 UTC, Dietrich Heise
Details
net-www/typo3/typo3-3.5.0.ebuild (typo3-3.5.0.ebuild,4.28 KB, text/plain)
2003-08-13 11:24 UTC, Dietrich Heise
Details
net-www/typo3/typo3-3.5.0.ebuild (typo3-3.5.0.ebuild,5.21 KB, text/plain)
2003-08-14 12:15 UTC, Dietrich Heise
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dietrich Heise 2003-08-12 16:27:25 UTC
This ebuild is very alpha, but it works for me.
Some feedback would be nice :)

Note: typo3 needs imagemagick-4.2.9 to works well!
also you need a pached libgd with gif support!

Reproducible: Always
Steps to Reproduce:
Comment 1 Dietrich Heise 2003-08-12 16:29:34 UTC
Created attachment 15999 [details]
net-www/typo3/typo3-3.5.0.ebuild

Place the ebuild in /usr/portage/net-www/typo3/

To build the digest for the file you need to:
ebuild /usr/portage/net-www/typo3/typo3-3.5.0.ebuild digest
Comment 2 Dietrich Heise 2003-08-12 16:31:24 UTC
Created attachment 16000 [details]
media-gfx/imagemagick/imagemagick-4.2.9.ebuild

you need to create a new digest for the ebuild
Comment 3 Dietrich Heise 2003-08-13 11:24:26 UTC
Created attachment 16057 [details]
net-www/typo3/typo3-3.5.0.ebuild

a new ebuild
Comment 4 Dietrich Heise 2003-08-14 12:08:54 UTC
Comment on attachment 15999 [details]
net-www/typo3/typo3-3.5.0.ebuild

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2

SRC_URI="http://typo3.sunsite.dk/unix-archives/typo3_src/${PN}_src-${PV}-3.tar.
bz2
	testsite? ( http://typo3.sunsite.dk/zip-archives/testsite-${PV}.zip )
	dummy?	  ( http://typo3.sunsite.dk/zip-archives/dummy-${PV}.zip )
	freesite? (
http://www.typo3.cyberservers.net/zip-archives/freesite-${PV}.zip)"

IUSE="testsite dummy"
KEYWORDS="~x86 ~ppc"
DESCRIPTION="TYPO3 is a free Open Source content management system for
enterprise purposes on the web and in intranets."
HOMEPAGE="http://www.typo3.com/  http://typo3.org/"

RDEPEND="~media-libs/freetype-1.3.1-r3 media-libs/jpeg sys-libs/zlib
media-libs/tiff media-libs/libpng media-libs/libgd ~media-gfx/imagemagick-4.2.9
sys-devel/gettext media-libs/ming media-libs/pdflib dev-db/mysql net-www/apache
dev-php/mod_php"
LICENSE="GPL"
SLOT="0"

MY_P=${PN}_src-${PV}-3
S=${WORKDIR}/${MY_P}

pkg_preinst() {
	einfo "Generating links for freetype 1.3.1"
	ln -fs /usr/include/freetype/* /usr/include
}

src_install() {
	dodir /home/httpd/htdocs/typo3
	cd ${WORKDIR}
	ln -s ${PN}_src-${PV} ${PN}_src
	cd ${WORKDIR}/${PN}_src-${PV}/typo3/install/
	cp index.php index.php.orig
	sed -e 's:die:#die:g' index.php.orig > index.php || die "sed command
failed!"

	x=0
	if [ `use testsite` ] ; then
		let x=$x+1;
	fi
	if [ `use dummy` ] ; then
		let x=$x+1;
	fi
	if [ `use freesite` ] ; then
		let x=$x+1;
	fi
	if [ $x -gt 1 ]  ; then
		eerror "Only use one of freesite, dummy or testsite"
		eerror "If you are a new typo3 user try the testsite"
		die
	fi

	if [ `use testsite` ] ; then
		dodir /etc/typo3
		cd ${WORKDIR}
		touch testsite-${PV}/typo3temp/.keep
		touch testsite-${PV}/fileadmin/_temp_/.keep
	cd testsite-${PV}
		rm -rf t3lib media tslib typo3
		ln -s ../${PN}_src/t3lib t3lib
		ln -s ../${PN}_src/tslib tslib
		ln -s tslib/media media
		ln -s ../${PN}_src/typo3 typo3
		chmod 777 typo3temp
		chmod 777 typo3/temp
		chmod 777 typo3conf/
		chmod 777 typo3conf/ext/
		chmod 777 typo3/ext/
		chmod 777 uploads/ 
		chmod 777 uploads/pics/
		chmod 777 uploads/media/
		chmod 777 uploads/tf/
		chmod 777 fileadmin/ 
		chmod ug+w fileadmin/_temp_/ 
	fi
	if [ `use dummy` ] ; then
		cd ${WORKDIR}
		touch dummy-${PV}/typo3temp/.keep
		touch dummy-${PV}/fileadmin/_temp_/.keep
		cd dummy-${PV}
		rm -rf t3lib media tslib typo3
	ln -s ../${PN}_src/t3lib t3lib
	ln -s ../${PN}_src/tslib tslib
	ln -s tslib/media media
	ln -s ../${PN}_src/typo3 typo3
	chmod 777 typo3temp
	chmod 777 typo3/temp
	chmod 777 typo3conf/
	chmod 777 typo3conf/ext/
	chmod 777 typo3/ext/
	chmod 777 uploads/
	chmod 777 uploads/pics/
	chmod 777 uploads/media/
	chmod 777 uploads/tf/
	chmod 777 fileadmin/
		chmod ug+w fileadmin/_temp_/
	fi								        

	if [ `use freesite` ] ; then
		cd ${WORKDIR}
		mv freesite freesite-${PV}
		touch freesite-${PV}/typo3temp/.keep
		touch freesite-${PV}/fileadmin/_temp_/.keep
		cd freesite-${PV}
		rm -rf t3lib media tslib typo3
	ln -s ../${PN}_src/t3lib t3lib
	ln -s ../${PN}_src/tslib tslib
	ln -s tslib/media media
	ln -s ../${PN}_src/typo3 typo3
	chmod 777 typo3temp
	chmod 777 typo3/temp
	chmod 777 typo3conf/
		mkdir typo3conf/ext/
	chmod 777 typo3conf/ext/
	chmod 777 typo3/ext/
	chmod 777 uploads/
	chmod 777 uploads/pics/
	chmod 777 uploads/media/
	chmod 777 uploads/tf/
	chmod 777 fileadmin/
		chmod ug+w fileadmin/_temp_/
	fi								        

	cd ${WORKDIR}
	chown --quiet -R apache:apache *
	find -type l -exec chown root:root {} \;
	find -type d -exec mkdir -p ${D}/home/httpd/htdocs/typo3/{} \;
	find -type d -exec chown apache:apache ${D}/home/httpd/htdocs/typo3/{}
\;
	find -type f -exec cp -p {} ${D}/home/httpd/htdocs/typo3/{} \;
	find -type l -exec cp -r {} ${D}/home/httpd/htdocs/typo3/{} \;
}

pkg_postinst(){
	if [ $x -eq 0 ]  ; then
		einfo "  *** NOTE ***"
		einfo "You should set USE to one of testsite, dummy or
freesite"
		einfo "may be: USE=\"testsite\" emerge typo3"
	fi
	einfo "  *** NOTE ***"
	einfo "libgd needs to be compiled with USE=\"+gif\""
	einfo "If you don't have +gif in your USE libgd needs a recompile."
	einfo "  *** NOTE ***"
	einfo "If your mod_php was compiled before libgd it needs to be
recompiled."
	einfo "  *** NOTE ***"
	einfo "start your mysqld and apache and place your browser to "
	einfo "http://yourhost/typo3/{testsite|dummy|freesite}-3.5.0/ and
follow the"
	einfo "1-2-3 Install-Tool."
	einfo "After the 1-2-3 Install-Tool you can log in to typo3 backend
with:"
	einfo " 		     admin / password"
	einfo "  *** NOTE ***"
	einfo "In the 1-2-3 Install-Tool you should set [im_path] and
[im_path_lzw] to"
	einfo "/usr/local/ImageMagick-4.2.9/ TYPO3 only works well with this
version!"
	einfo "  *** NOTE ***"
	einfo "If you reinstall TYPO3 all your config files will be lost! so
make a"
	einfo "backup from all config files before you upgrade or reinstall and
read:"
	einfo
"http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=265&tx_extrepmgm_pi1[toc
El]=83&cHash=d7a35782a6"
	einfo ""
	einfo " 					       Have a nice
day!"
}
Comment 5 Dietrich Heise 2003-08-14 12:15:31 UTC
Created attachment 16111 [details]
net-www/typo3/typo3-3.5.0.ebuild

Sorry for my last post, seem that my day was very hard ;)
I want to edit the attachment...
This here here is the newest ebuild.
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2003-10-04 06:47:59 UTC
Hi,

The web-apps herd is currently working on delivering some important changes
to the way that web-based applications are installed and managed on Gentoo
Linux.  Until this work is complete, we're not commiting ebuilds for new
web-based packages.

I've marked this bug as 'LATER'.  As soon as we are able to, we will come
back to this bug and help you convert your ebuild to our new approach.

Many thanks for your patience,
Stu
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 01:18:02 UTC
Hi,

Sorry for the delay in replying.  We've been very busy putting a new
framework in place for ebuilds for web-based applications.  This has
now been added to Portage.

We need you to update your ebuild to use the new framework before we
can accept your ebuild.

Please emerge net-www/webapp-config (make sure you get version 1.2 or
later), and update your ebuild to work with this new tool.  You can
use 'man 5 webapp.eclass', 'man 5 webapp-config' and 'man 8 webapp-config'
to learn more about how your ebuild needs to work.

You can find an example ebuild, for phpmyadmin, in

	/usr/share/doc/webapp-config-1.2/
	
If you encounter any difficulties with the new framework (and we
apologise, but there are sure to be a few at first), please let us know
and we'll do our best to help you.

Best regards,
Stu
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 03:33:50 UTC
*** Bug 37465 has been marked as a duplicate of this bug. ***
Comment 9 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 04:17:13 UTC

*** This bug has been marked as a duplicate of 37465 ***