Promoted pypo to top level because it isnt 3rd party.

Removed the portage stuff since it is way outdated.
This commit is contained in:
Paul Baranowski 2010-12-02 15:30:40 -05:00
parent 4300fd8d36
commit 51a1fde9ee
82 changed files with 0 additions and 6013 deletions

View file

@ -1,425 +0,0 @@
#-------------------------------------------------------------------------------
# Copyright (c) 2010 Sourcefabric O.P.S.
#
# This file is part of the Campcaster project.
# http://campcaster.sourcefabric.org/
# To report bugs, send an e-mail to bugs@campware.org
#
# Campcaster is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Campcaster is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Campcaster; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# General command definitions
#-------------------------------------------------------------------------------
MKDIR = mkdir -p
RM = rm -f
RMDIR = rm -rf
DOXYGEN = doxygen
DOXYTAG = doxytag
XSLTPROC = xsltproc
ECHO = @echo
FLAWFINDER = flawfinder
CP = cp -f
#-------------------------------------------------------------------------------
# Basic directory and file definitions
#-------------------------------------------------------------------------------
BASE_DIR = .
BIN_DIR = ${BASE_DIR}/bin
DOC_DIR = ${BASE_DIR}/doc
DOXYGEN_DIR = ${DOC_DIR}/doxygen
COVERAGE_DIR = ${DOC_DIR}/coverage
ETC_DIR = ${BASE_DIR}/etc
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
prefix = @prefix@
PACKAGE_VERSION = @PACKAGE_VERSION@
USR_DIR = ${prefix}
USR_BIN_DIR = ${USR_DIR}/bin
USR_DOC_DIR = ${USR_DIR}/doc
USR_ETC_DIR = ${USR_DIR}/etc
USR_LIB_DIR = ${USR_DIR}/lib
USR_VAR_DIR = ${USR_DIR}/var
HOSTNAME = @HOSTNAME@
APACHE_GROUP = @APACHE_GROUP@
WWW_DOCROOT = @WWW_DOCROOT@
WWW_PORT = @WWW_PORT@
SCHEDULER_PORT = @SCHEDULER_PORT@
DB_SERVER = @DB_SERVER@
DATABASE = @DATABASE@
DB_USER = @DB_USER@
DB_PASSWORD = @DB_PASSWORD@
CREATE_LS_DATABASE = @CREATE_LS_DATABASE@
INIT_LS_DATABASE = @INIT_LS_DATABASE@
CREATE_ODBC_DATA_SOURCE = @CREATE_ODBC_DATA_SOURCE@
CONFIGURE_APACHE = @CONFIGURE_APACHE@
STATION_AUDIO_OUT = "@STATION_AUDIO_OUT@"
STUDIO_AUDIO_OUT = "@STUDIO_AUDIO_OUT@"
STUDIO_AUDIO_CUE = "@STUDIO_AUDIO_CUE@"
#export LD_LIBRARY_PATH:=${prefix}/lib:${LD_LIBRARY_PATH}
#export PKG_CONFIG_PATH:=${prefix}/lib/pkgconfig:${PKG_CONFIG_PATH}
DEBUG = @DEBUG@
#DOXYGEN_CONFIG = ${ETC_DIR}/doxygen.config
#XMLRPC-DOXYGEN_CONFIG = ${ETC_DIR}/xmlrpc-doxygen.config
#
#XMLRPCXX_DOC_DIR = ${BASE_DIR}/usr/share/doc/xmlrpc++
#EXTERNAL_DOC_PAGES = ${XMLRPCXX_DOC_DIR}/XmlRpcServerMethod_8h-source.html \
# ${XMLRPCXX_DOC_DIR}/classXmlRpc_1_1XmlRpcServerMethod.html \
# ${XMLRPCXX_DOC_DIR}/classXmlRpc_1_1XmlRpcServerMethod-members.html
#TAGFILE = ${DOXYGEN_DIR}/xmlrpc++.tag
#
#TESTRESULTS_XSLT = ${ETC_DIR}/testResultsToHtml.xsl
#TESTRESULTS_IN = ${ETC_DIR}/testResults.xml
#TESTRESULTS_FILE = ${DOC_DIR}/testResults.html
#
#FLAWFINDER_FILE = ${DOC_DIR}/flawfinderReport.html
#
TOOLS_DIR = ${SRC_DIR}/tools
#LIBODBCXX_DIR = ${TOOLS_DIR}/libodbc++
#LIBODBCXX_VERSION = libodbc++-0.2.5
#XMLRPCXX_DIR = ${TOOLS_DIR}/xmlrpc++
#XMLRPCXX_VERSION = xmlrpc++-20040713
#TAGLIB_DIR = ${TOOLS_DIR}/taglib
#TAGLIB_VERSION = taglib-1.5
PEAR_DIR = ${TOOLS_DIR}/pear
MODULES_DIR = ${SRC_DIR}/modules
#CORE_DIR = ${MODULES_DIR}/core
#AUTHENTICATION_DIR = ${MODULES_DIR}/authentication
#DB_DIR = ${MODULES_DIR}/db
#STORAGE_CLIENT_DIR = ${MODULES_DIR}/storageClient
#PLAYLIST_EXECUTOR_DIR = ${MODULES_DIR}/playlistExecutor
#EVENT_SCHEDULER_DIR = ${MODULES_DIR}/eventScheduler
#SCHEDULER_CLIENT_DIR = ${MODULES_DIR}/schedulerClient
#WIDGETS_DIR = ${MODULES_DIR}/widgets
#ALIB_DIR = ${MODULES_DIR}/alib
GETID3_DIR = ${MODULES_DIR}/getid3
HTML_UI_DIR = ${MODULES_DIR}/htmlUI
STORAGE_ADMIN_DIR = ${MODULES_DIR}/storageAdmin
STORAGE_SERVER_DIR = ${MODULES_DIR}/storageServer
#PRODUCTS_DIR = ${SRC_DIR}/products
#SCHEDULER_DIR = ${PRODUCTS_DIR}/scheduler
#GLIVESUPPORT_DIR = ${PRODUCTS_DIR}/gLiveSupport
#SCHEDULER_EXE = ${SCHEDULER_DIR}/tmp/campcaster-scheduler
#GLIVESUPPORT_EXE = ${GLIVESUPPORT_DIR}/tmp/campcaster-studio
#-------------------------------------------------------------------------------
# Targets
#-------------------------------------------------------------------------------
.PHONY: all clean depclean distclean
.PHONY: setup tools_setup modules_setup
.PHONY: start stop status
all: setup
help:
${ECHO} "Campcaster project main Makefile"
${ECHO} "http://campcaster.sourcefabric.org/"
${ECHO} "Copyright (c) 2010 Sourcefabric O.P.S. under the GNU GPL"
${ECHO} ""
${ECHO} "Useful targets for this makefile:"
${ECHO} " all - set up and compile everthing"
${ECHO} " install - install everything"
# ${ECHO} " doc - build autogenerated documentation"
${ECHO} " clean - clean all modules"
${ECHO} " check - check all modules"
${ECHO} ""
${ECHO} "Some less frequently used targets:"
${ECHO} " setup - set up the development environment"
# ${ECHO} " doxygen - build autogenerated doxygen documentation only"
# ${ECHO} " compile - compile all modules"
# ${ECHO} " recompile - recompile all modules"
#doc: doxygen testresults flawfinder
#
#doxygen:
# ${DOXYGEN} ${DOXYGEN_CONFIG}
# ${DOXYGEN} ${XMLRPC-DOXYGEN_CONFIG}
#
#testresults:
# ${XSLTPROC} ${TESTRESULT_XSLT} ${TESTRESULTS_IN} > ${TESTRESULTS_FILE}
#
#flawfinder:
# ${FLAWFINDER} -c --immediate --html \
# ${CORE_DIR}/include ${CORE_DIR}/src \
# ${AUTHENTICATION_DIR}/include ${AUTHENTICATION_DIR}/src \
# ${DB_DIR}/include ${DB_DIR}/src \
# ${STORAGE_CLIENT_DIR}/include ${STORAGE_CLIENT_DIR}/src \
# ${PLAYLIST_EXECUTOR_DIR}/include \
# ${PLAYLIST_EXECUTOR_DIR}/src \
# ${EVENT_SCHEDULER_DIR}/include ${EVENT_SCHEDULER_DIR}/src \
# ${SCHEDULER_CLIENT_DIR}/include ${SCHEDULER_CLIENT_DIR}/src \
# ${WIDGETS_DIR}/include ${WIDGETS_DIR}/src \
# ${SCHEDULER_DIR}/src > ${FLAWFINDER_FILE} \
# ${GLIVESUPPORT_DIR}/src > ${FLAWFINDER_FILE} \
clean:
# ${RMDIR} ${DOXYGEN_DIR}/html
# ${RMDIR} ${COVERAGE_DIR}/*
# ${RM} ${TMP_DIR}/*.stamp
# ${RM} ${TMP_DIR}/ac* ${TMP_DIR}/config* ${TMP_DIR}/install-sh
# ${RMDIR} ${TMP_DIR}/auto*
#
setup: ${TMP_DIR}/setup.stamp
${TMP_DIR}/setup.stamp: tools_setup modules_setup
touch ${TMP_DIR}/setup.stamp
recompile: modprod_distclean modules_setup products_setup
tools_setup: ${TMP_DIR}/tools_setup.stamp
${TMP_DIR}/tools_setup.stamp:
# cd ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} && ./configure --prefix=${prefix}
# ${MAKE} -C ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} install
#
# cd ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} && ./configure --prefix=${prefix}
# ${MAKE} -C ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} install
#
# cd ${TAGLIB_DIR}/${TAGLIB_VERSION} && ./configure --prefix=${prefix}
# ${MAKE} -C ${TAGLIB_DIR}/${TAGLIB_VERSION} install
#
cd ${PEAR_DIR} && ./configure --prefix=${prefix}
${MAKE} -C ${PEAR_DIR} install
touch ${TMP_DIR}/tools_setup.stamp
tools_distclean:
# -${MAKE} -C ${LIBODBCXX_DIR}/${LIBODBCXX_VERSION} distclean
# -${MAKE} -C ${XMLRPCXX_DIR}/${XMLRPCXX_VERSION} distclean
# -${MAKE} -C ${TAGLIB_DIR}/${TAGLIB_VERSION} distclean
${RM} ${TMP_DIR}/tools_setup.stamp
#doxytag_setup: ${TMP_DIR}/doxytag_setup.stamp
#${TMP_DIR}/doxytag_setup.stamp:
# ${DOXYTAG} -t ${TAGFILE} ${EXTERNAL_DOC_PAGES}
# touch ${TMP_DIR}/doxytag_setup.stamp
modules_setup: ${TMP_DIR}/modules_setup.stamp
${TMP_DIR}/modules_setup.stamp:
# cd ${ALIB_DIR} && ./configure --prefix=${prefix} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
cd ${GETID3_DIR} && ./configure --prefix=${prefix} \
PACKAGE_VERSION=${PACKAGE_VERSION}
cd ${HTML_UI_DIR} && ./configure --prefix=${prefix} \
--with-apache-group=${APACHE_GROUP} \
--with-www-docroot=${WWW_DOCROOT} \
--with-configure-apache=${CONFIGURE_APACHE} \
--with-storage-server=${prefix}/var/Campcaster/storageServer \
PACKAGE_VERSION=${PACKAGE_VERSION}
cd ${STORAGE_ADMIN_DIR} && ./configure --prefix=${prefix} \
--with-storage-server=${prefix}/var/Campcaster/storageServer \
--with-phppart-dir=${prefix}/var/Campcaster/storageAdmin \
PACKAGE_VERSION=${PACKAGE_VERSION}
cd ${STORAGE_SERVER_DIR} && \
./configure --prefix=${prefix} \
--with-apache-group=${APACHE_GROUP} \
--with-hostname=${HOSTNAME} \
--with-www-docroot=${WWW_DOCROOT} \
--with-www-port=${WWW_PORT} \
--with-scheduler-port=${SCHEDULER_PORT} \
--with-database-server=${DB_SERVER} \
--with-database=${DATABASE} \
--with-database-user=${DB_USER} \
--with-database-password=${DB_PASSWORD} \
--with-init-database=${INIT_LS_DATABASE} \
PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${CORE_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${AUTHENTICATION_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${DB_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${STORAGE_CLIENT_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${PLAYLIST_EXECUTOR_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${EVENT_SCHEDULER_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${SCHEDULER_CLIENT_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${WIDGETS_DIR} && \
# ./configure --prefix=${prefix} --enable-debug=${DEBUG} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
touch ${TMP_DIR}/modules_setup.stamp
#products_setup: ${TMP_DIR}/products_setup.stamp
#${TMP_DIR}/products_setup.stamp:
# cd ${SCHEDULER_DIR} && \
# ./configure --prefix=${prefix} \
# --enable-debug=${DEBUG} \
# --with-hostname=${HOSTNAME} \
# --with-www-port=${WWW_PORT} \
# --with-scheduler-port=${SCHEDULER_PORT} \
# --with-database-server=${DB_SERVER} \
# --with-database=${DATABASE} \
# --with-database-user=${DB_USER} \
# --with-database-password=${DB_PASSWORD} \
# --with-audio-out=${STATION_AUDIO_OUT} \
# --with-create-odbc-data-source=${CREATE_ODBC_DATA_SOURCE} \
# --with-init-database=${INIT_LS_DATABASE} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# cd ${GLIVESUPPORT_DIR} && \
# ./configure --prefix=${prefix} \
# --enable-debug=${DEBUG} \
# --with-hostname=${HOSTNAME} \
# --with-www-port=${WWW_PORT} \
# --with-scheduler-port=${SCHEDULER_PORT} \
# --with-database-server=${DB_SERVER} \
# --with-database=${DATABASE} \
# --with-database-user=${DB_USER} \
# --with-database-password=${DB_PASSWORD} \
# --with-audio-out=${STUDIO_AUDIO_OUT} \
# --with-audio-cue=${STUDIO_AUDIO_CUE} \
# PACKAGE_VERSION=${PACKAGE_VERSION}
# touch ${TMP_DIR}/products_setup.stamp
distclean: clean tools_distclean modprod_distclean
modprod_distclean:
# ${MAKE} -C ${CORE_DIR} distclean
# ${MAKE} -C ${AUTHENTICATION_DIR} distclean
# ${MAKE} -C ${DB_DIR} distclean
# ${MAKE} -C ${STORAGE_CLIENT_DIR} distclean
# ${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} distclean
# ${MAKE} -C ${EVENT_SCHEDULER_DIR} distclean
# ${MAKE} -C ${SCHEDULER_CLIENT_DIR} distclean
# ${MAKE} -C ${WIDGETS_DIR} distclean
# ${MAKE} -C ${SCHEDULER_DIR} distclean
# ${MAKE} -C ${GLIVESUPPORT_DIR} distclean
# ${RM} ${TMP_DIR}/compile.stamp
${RM} ${TMP_DIR}/modules_setup.stamp
# ${RM} ${TMP_DIR}/products_setup.stamp
depclean:
# ${MAKE} -C ${CORE_DIR} depclean
# ${MAKE} -C ${AUTHENTICATION_DIR} depclean
# ${MAKE} -C ${DB_DIR} depclean
# ${MAKE} -C ${STORAGE_CLIENT_DIR} depclean
# ${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} depclean
# ${MAKE} -C ${EVENT_SCHEDULER_DIR} depclean
# ${MAKE} -C ${SCHEDULER_CLIENT_DIR} depclean
# ${MAKE} -C ${WIDGETS_DIR} depclean
# ${MAKE} -C ${SCHEDULER_DIR} depclean
# ${MAKE} -C ${GLIVESUPPORT_DIR} depclean
-${MAKE} -C ${STORAGE_SERVER_DIR} depclean
#compile: ${TMP_DIR}/compile.stamp
#${TMP_DIR}/compile.stamp:
# ${MAKE} -C ${CORE_DIR} all
# ${MAKE} -C ${AUTHENTICATION_DIR} all
# ${MAKE} -C ${DB_DIR} all
# ${MAKE} -C ${STORAGE_CLIENT_DIR} all
# ${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} all
# ${MAKE} -C ${EVENT_SCHEDULER_DIR} all
# ${MAKE} -C ${SCHEDULER_CLIENT_DIR} all
# ${MAKE} -C ${WIDGETS_DIR} all
# ${MAKE} -C ${SCHEDULER_DIR} all
# ${MAKE} -C ${GLIVESUPPORT_DIR} all
# touch ${TMP_DIR}/compile.stamp
#check:
# -${MAKE} -C ${CORE_DIR} check
# -${MAKE} -C ${AUTHENTICATION_DIR} check
# -${MAKE} -C ${DB_DIR} check
# -${MAKE} -C ${STORAGE_CLIENT_DIR} check
# -${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} check # hangs on edge.campware.org
# -${MAKE} -C ${EVENT_SCHEDULER_DIR} check
# -${MAKE} -C ${SCHEDULER_CLIENT_DIR} check
# -${MAKE} -C ${WIDGETS_DIR} check # no tests defined
# -${MAKE} -C ${SCHEDULER_DIR} check # has database issues
# -${MAKE} -C ${GLIVESUPPORT_DIR} check # has database issues
# -${MAKE} -C ${STORAGE_SERVER_DIR} check # has database issues
start: ${SCHEDULER_EXE}
${MAKE} -C ${SCHEDULER_DIR} start
stop: ${SCHEDULER_EXE}
${MAKE} -C ${SCHEDULER_DIR} stop
status: ${SCHEDULER_EXE}
${MAKE} -C ${SCHEDULER_DIR} status
#run: ${GLIVESUPPORT_EXE}
# ${MAKE} -C ${GLIVESUPPORT_DIR} run
#-------------------------------------------------------------------------------
# Installation related targets
#-------------------------------------------------------------------------------
.PHONY: install create_database setup_install_dirs
.PHONY: install_modules
install: setup setup_install_dirs create_database install_modules
${MKDIR} ${USR_ETC_DIR}/apache
${CP} ${ETC_DIR}/apache/*.conf ${USR_ETC_DIR}/apache
${MKDIR} ${USR_BIN_DIR}
${CP} ${BIN_DIR}/postInstallStation.sh ${USR_BIN_DIR}
# ${CP} ${ETC_DIR}/campcaster-scheduler ${USR_ETC_DIR}
${CP} ${ETC_DIR}/pg_hba.conf ${USR_ETC_DIR}
create_database:
ifeq (@CREATE_LS_DATABASE@,yes)
${SCHEDULER_DIR}/bin/createDatabase.sh --database=${DATABASE} \
--dbserver=${DB_SERVER} \
--dbuser=${DB_USER} \
--dbpassword=${DB_PASSWORD}
endif
setup_install_dirs:
${MKDIR} ${USR_BIN_DIR}
# ${MKDIR} ${USR_DOC_DIR}
${MKDIR} ${USR_ETC_DIR}
${MKDIR} ${USR_LIB_DIR}
${MKDIR} ${USR_VAR_DIR}
install_modules:
# ${MAKE} -C ${ALIB_DIR} install
${MAKE} -C ${GETID3_DIR} install
${MAKE} -C ${HTML_UI_DIR} install
${MAKE} -C ${STORAGE_ADMIN_DIR} install
${MAKE} -C ${STORAGE_SERVER_DIR} install
# ${MAKE} -C ${CORE_DIR} install
# ${MAKE} -C ${AUTHENTICATION_DIR} install
# ${MAKE} -C ${DB_DIR} install
# ${MAKE} -C ${STORAGE_CLIENT_DIR} install
# ${MAKE} -C ${PLAYLIST_EXECUTOR_DIR} install
# ${MAKE} -C ${EVENT_SCHEDULER_DIR} install
# ${MAKE} -C ${SCHEDULER_CLIENT_DIR} install
# ${MAKE} -C ${WIDGETS_DIR} install
#install_products:
# ${MAKE} -C ${SCHEDULER_DIR} install
# ${MAKE} -C ${GLIVESUPPORT_DIR} install

View file

@ -1,371 +0,0 @@
dnl-----------------------------------------------------------------------------
dnl Copyright (c) 2010 Sourcefabric O.P.S.
dnl
dnl This file is part of the Campcaster project.
dnl http://campcaster.sourcefabric.org/
dnl
dnl Campcaster is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl Campcaster is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with Campcaster; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl
dnl-----------------------------------------------------------------------------
dnl-----------------------------------------------------------------------------
dnl NOTE: Run all configure related scripts from the tmp directory of the
dnl project.
dnl This is due to the fact that configure spreads a lot of trash around,
dnl like atom4te cache directories, config.* files, etc. into the directory
dnl it is being run from. We clearly don't want these in our base directory.
dnl-----------------------------------------------------------------------------
AC_INIT(Campcaster, 1.4.0, support@sourcefabric.org)
AC_PREREQ(2.59)
AC_COPYRIGHT([Copyright (c) 2010 Sourcefabric O.P.S. under the GNU GPL])
AC_REVISION($Revision$)
dnl AC_CONFIG_SRCDIR(../src/products/scheduler/src/main.cxx)
dnl AC_PROG_CC()
dnl AC_PROG_CXX()
dnl-----------------------------------------------------------------------------
dnl specify whether debug info should be compiled into the executable
dnl-----------------------------------------------------------------------------
dnl AC_SUBST(DEBUG)
dnl AC_ARG_ENABLE([debug],
dnl AC_HELP_STRING([--enable-debug], [compile with debug info (no)]),
dnl [DEBUG=${enable_debug}],
dnl [DEBUG=no])
dnl AC_MSG_RESULT([compiling with debug info: ${DEBUG}])
dnl-----------------------------------------------------------------------------
dnl specify whether the Campcaster database and user should be created
dnl-----------------------------------------------------------------------------
AC_SUBST(CREATE_LS_DATABASE)
AC_ARG_WITH([create-database],
AC_HELP_STRING([--with-create-database],
[specify whether the Campcaster database and database user
should be created (no)]),
[CREATE_LS_DATABASE=${withval}],
[CREATE_LS_DATABASE=no])
AC_MSG_RESULT([creating Campcaster database: ${CREATE_LS_DATABASE}])
dnl-----------------------------------------------------------------------------
dnl specify whether the ODBC data source should be created
dnl-----------------------------------------------------------------------------
AC_SUBST(CREATE_ODBC_DATA_SOURCE)
AC_ARG_WITH([create-odbc-data-source],
AC_HELP_STRING([--with-create-odbc-data-source],
[specify whether the ODBC data source for Campcaster should be
created (no)]),
[CREATE_ODBC_DATA_SOURCE=${withval}],
[CREATE_ODBC_DATA_SOURCE=no])
AC_MSG_RESULT([creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}])
dnl-----------------------------------------------------------------------------
dnl specify whether the Campcaster database tables should be initialized
dnl-----------------------------------------------------------------------------
AC_SUBST(INIT_LS_DATABASE)
AC_ARG_WITH([init-database],
AC_HELP_STRING([--with-init-database],
[specify whether the Campcaster database tables should be
initialized (no)]),
[INIT_LS_DATABASE=${withval}],
[INIT_LS_DATABASE=no])
AC_MSG_RESULT([initializing Campcaster database: ${INIT_LS_DATABASE}])
dnl-----------------------------------------------------------------------------
dnl specify whether apache should be configured through it's conf.d directory
dnl-----------------------------------------------------------------------------
AC_SUBST(CONFIGURE_APACHE)
AC_ARG_WITH([configure-apache],
AC_HELP_STRING([--with-configure-apache],
[specify whether apache should be configured for Campcaster
through its conf.d directory (no)]),
[CONFIGURE_APACHE=${withval}],
[CONFIGURE_APACHE=no])
AC_MSG_RESULT([configure apache: ${CONFIGURE_APACHE}])
dnl-----------------------------------------------------------------------------
dnl specify the FQDN
dnl-----------------------------------------------------------------------------
AC_SUBST(HOSTNAME)
AC_ARG_WITH([hostname],
AC_HELP_STRING([--with-hostname],
[use the specified hostname (guess)]),
[HOSTNAME=${withval}], [HOSTNAME=`hostname -f`])
AC_MSG_RESULT([using hostname: ${HOSTNAME}])
dnl-----------------------------------------------------------------------------
dnl specify group in which apache is running
dnl-----------------------------------------------------------------------------
AC_SUBST(APACHE_GROUP)
AC_ARG_WITH([apache-group],
AC_HELP_STRING([--with-apache-group],
[use apache running in the specified group (apache)]),
[APACHE_GROUP=${withval}], [APACHE_GROUP=apache])
AC_MSG_RESULT([using apache group: ${APACHE_GROUP}])
dnl-----------------------------------------------------------------------------
dnl specify web document root
dnl-----------------------------------------------------------------------------
AC_SUBST(WWW_DOCROOT)
AC_ARG_WITH([www-docroot],
AC_HELP_STRING([--with-www-docroot],
[deploy Campcaster under the specified docroot (/var/www)]),
[WWW_DOCROOT=${withval}], [WWW_DOCROOT=/var/www])
AC_MSG_RESULT([using www document root: ${WWW_DOCROOT}])
dnl-----------------------------------------------------------------------------
dnl specify the web server port
dnl-----------------------------------------------------------------------------
AC_SUBST(WWW_PORT)
AC_ARG_WITH([www-port],
AC_HELP_STRING([--with-www-port],
[use the specified www port (80)]),
[WWW_PORT=${withval}], [WWW_PORT=80])
AC_MSG_RESULT([using www port: ${WWW_PORT}])
dnl-----------------------------------------------------------------------------
dnl specify the scheduler server port
dnl-----------------------------------------------------------------------------
AC_SUBST(SCHEDULER_PORT)
AC_ARG_WITH([scheduler-port],
AC_HELP_STRING([--with-scheduler-port],
[use the specified scheduler port (3344)]),
[SCHEDULER_PORT=${withval}], [SCHEDULER_PORT=3344])
AC_MSG_RESULT([using scheduler port: ${SCHEDULER_PORT}])
dnl-----------------------------------------------------------------------------
dnl specify the database server name
dnl-----------------------------------------------------------------------------
AC_SUBST(DB_SERVER)
AC_ARG_WITH([database-server],
AC_HELP_STRING([--with-database-server],
[use the specified database server (localhost)]),
[DB_SERVER=${withval}], [DB_SERVER=localhost])
AC_MSG_RESULT([using database server: ${DB_SERVER}])
dnl-----------------------------------------------------------------------------
dnl get the name of the Campcaster database
dnl-----------------------------------------------------------------------------
AC_SUBST(DATABASE)
AC_ARG_WITH([database],
AC_HELP_STRING([--with-database],
[the name of the postgresql database to use (Campcaster)]),
[DATABASE=${withval}], [DATABASE=Campcaster])
AC_MSG_RESULT([using database: ${DATABASE}])
dnl-----------------------------------------------------------------------------
dnl specify the database server user
dnl-----------------------------------------------------------------------------
AC_SUBST(DB_USER)
AC_ARG_WITH([database-user],
AC_HELP_STRING([--with-database-user],
[use the specified database server user (campcaster)]),
[DB_USER=${withval}], [DB_USER=campcaster])
AC_MSG_RESULT([using database server user: ${DB_USER}])
dnl-----------------------------------------------------------------------------
dnl specify the database server user password
dnl-----------------------------------------------------------------------------
AC_SUBST(DB_PASSWORD)
AC_ARG_WITH([database-password],
AC_HELP_STRING([--with-database-password],
[use the specified database server user password (campcaster)]),
[DB_PASSWORD=${withval}], [DB_PASSWORD=campcaster])
AC_MSG_RESULT([using database server user password: ${DB_PASSWORD}])
dnl-----------------------------------------------------------------------------
dnl specify the audio output device for the scheduler
dnl-----------------------------------------------------------------------------
AC_SUBST(STATION_AUDIO_OUT)
AC_ARG_WITH([station-audio-out],
AC_HELP_STRING([--with-station-audio-out],
[use the specified audio output device for the station,
either ALSA or OSS (default)]),
[STATION_AUDIO_OUT=${withval}], [STATION_AUDIO_OUT=default])
AC_MSG_RESULT([using audio output device for the station: ${STATION_AUDIO_OUT}])
dnl-----------------------------------------------------------------------------
dnl specify the audio output device for the studio
dnl-----------------------------------------------------------------------------
dnl AC_SUBST(STUDIO_AUDIO_OUT)
dnl AC_ARG_WITH([studio-audio-out],
dnl AC_HELP_STRING([--with-studio-audio-out],
dnl [use the specified audio output device for the studio,
dnl either ALSA or OSS (default)]),
dnl [STUDIO_AUDIO_OUT=${withval}], [STUDIO_AUDIO_OUT=default])
dnl AC_MSG_RESULT([using audio output device for studio: ${STUDIO_AUDIO_OUT}])
dnl-----------------------------------------------------------------------------
dnl specify the audio output device for the studio for cueing
dnl-----------------------------------------------------------------------------
dnl AC_SUBST(STUDIO_AUDIO_CUE)
dnl AC_ARG_WITH([studio-audio-cue],
dnl AC_HELP_STRING([--with-studio-audio-cue],
dnl [use the specified audio cue device for the studio,
dnl either ALSA or OSS (default)]),
dnl [STUDIO_AUDIO_CUE=${withval}], [STUDIO_AUDIO_CUE=default])
dnl AC_MSG_RESULT([using audio cue device for studio: ${STUDIO_AUDIO_CUE}])
dnl-----------------------------------------------------------------------------
dnl set up the individual components
dnl
dnl unfortunately for both AC_CONFIG_COMMANDS and AC_CONFIG_SUBDIRS, the
dnl directories have to be literally included, so we can't use any
dnl fancy variables to avoid duplication of hard-coded values :(
dnl-----------------------------------------------------------------------------
dnl set up the alib module
dnl AC_CONFIG_COMMANDS([../src/modules/alib/tmp/configure],
dnl [../src/modules/alib/bin/autogen.sh])
dnl set up the getid3 module
AC_CONFIG_COMMANDS([../src/modules/getid3/tmp/configure],
[../src/modules/getid3/bin/autogen.sh])
dnl set up the htmlUI module
AC_CONFIG_COMMANDS([../src/modules/htmlUI/tmp/configure],
[../src/modules/htmlUI/bin/autogen.sh])
dnl set up the storage admin module
AC_CONFIG_COMMANDS([../src/modules/storageAdmin/tmp/configure],
[../src/modules/storageAdmin/bin/autogen.sh])
dnl set up the storage server module
AC_CONFIG_COMMANDS([../src/modules/storageServer/tmp/configure],
[../src/modules/storageServer/bin/autogen.sh])
dnl set up the core module
dnl AC_CONFIG_COMMANDS([../src/modules/core/tmp/configure],
dnl [../src/modules/core/bin/autogen.sh])
dnl set up the authentication module
dnl AC_CONFIG_COMMANDS([../src/modules/authentication/tmp/configure],
dnl [../src/modules/authentication/bin/autogen.sh])
dnl set up the db module
dnl AC_CONFIG_COMMANDS([../src/modules/db/tmp/configure],
dnl [../src/modules/db/bin/autogen.sh])
dnl set up the storage client module
dnl AC_CONFIG_COMMANDS([../src/modules/storageClient/tmp/configure],
dnl [../src/modules/storageClient/bin/autogen.sh])
dnl set up the playlist executor module
dnl AC_CONFIG_COMMANDS([../src/modules/playlistExecutor/tmp/configure],
dnl [../src/modules/playlistExecutor/bin/autogen.sh])
dnl set up the event scheduler module
dnl AC_CONFIG_COMMANDS([../src/modules/eventScheduler/tmp/configure],
dnl [../src/modules/eventScheduler/bin/autogen.sh])
dnl set up the scheduler client module
dnl AC_CONFIG_COMMANDS([../src/modules/schedulerClient/tmp/configure],
dnl [../src/modules/schedulerClient/bin/autogen.sh])
dnl set up the widgets module
dnl AC_CONFIG_COMMANDS([../src/modules/widgets/tmp/configure],
dnl [../src/modules/widgets/bin/autogen.sh])
dnl set up the scheduler product
dnl AC_CONFIG_COMMANDS([../src/products/scheduler/tmp/configure],
dnl [../src/products/scheduler/bin/autogen.sh])
dnl set up the gLiveSupport product
dnl AC_CONFIG_COMMANDS([../src/products/gLiveSupport/tmp/configure],
dnl [../src/products/gLiveSupport/bin/autogen.sh])
dnl display status info on what libraries will get compiled
AC_MSG_NOTICE(
[
using the following configuration settings:
hostname: ${HOSTNAME}
apache group: ${APACHE_GROUP}
www document root: ${WWW_DOCROOT}
www port: ${WWW_PORT}
scheduler port: ${SCHEDULER_PORT}
database server: ${DB_SERVER}
database name: ${DATABASE}
database user: ${DB_USER}
database user password: ${DB_PASSWORD}
station audio output device: ${STATION_AUDIO_OUT}
creating Campcaster database: ${CREATE_LS_DATABASE}
creating ODBC data source: ${CREATE_ODBC_DATA_SOURCE}
initialize Campcaster database: ${INIT_LS_DATABASE}
configuring apache: ${CONFIGURE_APACHE}
])
AC_CONFIG_FILES(../Makefile:../etc/Makefile.in)
AC_OUTPUT()

View file

@ -1,2 +0,0 @@
MD5 9dd6a3434f7eaef06fb2956937bbfe2c libodbc++-0.2.3-r2.ebuild 2335
MD5 76859551271b481b467298625eca2fbf files/digest-libodbc++-0.2.3-r2 67

View file

@ -1 +0,0 @@
MD5 92cb6171e5235324c710d89cd271eff9 libodbc++-0.2.3.tar.gz 450097

View file

@ -1,77 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils flag-o-matic
DESCRIPTION="Libodbc++ is a c++ class library that provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC."
SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.gz"
HOMEPAGE="http://libodbcxx.sourceforge.net/"
LICENSE="LGPL-2"
DEPEND="dev-db/unixODBC
sys-libs/libtermcap-compat"
KEYWORDS="~x86 ~ppc ~hppa ~alpha ~amd64"
IUSE="qt"
SLOT=0
SB="${S}-build"
SB_MT="${S}-build-mt"
SB_QT="${S}-build_qt"
SB_QT_MT="${S}-build_qt-mt"
src_unpack() {
unpack ${A}
cd ${S}
# toch the programmers reference stamp, so that it is not re-generated
touch doc/progref/progref-stamp
}
src_compile() {
local commonconf
commonconf="--with-odbc=/usr --without-tests"
commonconf="${commonconf} --enable-static --enable-shared"
# " --enable-threads"
if ! has ccache FEATURES; then
einfo "ccache would really help you compiling this package..."
fi
export ECONF_SOURCE="${S}"
append-flags -DODBCXX_DISABLE_READLINE_HACK
buildlist="${SB} ${SB_MT}"
use qt && buildlist="${buildlist} $SB_QT $SB_QT_MT"
for sd in ${buildlist}; do
mkdir -p "${sd}"
cd "${sd}"
commonconf2=''
LIBS=''
[ "${sd}" == "${SB_MT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --enable-threads"
[ "${sd}" == "${SB_QT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --with-qt"
[ "${sd}" == "${SB}" ] && commonconf2="${commonconf2} --with-isqlxx"
[ "${sd}" == "${SB_QT}" ] && commonconf2="${commonconf2} --with-qtsqlxx"
export LIBS
# using without-qt breaks the build
#--without-qt \
libtoolize --copy --force
econf \
${commonconf} \
${commonconf2} \
|| die "econf failed"
emake || die "emake failed"
done
}
src_install () {
cd ${S}
dodoc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README THANKS TODO
buildlist="${SB} ${SB_MT}"
use qt && buildlist="${buildlist} $SB_QT $SB_QT_MT"
for sd in ${buildlist}; do
cd ${sd}
make DESTDIR=${D} install || die "make install failed"
done
}

View file

@ -1,6 +0,0 @@
MD5 c98236a5a9e80d523bd9ae18b85d92c7 xmlrpc++-0.7.ebuild 1046
MD5 9c03b31bd18ec67ca2d1a38ea5e0da59 files/digest-xmlrpc++-0.7 62
MD5 30ffa4ae3a5736ec63cb3d72867211a2 files/xmlrpc++-automake.patch 7756
MD5 1bfb17903af3f417349ffbb38db5abc0 files/incorrect_XmlRpcValue_struct_tm_conversion.patch 1207
MD5 b5bdda7867960ddfb6530224a2e1dc88 files/uninitialised_XmlRpcSource_ssl_ssl.patch 423
MD5 ec8a71135df6f24e75e41b0f8b27556b files/xmlrpc++-0.7-to-cvs-20040713.patch 79370

View file

@ -1 +0,0 @@
MD5 d88f0f9c36d938316d672d16f6c37d7e xmlrpc++0.7.tar.gz 64037

View file

@ -1,31 +0,0 @@
diff -Nur xmlrpc++/src/XmlRpcValue.cpp x/src/XmlRpcValue.cpp
--- xmlrpc++/src/XmlRpcValue.cpp 2003-06-06 20:13:28.000000000 +0200
+++ x/src/XmlRpcValue.cpp 2004-12-13 21:02:39.505001617 +0100
@@ -390,6 +390,7 @@
return false;
t.tm_year -= 1900;
+ t.tm_mon -= 1;
t.tm_isdst = -1;
_type = TypeDateTime;
_value.asTime = new struct tm(t);
@@ -402,7 +403,7 @@
struct tm* t = _value.asTime;
char buf[20];
snprintf(buf, sizeof(buf)-1, "%04d%02d%02dT%02d:%02d:%02d",
- 1900+t->tm_year,t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
+ 1900+t->tm_year,1+t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
buf[sizeof(buf)-1] = 0;
std::string xml = VALUE_TAG;
@@ -553,8 +554,8 @@
{
struct tm* t = _value.asTime;
char buf[20];
- snprintf(buf, sizeof(buf)-1, "%4d%02d%02dT%02d:%02d:%02d",
- t->tm_year,t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
+ snprintf(buf, sizeof(buf)-1, "%04d%02d%02dT%02d:%02d:%02d",
+ 1900+t->tm_year,1+t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
buf[sizeof(buf)-1] = 0;
os << buf;
break;

View file

@ -1,11 +0,0 @@
diff -Nur xmlrpc++/src/XmlRpcSource.cpp x/src/XmlRpcSource.cpp
--- xmlrpc++/src/XmlRpcSource.cpp 2004-04-13 22:21:59.000000000 +0700
+++ x/src/XmlRpcSource.cpp 2004-07-14 12:26:28.227768848 +0700
@@ -9,6 +9,7 @@
XmlRpcSource::XmlRpcSource(int fd /*= -1*/, bool deleteOnClose /*= false*/)
: _fd(fd), _deleteOnClose(deleteOnClose), _keepOpen(false)
{
+ _ssl_ssl = NULL;
}
XmlRpcSource::~XmlRpcSource()

View file

@ -1,252 +0,0 @@
diff -Naur xmlrpc++/Makefile xmlrpc++-automake/Makefile
--- xmlrpc++/Makefile 2004-04-19 20:53:00.000000000 +0700
+++ xmlrpc++-automake/Makefile 1970-01-01 07:00:00.000000000 +0700
@@ -1,71 +0,0 @@
-# makefile written for gnu make
-CXX = g++
-SRC = ./src
-SHARED = -shared
-CPPFLAGS = -I$(SRC)
-DEBUG = -g
-OPTIMIZE = -O2
-GCCWARN = -Wall -Wstrict-prototypes
-CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
-VERSION = 0.8
-
-DESTDIR =
-prefix = /usr
-MKDIR = mkdir -p
-CP = cp
-LN = ln -s
-
-LIB = ./libXmlRpc.a
-LIBALT = ./libxmlrpc++.a
-SO = ./libxmlrpc++.so.$(VERSION)
-
-# Add your system-dependent network libs here. These are
-# only used to build the tests (your application will need them too).
-# Linux: none
-# Solaris: -lsocket -lnsl
-#SYSTEMLIBS = -lsocket -lnsl
-SYSTEMLIBS =
-LDLIBS = $(LIB) $(SYSTEMLIBS)
-
-OBJ = $(SRC)/XmlRpcClient.o $(SRC)/XmlRpcDispatch.o \
- $(SRC)/XmlRpcServer.o $(SRC)/XmlRpcServerConnection.o \
- $(SRC)/XmlRpcServerMethod.o $(SRC)/XmlRpcSocket.o $(SRC)/XmlRpcSource.o \
- $(SRC)/XmlRpcUtil.o $(SRC)/XmlRpcValue.o
-
-all: $(LIB) $(SO) tests
-
-$(LIB): $(OBJ)
- $(AR) $(ARFLAGS) $(LIB) $(OBJ)
- cp $(LIB) $(LIBALT)
-
-$(SO): $(OBJ)
- $(CXX) -o $(SO) $(SHARED) $(OBJ)
-
-
-tests: $(LIB)
- cd test && $(MAKE) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" SYSTEMLIBS="$(SYSTEMLIBS)"
-
-doc doxygen:
- cd src && doxygen Doxyfile
-
-distclean: clean
-
-clean:
- rm -f $(SRC)/*.o
- rm -f $(SRC)/*~
- rm -f $(LIB) $(LIBALT) $(SO)
- rm -f build
- cd test && $(MAKE) clean
-
-install:
- $(MKDIR) $(DESTDIR)$(prefix)/lib
- $(CP) $(SO) $(LIB) $(DESTDIR)$(prefix)/lib
- $(MKDIR) $(DESTDIR)$(prefix)/include
- $(CP) src/*.h $(DESTDIR)$(prefix)/include
- ( cd $(DESTDIR)$(prefix)/lib; rm -f libxmlrpc++.so; $(LN) $(SO) libxmlrpc++.so )
- # Does not install tests right now
-
-# Debian package make target, in case you want to manually build a package
-# from the distribution.
-deb:
- dpkg-buildpackage -rfakeroot
diff -Naur xmlrpc++/Makefile.am xmlrpc++-automake/Makefile.am
--- xmlrpc++/Makefile.am 1970-01-01 07:00:00.000000000 +0700
+++ xmlrpc++-automake/Makefile.am 2004-07-26 11:54:16.610066768 +0700
@@ -0,0 +1,17 @@
+SUBDIRS = src
+
+EXTRA_DIST = README.html
+
+DOC_DIR=@datadir@/doc/xmlrpc++
+
+doc:
+ cd src && doxygen Doxyfile
+
+install-data-local: doc
+ $(mkinstalldirs) $(DOC_DIR); \
+ for i in doc/html/*; do \
+ if test -r "$$i"; then \
+ fn=`basename $$i` \
+ $(INSTALL_DATA) $$i $(DOC_DIR)/$$fn; \
+ fi; \
+ done
diff -Naur xmlrpc++/autogen.sh xmlrpc++-automake/autogen.sh
--- xmlrpc++/autogen.sh 1970-01-01 07:00:00.000000000 +0700
+++ xmlrpc++-automake/autogen.sh 2004-07-26 11:54:11.578831632 +0700
@@ -0,0 +1,69 @@
+#!/bin/sh
+# Run this to set up the build system: configure, makefiles, etc.
+# (based on the version in enlightenment's cvs)
+
+package="xmlrpc++"
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+cd "$srcdir"
+DIE=0
+
+(autoheader --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have automake installed to compile $package."
+ echo "Download the appropriate package for your system,"
+ echo "or get the source from one of the GNU ftp sites"
+ echo "listed in http://www.gnu.org/order/ftp.html"
+ DIE=1
+}
+
+(libtool --help) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have libtool installed to compile $package."
+ echo "Download the appropriate package for your system,"
+ echo "or get the source from one of the GNU ftp sites"
+ echo "listed in http://www.gnu.org/order/ftp.html"
+ DIE=1
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+echo "Generating configuration files for $package, please wait...."
+
+echo " aclocal $ACLOCAL_FLAGS"
+aclocal $ACLOCAL_FLAGS
+echo " autoheader"
+autoheader
+echo " libtoolize --automake"
+libtoolize --automake
+echo " automake --add-missing --foreign $AUTOMAKE_FLAGS"
+automake --add-missing --foreign $AUTOMAKE_FLAGS
+echo " autoconf"
+autoconf
+
+$srcdir/configure "$@" && echo
diff -Naur xmlrpc++/configure.in xmlrpc++-automake/configure.in
--- xmlrpc++/configure.in 1970-01-01 07:00:00.000000000 +0700
+++ xmlrpc++-automake/configure.in 2004-07-26 11:54:11.578831632 +0700
@@ -0,0 +1,40 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(src/XmlRpc.h)
+
+XMLRPC_MAJOR_VERSION=0
+XMLRPC_MINOR_VERSION=8
+XMLRPC_MICRO_VERSION=0
+
+#shared library versioning
+XMLRPC_INTERFACE_AGE=0 # increment if interfaces have been added,
+ # zero if interfaces have changed or been removed
+XMLRPC_BINARY_AGE=0 # increment if binary-compatability is broken
+
+XMLRPC_VERSION=$XMLRPC_MAJOR_VERSION.$XMLRPC_MINOR_VERSION.$XMLRPC_MICRO_VERSION
+
+LT_RELEASE=$XMLRPC_MAJOR_VERSION.$XMLRPC_MINOR_VERSION
+LT_CURRENT=`expr $XMLRPC_MICRO_VERSION - $XMLRPC_INTERFACE_AGE`
+LT_REVISION=$XMLRPC_INTERFACE_AGE
+LT_AGE=`expr $XMLRPC_BINARY_AGE - $XMLRPC_INTERFACE_AGE`
+
+AC_SUBST(LT_RELEASE)
+AC_SUBST(LT_CURRENT)
+AC_SUBST(LT_REVISION)
+AC_SUBST(LT_AGE)
+AC_SUBST(XMLRPC_VERSION)
+
+AM_INIT_AUTOMAKE(libxmlrpc++,$XMLRPC_VERSION)
+
+AM_CONFIG_HEADER(configure.h)
+
+AC_PROG_CXX
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+
+dnl AC_STDC_HEADERS
+AC_CHECK_LIB( socket, socket)
+AC_CHECK_LIB( nsl, gethostbyname)
+AC_CHECK_LIB( ssl, SSL_connect)
+
+AC_OUTPUT(Makefile src/Makefile)
+
diff -Naur xmlrpc++/src/Makefile.am xmlrpc++-automake/src/Makefile.am
--- xmlrpc++/src/Makefile.am 1970-01-01 07:00:00.000000000 +0700
+++ xmlrpc++-automake/src/Makefile.am 2004-07-26 11:54:11.578831632 +0700
@@ -0,0 +1,35 @@
+lib_LTLIBRARIES = libxmlrpc++.la
+
+libxmlrpc___la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+
+library_includedir=$(includedir)
+library_include_HEADERS = XmlRpc.h \
+ XmlRpcServer.h \
+ XmlRpcSocket.h \
+ XmlRpcValue.h \
+ XmlRpcClient.h \
+ XmlRpcServerConnection.h \
+ XmlRpcSource.h \
+ XmlRpcDispatch.h \
+ XmlRpcServerMethod.h \
+ XmlRpcUtil.h \
+ XmlRpcThreadedServer.h \
+ XmlRpcException.h \
+ XmlRpcMutex.h \
+ XmlRpcThread.h
+
+libxmlrpc___la_SOURCES = $(library_include_HEADERS) \
+ base64.h \
+ XmlRpcClient.cpp \
+ XmlRpcServerConnection.cpp \
+ XmlRpcSource.cpp \
+ XmlRpcDispatch.cpp \
+ XmlRpcServerMethod.cpp \
+ XmlRpcUtil.cpp \
+ XmlRpcServer.cpp \
+ XmlRpcSocket.cpp \
+ XmlRpcValue.cpp \
+ XmlRpcThreadedServer.cpp \
+ XmlRpcMutex.cpp\
+ XmlRpcThread.cpp
+

View file

@ -1,47 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils flag-o-matic
DESCRIPTION="XmlRpc++ is a C++ implementation of the XML-RPC protocol."
SRC_URI="mirror://sourceforge/xmlrpcpp/${PN}${PV}.tar.gz"
HOMEPAGE="http://xmlrpcpp.sourceforge.net/"
LICENSE="LGPL"
DEPEND=""
KEYWORDS="~x86 ~ppc ~hppa ~alpha ~amd64"
IUSE=""
SLOT=0
src_unpack() {
unpack ${A}
cd ${PN}${PV}
epatch ${FILESDIR}/xmlrpc++-0.7-to-cvs-20040713.patch
epatch ${FILESDIR}/xmlrpc++-automake.patch
epatch ${FILESDIR}/uninitialised_XmlRpcSource_ssl_ssl.patch
epatch ${FILESDIR}/incorrect_XmlRpcValue_struct_tm_conversion.patch
sh autogen.sh
}
src_compile() {
cd ${WORKDIR}/${PN}${PV}
econf || die "econf failed"
emake || die "emake failed"
}
src_install () {
cd ${WORKDIR}/${PN}${PV}
dodoc COPYING README.html
emake prefix=${D} \
includedir=${D}/usr/include \
libdir=${D}/usr/lib \
DOC_DIR=${D}/usr/share/doc/${PF} \
install \
|| die "make install failed"
}

View file

@ -1,2 +0,0 @@
MD5 4240a059d8243567ea2b783f05c29c14 PEAR-Calendar-0.5.2.ebuild 317
MD5 f85abc41078747dcbe66b80ddbfea88c files/digest-PEAR-Calendar-0.5.2 62

View file

@ -1,13 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit php-pear-r1
DESCRIPTION="A package for building Calendar data structures (irrespective of
output)"
LICENSE="PHP"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86"
IUSE=""

View file

@ -1 +0,0 @@
MD5 26e2dedc175fd5056856b1fee6c0415a Calendar-0.5.2.tgz 60164

View file

@ -1,2 +0,0 @@
MD5 e0f58b576c8dc7b50a16cc8ab4ed5295 PEAR-File-1.2.0.ebuild 244
MD5 dfbc729e39566a4af97ca144c293a308 files/digest-PEAR-File-1.2.0 58

View file

@ -1,12 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit php-pear-r1
DESCRIPTION="Common file and directory routines"
LICENSE="PHP"
SLOT="0"
KEYWORDS="~sparc ~x86"
IUSE=""

View file

@ -1 +0,0 @@
MD5 40ccd2236328fbb2475ba74ea575787d File-1.2.0.tgz 15450

View file

@ -1,2 +0,0 @@
MD5 790c4721e6436b79a12dada33b5391fa PEAR-File_Find-0.3.1.ebuild 289
MD5 7ff24f071f24225d832b6b7a8ef4bf36 files/digest-PEAR-File_Find-0.3.1 62

View file

@ -1,11 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit php-pear-r1
DESCRIPTION="A class that facillitates the search of filesystems."
LICENSE="PHP"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc alpha ~hppa amd64 ppc64"
IUSE=""

View file

@ -1 +0,0 @@
MD5 a81c83a7ce53f4fb9bec8a0019fde0e8 File_Find-0.3.1.tgz 4759

View file

@ -1,2 +0,0 @@
MD5 64e1cc953c0f89144e5865d9e95e0405 PEAR-HTML_QuickForm-3.2.4.ebuild 523
MD5 4273f257f8706d090b9dbf9856189504 files/digest-PEAR-HTML_QuickForm-3.2.4 68

View file

@ -1,16 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit php-pear-r1
DESCRIPTION="The PEAR::HTML_QuickForm package provides methods for creating, validating, processing HTML forms."
LICENSE="PHP"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc ~ia64 ~amd64"
DEPEND=">=dev-php/PEAR-HTML_Common-1.2.1
dev-php/PEAR-HTML_Template_Flexy
dev-php/PEAR-HTML_Template_IT"
# the last two would be option on doc? but I think we should put the docs there
# anyway
IUSE=""

View file

@ -1 +0,0 @@
MD5 63e41c52445c3c975a4d81a801fcd1c6 HTML_QuickForm-3.2.4.tgz 92946

View file

@ -1,2 +0,0 @@
MD5 20e860b9eaed5ae49ab9e7fc3fc2edf3 PEAR-XML_Parser-1.2.6.ebuild 317
MD5 1000e0267dc48ce81fa7d8085e801b78 files/digest-PEAR-XML_Parser-1.2.6 64

View file

@ -1,14 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit php-pear-r1
DESCRIPTION="XML parsing class based on PHP's SAX parser"
LICENSE="PHP"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86"
IUSE=""
RDEPEND="dev-php/PEAR-PEAR"

View file

@ -1 +0,0 @@
MD5 96ebc0fc2f349249f1455389797e72a4 XML_Parser-1.2.6.tgz 12944

View file

@ -1,4 +0,0 @@
MD5 7a549789db883fd2a1fece00159db85b taglib-1.3.1-r3.ebuild 916
MD5 103dd47ff1744397288b44834902e16c files/taglib-1.3.1-memleak-fix2.patch 2514
MD5 5be2e7958dd0c6985fd109659eb90b6b files/taglib-1.3.1-length-in-microseconds.patch 5962
MD5 cc8a58ea8028f3539fcee148baeffcc1 files/digest-taglib-1.3.1-r3 64

View file

@ -1 +0,0 @@
MD5 f5c7c71513ba51b240864d7475a199c0 taglib-1.3.1.tar.gz 734938

View file

@ -1,172 +0,0 @@
--- taglib-1.3.1/taglib/audioproperties.h 2003-11-04 03:48:25.000000000 +0100
+++ taglib-1.3.1-microseconds/taglib/audioproperties.h 2005-06-15 19:27:31.805943362 +0200
@@ -59,11 +59,16 @@
virtual ~AudioProperties();
/*!
- * Returns the lenght of the file in seconds.
+ * Returns the length of the file in seconds (rounded down).
*/
virtual int length() const = 0;
/*!
+ * Returns the fractional part of the length of the file, in microseconds.
+ */
+ virtual int length_microseconds() const = 0;
+
+ /*!
* Returns the most appropriate bit rate for the file in kb/s. For constant
* bitrate formats this is simply the bitrate of the file. For variable
* bitrate formats this is either the average or nominal bitrate.
--- taglib-1.3.1/taglib/flac/flacproperties.h 2004-06-24 21:27:02.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/flac/flacproperties.h 2005-06-15 19:41:27.176791223 +0200
@@ -62,6 +62,7 @@
// Reimplementations.
virtual int length() const;
+ virtual int length_microseconds() const;
virtual int bitrate() const;
virtual int sampleRate() const;
virtual int channels() const;
--- taglib-1.3.1/taglib/flac/flacproperties.cpp 2004-08-02 16:18:58.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/flac/flacproperties.cpp 2005-06-15 21:42:48.714138847 +0200
@@ -76,6 +76,11 @@
return d->length;
}
+int FLAC::Properties::length_microseconds() const
+{
+ return 0;
+}
+
int FLAC::Properties::bitrate() const
{
return d->bitrate;
--- taglib-1.3.1/taglib/mpc/mpcproperties.h 2004-07-21 00:30:00.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/mpc/mpcproperties.h 2005-06-15 19:46:10.845016974 +0200
@@ -56,6 +56,7 @@
// Reimplementations.
virtual int length() const;
+ virtual int length_microseconds() const;
virtual int bitrate() const;
virtual int sampleRate() const;
virtual int channels() const;
--- taglib-1.3.1/taglib/mpc/mpcproperties.cpp 2004-09-09 02:28:18.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/mpc/mpcproperties.cpp 2005-06-15 21:43:14.322020672 +0200
@@ -71,6 +71,11 @@
return d->length;
}
+int MPC::Properties::length_microseconds() const
+{
+ return 0;
+}
+
int MPC::Properties::bitrate() const
{
return d->bitrate;
--- taglib-1.3.1/taglib/mpeg/mpegproperties.h 2003-11-05 05:29:05.000000000 +0100
+++ taglib-1.3.1-microseconds/taglib/mpeg/mpegproperties.h 2005-06-15 19:33:00.669147926 +0200
@@ -56,6 +56,7 @@
// Reimplementations.
virtual int length() const;
+ virtual int length_microseconds() const;
virtual int bitrate() const;
virtual int sampleRate() const;
virtual int channels() const;
--- taglib-1.3.1/taglib/mpeg/mpegproperties.cpp 2004-08-02 16:18:58.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/mpeg/mpegproperties.cpp 2005-06-15 20:57:14.538631543 +0200
@@ -41,7 +41,7 @@
File *file;
ReadStyle style;
- int length;
+ long long length;
int bitrate;
int sampleRate;
int channels;
@@ -71,7 +71,12 @@
int MPEG::Properties::length() const
{
- return d->length;
+ return int(d->length / 1000000);
+}
+
+int MPEG::Properties::length_microseconds() const
+{
+ return int(d->length % 1000000);
}
int MPEG::Properties::bitrate() const
@@ -191,8 +196,9 @@
double timePerFrame = blockSize[firstHeader.layer()];
timePerFrame = firstHeader.sampleRate() > 0 ? timePerFrame / firstHeader.sampleRate() : 0;
- d->length = int(timePerFrame * xingHeader.totalFrames());
- d->bitrate = d->length > 0 ? xingHeader.totalSize() * 8 / d->length / 1000 : 0;
+ d->length = (long long)(
+ timePerFrame * xingHeader.totalFrames() * 1000000 + 0.5);
+ d->bitrate = d->length > 0 ? xingHeader.totalSize() * 8000 / d->length : 0;
}
// Since there was no valid Xing header found, we hope that we're in a constant
@@ -204,8 +210,10 @@
else if(firstHeader.frameLength() > 0 && firstHeader.bitrate() > 0) {
int frames = (last - first) / firstHeader.frameLength() + 1;
- d->length = int(float(firstHeader.frameLength() * frames) /
- float(firstHeader.bitrate() * 125) + 0.5);
+ d->length = (long long)(
+ (double(firstHeader.frameLength()) * frames * 1000000) /
+ (double(firstHeader.bitrate()) * 125) + 0.5);
+
d->bitrate = firstHeader.bitrate();
}
--- taglib-1.3.1/taglib/ogg/vorbis/vorbisproperties.h 2004-05-13 02:29:48.000000000 +0200
+++ taglib-1.3.1-microseconds/taglib/ogg/vorbis/vorbisproperties.h 2005-06-15 19:48:18.365492520 +0200
@@ -65,6 +65,7 @@
// Reimplementations.
virtual int length() const;
+ virtual int length_microseconds() const;
virtual int bitrate() const;
virtual int sampleRate() const;
virtual int channels() const;
--- taglib-1.3.1/taglib/ogg/vorbis/vorbisproperties.cpp 2003-12-02 06:00:23.000000000 +0100
+++ taglib-1.3.1-microseconds/taglib/ogg/vorbis/vorbisproperties.cpp 2005-06-15 20:36:41.687062239 +0200
@@ -46,7 +46,7 @@
File *file;
ReadStyle style;
- int length;
+ long long length;
int bitrate;
int sampleRate;
int channels;
@@ -81,7 +81,12 @@
int Vorbis::Properties::length() const
{
- return d->length;
+ return int(d->length / 1000000);
+}
+
+int Vorbis::Properties::length_microseconds() const
+{
+ return int(d->length % 1000000);
}
int Vorbis::Properties::bitrate() const
@@ -169,7 +174,7 @@
long long end = last->absoluteGranularPosition();
if(start >= 0 && end >= 0 && d->sampleRate > 0)
- d->length = (end - start) / (long long) d->sampleRate;
+ d->length = ((end - start) * 1000000) / (long long) d->sampleRate;
else
debug("Vorbis::Properties::read() -- Either the PCM values for the start or "
"end of this file was incorrect or the sample rate is zero.");

View file

@ -1,112 +0,0 @@
--- taglib/mpc/mpcproperties.cpp 2004/09/09 00:28:57 345141
+++ taglib/mpc/mpcproperties.cpp 2005/04/02 20:53:11 402712
@@ -106,7 +106,7 @@
void MPC::Properties::read()
{
- if(d->data.mid(0, 3) != "MP+")
+ if(!d->data.startsWith("MP+"))
return;
d->version = d->data[3] & 15;
@@ -116,7 +116,7 @@
if(d->version >= 7) {
frames = d->data.mid(4, 4).toUInt(false);
- std::bitset<32> flags = d->data.mid(8, 4).toUInt(true);
+ std::bitset<32> flags = d->data.mid(8, 4).toUInt(false);
d->sampleRate = sftable[flags[17] * 2 + flags[16]];
d->channels = 2;
}
--- taglib/mpc/mpcfile.cpp 2004/09/02 18:50:26 343576
+++ taglib/mpc/mpcfile.cpp 2005/04/03 16:41:17 402896
@@ -53,7 +53,10 @@
~FilePrivate()
{
+ if (tag != ID3v1Tag && tag != APETag) delete tag;
delete ID3v1Tag;
+ delete APETag;
+ delete ID3v2Header;
delete properties;
}
@@ -227,7 +230,7 @@
if(d->APETag)
d->tag = d->APETag;
else
- d->tag = d->APETag = new APE::Tag();
+ d->tag = d->APETag = new APE::Tag;
}
if(tags & ID3v2) {
@@ -242,7 +245,7 @@
if(d->ID3v1Tag)
d->tag = d->ID3v1Tag;
else
- d->tag = d->APETag = new APE::Tag();
+ d->tag = d->APETag = new APE::Tag;
}
}
@@ -284,7 +287,7 @@
if(d->hasAPE)
d->tag = d->APETag;
else
- d->tag = d->APETag = new APE::Tag();
+ d->tag = d->APETag = new APE::Tag;
}
}
--- taglib/ape/apeitem.h 2004/11/06 14:24:40 360969
+++ taglib/ape/apeitem.h 2005/04/03 16:35:55 402891
@@ -70,6 +70,11 @@
Item(const Item &item);
/*!
+ * Destroys the item.
+ */
+ virtual ~Item();
+
+ /*!
* Copies the contents of \a item into this item.
*/
Item &operator=(const Item &item);
--- taglib/ape/apeitem.cpp 2004/11/06 14:43:24 360973
+++ taglib/ape/apeitem.cpp 2005/04/03 16:35:55 402891
@@ -62,6 +62,11 @@
d = new ItemPrivate(*item.d);
}
+APE::Item::~Item()
+{
+ delete d;
+}
+
Item &APE::Item::operator=(const Item &item)
{
delete d;
@@ -111,7 +116,7 @@
String APE::Item::toString() const
{
- return d->text.front();
+ return isEmpty() ? String::null : d->text.front();
}
bool APE::Item::isEmpty() const
@@ -121,7 +126,7 @@
case 1:
if(d->text.isEmpty())
return true;
- if(d->text.size() == 1 && d->text.front() == "")
+ if(d->text.size() == 1 && d->text.front().isEmpty())
return true;
return false;
case 2:

View file

@ -1,39 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils flag-o-matic
DESCRIPTION="A library for reading and editing audio meta data"
HOMEPAGE="http://developer.kde.org/~wheeler/taglib.html"
SRC_URI="http://developer.kde.org/~wheeler/files/src/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~mips"
IUSE="debug"
DEPEND=">=sys-devel/autoconf-2.58"
RDEPEND=""
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-memleak-fix2.patch
epatch ${FILESDIR}/${P}-length-in-microseconds.patch
rm -rf autom4te.cache
export WANT_AUTOCONF=2.5
export WANT_AUTOMAKE=1.7
aclocal && autoconf && automake || die "autotools failed"
}
src_compile() {
replace-flags -O3 -O2
econf `use_enable debug` || die
emake || die
}
src_install() {
make install DESTDIR=${D} destdir=${D} || die
}

View file

@ -1,8 +0,0 @@
MD5 327ed3bdd51bf26a7fc4f8a097ec163f livesupport-1.0.ebuild 2745
MD5 88922583359d4f48bb62fe32edcf49bf files/storageServer-docroot.patch 496
MD5 748c25d0b1d9b77b549de03d2d054796 files/prefix-as-make-variable.patch 9729
MD5 c2d1ff785cf48e5379f9a3c408c44eb7 files/setup-install-dirs.patch 1430
MD5 f1b36bd5e8064413975e891f7e698909 files/taglib-curl-icu.patch 46021
MD5 a538c0d8cca6f56f49e849d02e7eeaf5 files/pg_hba.patch 1271
MD5 11fe70fcc870ab186dcc8ce354c43076 files/digest-livesupport-1.0 70
MD5 aa45773c2de23cc856a1bc11153637ec files/postinstall-config-file.patch 7791

View file

@ -1 +0,0 @@
MD5 73d76a5c9cd0c0b9e2f527e8a169183b livesupport-1.0.tar.bz2 10666438

View file

@ -1,24 +0,0 @@
--- livesupport-1.0/etc/pg_hba.conf 2005-08-13 12:33:33.000000000 +0200
+++ livesupport-1.0-gentoo/etc/pg_hba.conf 2005-09-22 13:48:24.000000000 +0200
@@ -85,18 +85,16 @@
# Database administrative login by UNIX sockets
local all postgres ident sameuser
#
-# All other connections by UNIX sockets
-local all all ident sameuser
-#
# All IPv4 connections from localhost
# The following line was inserted by the livesupport-station package installer
# the original pg_hba.conf file is saved under pg_hba.conf.before-livesupport
host all all 127.0.0.1 255.255.255.255 password
#host all all 127.0.0.1 255.255.255.255 ident sameuser
#
+# All other connections by UNIX sockets
+local all all password
+#
# All IPv6 localhost connections
-host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ident sameuser
-host all all ::ffff:127.0.0.1/128 ident sameuser
#
# reject all other connection attempts
host all all 0.0.0.0 0.0.0.0 reject

View file

@ -1,193 +0,0 @@
--- livesupport-1.0/bin/postInstallStation.sh 2005-08-14 14:15:30.000000000 +0200
+++ livesupport-1.0-gentoo/bin/postInstallStation.sh 2005-09-22 13:16:23.000000000 +0200
@@ -155,9 +155,13 @@
echo " apache document root: $www_root";
echo ""
+
#-------------------------------------------------------------------------------
# The details of installation
#-------------------------------------------------------------------------------
+ls_hostname=localhost
+ls_www_port=80
+
ls_dbserver=$dbserver
ls_dbuser=$dbuser
ls_dbpassword=$dbpassword
@@ -168,9 +172,15 @@
install_bin=$installdir/bin
install_etc=$installdir/etc
install_lib=$installdir/lib
+install_tmp=$installdir/tmp
install_usr=$installdir/usr
install_var_ls=$installdir/var/LiveSupport
+php_url_prefix=livesupport
+alib_xml_rpc_prefix=xmlrpc/xrLocStor.php
+audio_out=default
+scheduler_port=3344
+
#-------------------------------------------------------------------------------
# Function to check for the existence of an executable on the PATH
@@ -226,19 +236,68 @@
#-------------------------------------------------------------------------------
+# Create the replacement string for the config files
+#-------------------------------------------------------------------------------
+install_lib_s=`echo ${install_lib} | sed -e "s/\//\\\\\\\\\//g"`
+install_tmp_s=`echo ${install_tmp} | sed -e "s/\//\\\\\\\\\//g"`
+php_url_prefix_s=`echo ${php_url_prefix} | sed -e "s/\//\\\\\\\\\//g"`
+alib_xml_rpc_prefix_s=`echo ${alib_xml_rpc_prefix} | sed -e "s/\//\\\\\\\\\//g"`
+audio_out_s=`echo ${audio_out} | sed -e "s/\//\\\\\\\\\//g"`
+
+
+replace_sed_string="s/ls_lib_dir/${install_lib_s}/; \
+ s/ls_dbuser/${ls_dbuser}/; \
+ s/ls_dbpassword/${ls_dbpassword}/; \
+ s/ls_dbserver/${ls_dbserver}/; \
+ s/ls_database/${ls_database}/; \
+ s/ls_php_urlPrefix/${php_url_prefix_s}/; \
+ s/ls_php_host/${ls_hostname}/; \
+ s/ls_php_port/${ls_www_port}/; \
+ s/ls_alib_xmlRpcPrefix/${alib_xml_rpc_prefix_s}/; \
+ s/ls_tmp_dir/${install_tmp_s}/; \
+ s/ls_audio_output_device/${audio_out_s}/; \
+ s/ls_scheduler_host/${ls_hostname}/; \
+ s/ls_scheduler_port/${scheduler_port}/;"
+
+
+#-------------------------------------------------------------------------------
+# Creating configuration files
+#-------------------------------------------------------------------------------
+echo "Creating configuration files...";
+
+cat $install_etc/scheduler.xml.template | sed -e "${replace_sed_string}" \
+ > $install_etc/scheduler.xml
+
+cat $install_var_ls/archiveServer/var/conf.php.template \
+ | sed -e "${replace_sed_string}" \
+ > $install_var_ls/archiveServer/var/conf.php
+
+cat $install_var_ls/storageServer/var/conf.php.template \
+ | sed -e "${replace_sed_string}" \
+ > $install_var_ls/storageServer/var/conf.php
+
+
+#-------------------------------------------------------------------------------
# Install the new pg_hba.conf file
#-------------------------------------------------------------------------------
echo "Modifying postgresql access permissions...";
-pg_config_dir=/etc/postgresql
pg_config_file=pg_hba.conf
pg_config_file_saved=pg_hba.conf.before-livesupport
+pg_config_dir=/etc/postgresql
if [ -f $pg_config_dir/$pg_config_file ] ; then
mv -f $pg_config_dir/$pg_config_file $pg_config_dir/$pg_config_file_saved ;
+ cp $install_etc/$pg_config_file $pg_config_dir/$pg_config_file
+ chown root:$postgres_user $pg_config_dir/$pg_config_file
+fi
+
+pg_config_dir=/var/lib/postgresql/data/
+if [ -f $pg_config_dir/$pg_config_file ] ; then
+ mv -f $pg_config_dir/$pg_config_file $pg_config_dir/$pg_config_file_saved ;
+ cp $install_etc/$pg_config_file $pg_config_dir/$pg_config_file
+ chown root:$postgres_user $pg_config_dir/$pg_config_file
fi
-cp $install_etc/$pg_config_file $pg_config_dir/$pg_config_file
-chown root:$postgres_user $pg_config_dir/$pg_config_file
/etc/init.d/postgresql restart
@@ -290,6 +349,10 @@
odbc_template=$install_etc/odbc_template
odbc_template_tmp=/tmp/odbc_template.$$
+# customied odbc template file
+cat $install_etc/odbc_template | sed -e "${replace_sed_string}" \
+ > $odbc_template_tmp
+
# check for an existing PostgreSQL ODBC driver, and only install if necessary
odbcinst_res=`odbcinst -q -d | grep "\[PostgreSQL\]"`
if [ "x$odbcinst_res" == "x" ]; then
@@ -298,13 +361,17 @@
fi
echo "Registering LiveSupport ODBC data source...";
-odbcinst -i -s -l -f $odbc_template || exit 1;
+odbcinst -i -s -l -f $odbc_template_tmp || exit 1;
+
+rm -f $odbc_template_tmp
#-------------------------------------------------------------------------------
# Install PEAR packages (locally in the LiveSupport)
#-------------------------------------------------------------------------------
-$install_usr/lib/pear/bin/install.sh -d $installdir || exit 1;
+if [ -f $install_usr/lib/pear/bin/install.sh ]; then
+ $install_usr/lib/pear/bin/install.sh -d $installdir || exit 1;
+fi
#-------------------------------------------------------------------------------
@@ -338,6 +405,7 @@
chmod g+sw $install_var_ls/htmlUI/var/templates_c
chmod g+sw $install_var_ls/htmlUI/var/html/img
+
#-------------------------------------------------------------------------------
# Configuring Apache
#-------------------------------------------------------------------------------
@@ -421,7 +489,9 @@
export LD_LIBRARY_PATH=$install_lib
export GST_REGISTRY=$install_etc/gst-registry.xml
export GST_PLUGIN_PATH=$gstreamer_dir
-$install_bin/gst-register > /dev/null 2>&1
+if [ -f $install_bin/gst-register ]; then
+ $install_bin/gst-register > /dev/null 2>&1
+fi
#-------------------------------------------------------------------------------
--- livesupport-1.0/products/scheduler/etc/Makefile.in 2005-09-21 15:33:18.000000000 +0200
+++ livesupport-1.0-gentoo/products/scheduler/etc/Makefile.in 2005-09-22 12:47:38.000000000 +0200
@@ -375,10 +375,8 @@
${CP} ${SCHEDULER_EXE} ${USR_BIN_DIR}
${CP} ${ETC_DIR}/odbcinst_debian_template \
${ETC_DIR}/odbcinst_template ${USR_ETC_DIR}
- ${CAT} ${ETC_DIR}/odbc_template | ${SED} -e ${REPLACE_SED_STRING} \
- > ${USR_ETC_DIR}/odbc_template
- ${CAT} ${ETC_DIR}/scheduler.xml.template | ${SED} -e ${REPLACE_SED_STRING} \
- > ${USR_ETC_DIR}/scheduler.xml
+ ${CP} ${ETC_DIR}/odbc_template ${USR_ETC_DIR}
+ ${CP} ${ETC_DIR}/scheduler.xml.template ${USR_ETC_DIR}
create_database:
ifeq (@CREATE_LS_DATABASE@,yes)
--- livesupport-1.0/modules/archiveServer/etc/Makefile.in 2005-09-21 15:33:18.000000000 +0200
+++ livesupport-1.0-gentoo/modules/archiveServer/etc/Makefile.in 2005-09-22 13:14:20.000000000 +0200
@@ -165,8 +165,7 @@
${CP} ${VAR_DIR}/*.{php,template} ${DEST_DIR}
${CP} ${VAR_DIR}/install/*.php ${DEST_DIR}/install
${CP} ${VAR_DIR}/xmlrpc/*.php ${DEST_DIR}/xmlrpc
- ${CAT} ${VAR_DIR}/conf.php.template | ${SED} -e ${REPLACE_SED_STRING} \
- > ${DEST_DIR}/conf.php
+ ${CP} ${VAR_DIR}/conf.php.template ${DEST_DIR}
#-------------------------------------------------------------------------------
--- livesupport-1.0/modules/storageServer/etc/Makefile.in 2005-09-21 15:33:18.000000000 +0200
+++ livesupport-1.0-gentoo/modules/storageServer/etc/Makefile.in 2005-09-22 13:14:20.000000000 +0200
@@ -183,8 +183,7 @@
${DEST_DIR}/install
${CP} ${VAR_DIR}/xmlrpc/*.php \
${DEST_DIR}/xmlrpc
- ${CAT} ${VAR_DIR}/conf.php.template | ${SED} -e ${REPLACE_SED_STRING} \
- > ${DEST_DIR}/conf.php
+ ${CP} ${VAR_DIR}/conf.php.template ${DEST_DIR}
chgrp ${APACHE_GROUP} ${DEST_DIR}/access
chgrp ${APACHE_GROUP} ${DEST_DIR}/stor

View file

@ -1,224 +0,0 @@
diff -Naur livesupport-1.0/modules/alib/etc/Makefile.in livesupport-1.0-gentoo/modules/alib/etc/Makefile.in
--- livesupport-1.0/modules/alib/etc/Makefile.in 2005-08-01 21:25:59.000000000 +0200
+++ livesupport-1.0-gentoo/modules/alib/etc/Makefile.in 2005-09-21 11:55:23.000000000 +0200
@@ -59,7 +59,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/archiveServer/etc/Makefile.in livesupport-1.0-gentoo/modules/archiveServer/etc/Makefile.in
--- livesupport-1.0/modules/archiveServer/etc/Makefile.in 2005-08-01 21:25:59.000000000 +0200
+++ livesupport-1.0-gentoo/modules/archiveServer/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -62,7 +62,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/authentication/etc/Makefile.in livesupport-1.0-gentoo/modules/authentication/etc/Makefile.in
--- livesupport-1.0/modules/authentication/etc/Makefile.in 2005-08-01 21:25:59.000000000 +0200
+++ livesupport-1.0-gentoo/modules/authentication/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -50,7 +50,9 @@
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/core/etc/Makefile.in livesupport-1.0-gentoo/modules/core/etc/Makefile.in
--- livesupport-1.0/modules/core/etc/Makefile.in 2005-09-21 11:57:28.000000000 +0200
+++ livesupport-1.0-gentoo/modules/core/etc/Makefile.in 2005-09-21 11:55:38.000000000 +0200
@@ -53,7 +53,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_BIN_DIR = ${USR_DIR}/bin
USR_LIB_DIR = ${USR_DIR}/lib
diff -Naur livesupport-1.0/modules/db/etc/Makefile.in livesupport-1.0-gentoo/modules/db/etc/Makefile.in
--- livesupport-1.0/modules/db/etc/Makefile.in 2005-08-01 21:25:59.000000000 +0200
+++ livesupport-1.0-gentoo/modules/db/etc/Makefile.in 2005-09-21 11:55:10.000000000 +0200
@@ -51,7 +51,9 @@
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/eventScheduler/etc/Makefile.in livesupport-1.0-gentoo/modules/eventScheduler/etc/Makefile.in
--- livesupport-1.0/modules/eventScheduler/etc/Makefile.in 2005-08-08 13:57:53.000000000 +0200
+++ livesupport-1.0-gentoo/modules/eventScheduler/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -50,7 +50,9 @@
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/getid3/etc/Makefile.in livesupport-1.0-gentoo/modules/getid3/etc/Makefile.in
--- livesupport-1.0/modules/getid3/etc/Makefile.in 2005-08-01 21:25:59.000000000 +0200
+++ livesupport-1.0-gentoo/modules/getid3/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -60,7 +60,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/htmlUI/etc/Makefile.in livesupport-1.0-gentoo/modules/htmlUI/etc/Makefile.in
--- livesupport-1.0/modules/htmlUI/etc/Makefile.in 2005-08-10 00:03:11.000000000 +0200
+++ livesupport-1.0-gentoo/modules/htmlUI/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -61,7 +61,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/playlistExecutor/etc/Makefile.in livesupport-1.0-gentoo/modules/playlistExecutor/etc/Makefile.in
--- livesupport-1.0/modules/playlistExecutor/etc/Makefile.in 2005-09-21 11:57:28.000000000 +0200
+++ livesupport-1.0-gentoo/modules/playlistExecutor/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -53,7 +53,9 @@
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/schedulerClient/etc/Makefile.in livesupport-1.0-gentoo/modules/schedulerClient/etc/Makefile.in
--- livesupport-1.0/modules/schedulerClient/etc/Makefile.in 2005-09-21 11:57:29.000000000 +0200
+++ livesupport-1.0-gentoo/modules/schedulerClient/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -50,7 +50,9 @@
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/storage/etc/Makefile.in livesupport-1.0-gentoo/modules/storage/etc/Makefile.in
--- livesupport-1.0/modules/storage/etc/Makefile.in 2005-09-21 11:57:29.000000000 +0200
+++ livesupport-1.0-gentoo/modules/storage/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -50,7 +50,9 @@
SRC_DIR = ${BASE_DIR}/src
TMP_DIR = ${BASE_DIR}/tmp
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
BOOST_INCLUDE_DIR = ${USR_INCLUDE_DIR}/boost-1_33_1
diff -Naur livesupport-1.0/modules/storageAdmin/etc/Makefile.in livesupport-1.0-gentoo/modules/storageAdmin/etc/Makefile.in
--- livesupport-1.0/modules/storageAdmin/etc/Makefile.in 2005-08-11 02:41:22.000000000 +0200
+++ livesupport-1.0-gentoo/modules/storageAdmin/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -64,7 +64,9 @@
VAR_DIR = ${BASE_DIR}/var
BIN_DIR = ${BASE_DIR}/bin
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/storageServer/etc/Makefile.in livesupport-1.0-gentoo/modules/storageServer/etc/Makefile.in
--- livesupport-1.0/modules/storageServer/etc/Makefile.in 2005-08-16 14:45:00.000000000 +0200
+++ livesupport-1.0-gentoo/modules/storageServer/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -64,7 +64,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_LIB_DIR = ${USR_DIR}/lib
USR_VAR_DIR = ${USR_DIR}/var
diff -Naur livesupport-1.0/modules/widgets/etc/Makefile.in livesupport-1.0-gentoo/modules/widgets/etc/Makefile.in
--- livesupport-1.0/modules/widgets/etc/Makefile.in 2005-08-08 13:57:53.000000000 +0200
+++ livesupport-1.0-gentoo/modules/widgets/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -53,7 +53,9 @@
TMP_DIR = ${BASE_DIR}/tmp
VAR_DIR = ${BASE_DIR}/var
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_INCLUDE_DIR = ${USR_DIR}/include
USR_BIN_DIR = ${USR_DIR}/bin
USR_LIB_DIR = ${USR_DIR}/lib
diff -Naur livesupport-1.0/products/gLiveSupport/etc/Makefile.in livesupport-1.0-gentoo/products/gLiveSupport/etc/Makefile.in
--- livesupport-1.0/products/gLiveSupport/etc/Makefile.in 2005-09-21 11:57:29.000000000 +0200
+++ livesupport-1.0-gentoo/products/gLiveSupport/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -58,7 +58,9 @@
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_BIN_DIR = ${USR_DIR}/bin
USR_ETC_DIR = ${USR_DIR}/etc
USR_INCLUDE_DIR = ${USR_DIR}/include
diff -Naur livesupport-1.0/products/scheduler/etc/Makefile.in livesupport-1.0-gentoo/products/scheduler/etc/Makefile.in
--- livesupport-1.0/products/scheduler/etc/Makefile.in 2005-09-21 11:57:29.000000000 +0200
+++ livesupport-1.0-gentoo/products/scheduler/etc/Makefile.in 2005-09-21 11:56:57.000000000 +0200
@@ -56,7 +56,9 @@
REAL_BASE_DIR=$(shell cd ${BASE_DIR}; pwd)
-USR_DIR = @prefix@
+prefix = @prefix@
+
+USR_DIR = ${prefix}
USR_BIN_DIR = ${USR_DIR}/bin
USR_ETC_DIR = ${USR_DIR}/etc
USR_INCLUDE_DIR = ${USR_DIR}/include

View file

@ -1,40 +0,0 @@
--- livesupport-1.0/etc/Makefile.in 2005-08-25 13:09:41.000000000 +0200
+++ livesupport-1.0-gentoo/etc/Makefile.in 2005-09-21 13:26:08.000000000 +0200
@@ -54,7 +54,10 @@
USR_DIR = ${prefix}
USR_BIN_DIR = ${USR_DIR}/bin
+USR_DOC_DIR = ${USR_DIR}/doc
USR_ETC_DIR = ${USR_DIR}/etc
+USR_LIB_DIR = ${USR_DIR}/lib
+USR_VAR_DIR = ${USR_DIR}/var
HOSTNAME = @HOSTNAME@
APACHE_GROUP = @APACHE_GROUP@
@@ -426,9 +430,10 @@
#-------------------------------------------------------------------------------
# Installation related targets
#-------------------------------------------------------------------------------
-.PHONY: install create_database install_modules install_products
+.PHONY: install create_database setup_install_dirs
+.PHONY: install_modules install_products
-install: setup compile create_database install_modules install_products
+install: setup compile setup_install_dirs create_database install_modules install_products
${MKDIR} ${USR_ETC_DIR}/apache
${CP} ${ETC_DIR}/apache/*.conf ${USR_ETC_DIR}/apache
${MKDIR} ${USR_BIN_DIR}
@@ -444,6 +449,13 @@
--dbpassword=${DB_PASSWORD}
endif
+setup_install_dirs:
+ ${MKDIR} ${USR_BIN_DIR}
+ ${MKDIR} ${USR_DOC_DIR}
+ ${MKDIR} ${USR_ETC_DIR}
+ ${MKDIR} ${USR_LIB_DIR}
+ ${MKDIR} ${USR_VAR_DIR}
+
install_modules:
${MAKE} -C ${ALIB_DIR} install
${MAKE} -C ${ARCHIVE_SERVER_DIR} install

View file

@ -1,10 +0,0 @@
--- livesupport-1.0/etc/Makefile.in 2005-08-25 13:09:41.000000000 +0200
+++ livesupport-1.0-gentoo/etc/Makefile.in 2005-09-21 13:08:47.000000000 +0200
@@ -314,6 +314,7 @@
./configure --prefix=${prefix} \
--with-apache-group=${APACHE_GROUP} \
--with-hostname=${HOSTNAME} \
+ --with-www-docroot=${WWW_DOCROOT} \
--with-www-port=${WWW_PORT} \
--with-scheduler-port=${SCHEDULER_PORT} \
--with-database-server=${DB_SERVER} \

File diff suppressed because it is too large Load diff

View file

@ -1,101 +0,0 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils flag-o-matic
IUSE=""
DESCRIPTION="Campcaster is a radio broadcast support tool."
HOMEPAGE="http://campcaster.sourcefabric.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
RESTRICT="maketest"
DEPEND=">=dev-db/unixODBC-2.2
media-libs/fontconfig
>=media-libs/libpng-1.2
media-libs/jpeg
dev-libs/openssl
dev-libs/libxml2
dev-libs/popt
media-libs/alsa-lib
media-libs/libid3tag
media-libs/libmad
media-libs/libogg
media-libs/libvorbis
>=dev-libs/boost-0.31
sys-apps/sed
net-www/apache
dev-lang/php
>=dev-php/PEAR-PEAR-1.3.5
>=dev-php/PEAR-Archive_Tar-1.3.1
>=dev-php/PEAR-Calendar-0.5.2
>=dev-php/PEAR-Console_Getopt-1.2
>=dev-php/PEAR-DB-1.7.6
>=dev-php/PEAR-File-1.2.0
>=dev-php/PEAR-File_Find-0.3.1
>=dev-php/PEAR-HTML_Common-1.2.1-r1
>=dev-php/PEAR-HTML_QuickForm-3.2.4
>=dev-php/PEAR-XML_Beautifier-1.1
>=dev-php/PEAR-XML_Parser-1.2.6
>=dev-php/PEAR-XML_RPC-1.4.0
>=dev-php/PEAR-XML_Serializer-0.15
>=dev-php/PEAR-XML_Util-1.1.1
>=dev-db/postgresql-7.4
>=x11-libs/gtk+-2.6.1
>=dev-cpp/gtkmm-2.5.5
>=net-misc/curl-7.13.2
>=dev-cpp/libxmlpp-2.8.1
=dev-db/libodbc++-0.2.3-r2
=dev-libs/xmlrpc++-0.7
=media-libs/taglib-1.3.1-r3
src_unpack() {
unpack ${A}
cd ${S}
# these patches are committed to the source as of 2005-09-23
epatch ${FILESDIR}/taglib-curl-icu.patch
epatch ${FILESDIR}/prefix-as-make-variable.patch
epatch ${FILESDIR}/storageServer-docroot.patch
epatch ${FILESDIR}/setup-install-dirs.patch
epatch ${FILESDIR}/pg_hba.patch
# this patch not committed
epatch ${FILESDIR}/postinstall-config-file.patch
# toch the tools make stamp, so that tools don't get built
touch tmp/tools_setup.stamp
}
src_compile() {
# append -g, otherwise we get 'defined in discared section' linkage errors
append-flags -g
econf --with-create-database=no \
--with-create-odbc-data-source=no \
--with-init-database=no \
--with-configure-apache=no \
--with-apache-group=apache \
--with-www-docroot=${D}/var/www/localhost/htdocs \
|| die "configure failed"
emake -j1 || die "make failed"
}
src_install() {
# to make sure the link from the docroot works
mkdir -p ${D}/var/www/localhost/htdocs
emake -j1 prefix=${D}/usr install || die "install failed"
dodoc doc INSTALL README
}
pkg_postinst() {
/usr/bin/postInstallStation.sh --directory /usr \
--www-root /var/www/localhost/htdocs \
--apache-group apache
}