|
From: Heiko Z. <smi...@us...> - 2008-06-05 14:38:58
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv30991/scripts Modified Files: ImageMagick php Added Files: memcached Log Message: - added memcached 1.2.5 - added php pecl modules Fileinfo-1.0.4 LZF-1.4 memcache-3.0.1 rar-1.0.0 zip-1.8.10 Index: ImageMagick =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/ImageMagick,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ImageMagick 20 Dec 2006 01:39:13 -0000 1.3 +++ ImageMagick 5 Jun 2008 14:38:51 -0000 1.4 @@ -30,6 +30,9 @@ ./configure --prefix=/usr --with-perl=/usr/bin/perl || exit 1 make $PMAKE all || exit 1 strip_debug + + # install it, so other programs can find it + make install || exit 1 fi ;; Index: php =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- php 30 Apr 2008 15:45:57 -0000 1.18 +++ php 5 Jun 2008 14:38:51 -0000 1.19 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: php -# Required-Start: $basebuildtools $libs httpd imap postfix +# Required-Start: $basebuildtools $libs httpd imap postfix ImageMagick # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -29,13 +29,32 @@ build ) IMAPDIR=$(find_src_dir imap) if [ "$CONFIG_PHP" = "y" ]; then + cd ext || exit 1 + rm -rf lzf &> /dev/null || exit 1 + + for FILE in $(ls $DL_DIR/src/pecl/*.tgz) + do + echo "unpacking PECL extension $FILE" + F=${FILE##*/} + DIRNAME=${F%*.tgz} + PACKAGENAME=${F%-*} + test -d $PACKAGENAME && rm -rf $PACKAGENAME + tar -xzf $FILE || exit 1 + mv $DIRNAME $PACKAGENAME || exit 1 + done + mv LZF lzf || exit 1 + + cd .. || exit 1 + rm configure || exit 1 + ./buildconf --force || exit 1 + ./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr --disable-cgi --with-openssl --with-zlib --with-bz2 --enable-calendar \ --with-jpeg-dir=/usr --enable-dba --with-gdbm --with-db4 --with-inifile --with-flatfile --with-dom --with-dom-xslt \ --with-config-file-path=/etc --with-dom-exslt --enable-ftp --with-gd --with-gmp \ --enable-gd-native-ttf --with-ldap --with-mcrypt --with-mhash --with-pgsql --with-snmp \ --with-imap=$IMAPDIR --with-imap-ssl --with-openssl --with-iconv \ --sysconfdir=/etc --with-config-file-path=/etc --prefix=/usr --with-gettext \ - --enable-mbstring || exit 1 + --enable-mbstring --enable-memcache --enable-lzf --enable-rar --enable-zip || exit 1 # # not working --enable-xslt --with-kerberos # do not use --with-cyrus --- NEW FILE: memcached --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/memcached,v $ # $Revision: 1.1 $ # $Date: 2008/06/05 14:38:51 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: memcached # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=MEMCACHED case $1 in build ) if [ "$CONFIG_MEMCACHED" = "y" ]; then ./configure --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --enable-threads || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_MEMCACHED" = "y" ]; then rm -rf $TMPDIR mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR copy_docs $TMPDIR rm $TMPDIR/usr/sbin/*debug || exit 1 cp -dvpR $TMPDIR/* $CDDIR || exit 1 rm -rf $TMPDIR || exit 1 useradd -u 107 -g nogroup -s /bin/false -c "memcache daemon" memcache cp -dp $MYDIR/scripts/memcached $ETCDIR/etc/init.d/ || exit 1 echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo "# How much memory should memcached use (in MB)?" >> $CONFIGFILE echo "MEMCACHED_MAXMEM=64" >> $CONFIGFILE echo "MEMCACHED_PARAMS=" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_$MYNAME=\"memcached is a high-performance, distributed memory object caching system\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |