# Typo3 Install ebuild SRC_URI="http://typo3.sunsite.dk/unix-archives/typo3_src/${PN}_src-${PV}-3.tar.bz2 http://typo3.sunsite.dk/zip-archives/testsite-3.5.0.zip" IUSE="" 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" MY_P=${PN}_src-${PV}-3 S=${WORKDIR}/${MY_P} pkg_preinst() { einfo "Generating links for freetype 1.3.1" ln -s /usr/include/freetype/* /usr/include } src_install() { dodir /usr/local/typo3 cd ${WORKDIR}/${PN}_src-${PV}/typo3/install/ cp index.php index.php.orig sed -e 's:die:#die:g' index.php.orig > index.php cd ${WORKDIR} touch testsite-${PV}/typo3temp/.keep touch testsite-${PV}/fileadmin/_temp_/.keep chown --quiet -R apache:apache * ln -s ${PN}_src-${PV} ${PN}_src 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_/ cd typo3/t3lib cd ${WORKDIR} chown --quiet -R apache:apache * cp -rp * ${D}/usr/local/typo3/ } pkg_postinst(){ eerror "NOTE:" eerror "Change the DocumentRoot in /etc/apache{2}/conf/apache{2}.conf" eerror "to /usr/local/typo3/testsite-3.5.0/" eerror "NOTE:" eerror "libgd needs to be compiled with USE=\"+gif\"" eerror "If you don't have +gif in your USE libgd needs a recompile." eerror "NOTE:" eerror "If your mod_php was compiled before libgd it needs to be recompiled." eerror "NOTE:" eerror "start your mysqld and apache and" eerror "place your browser to http://yourhost/ and follow the" eerror "1-2-3 Install-Tool." eerror "After the 1-2-3 Install-Tool you can log in to typo3 backend with:" eerror " admin / password" eerror "" eerror " Have a nice day!" }