# 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[tocEl]=83&cHash=d7a35782a6" einfo "" einfo " Have a nice day!" }