Date: Monday, July 29, 2013 @ 14:18:09 Author: spupykin Revision: 94717
archrelease: copy trunk to community-any Added: phpvirtualbox/repos/community-any/PKGBUILD (from rev 94716, phpvirtualbox/trunk/PKGBUILD) Deleted: phpvirtualbox/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2013-07-29 12:17:55 UTC (rev 94716) +++ PKGBUILD 2013-07-29 12:18:09 UTC (rev 94717) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupyki...@gmail.com> -# Contributor:Techlive Zheng <techlivezheng at gmail dot com> - -pkgname=phpvirtualbox -pkgver=4.2_5 -pkgrel=1 -pkgdesc="PHP/AJAX web interface for VirtualBox 4.*" -arch=(any) -url="http://code.google.com/p/phpvirtualbox/" -license=('GPL') -depends=('php') -backup=("etc/webapps/phpvirtualbox/.htaccess" - "etc/webapps/phpvirtualbox/config.php") -source=(http://phpvirtualbox.googlecode.com/files/${pkgname}-${pkgver/_/-}.zip) -md5sums=('5e1388e8c1673c8baa549b70bc6f6392') - -build() { - true -} - -package() { - cd ${srcdir}/${pkgname}-${pkgver/_/-} - - mkdir -p ${pkgdir}/etc/webapps/phpvirtualbox - - install -D -m644 config.php-example ${pkgdir}/etc/webapps/phpvirtualbox/config.php - -# sed -e "s/var \\\$username = 'vbox';/var \\\$username = '';/g" \ -# -e "s/var \\\$password = 'pass';/var \\\$password = '';/g" \ -# -e "s/#var \\\$noAuth = true;/var \\\$noAuth = true;/g" \ -# -i ${pkgdir}/etc/webapps/phpvirtualbox/config.php - - # Apache configuration - cat > ${pkgdir}/etc/webapps/phpvirtualbox/apache.example.conf <<EOF - Alias /phpvirtualbox "/usr/share/webapps/phpvirtualbox" - <Directory "/usr/share/webapps/phpvirtualbox"> - Options FollowSymlinks - AllowOverride All - Order allow,deny - Allow from all - </Directory> -EOF - - # Deny access by default - echo "deny from all" >> ${pkgdir}/etc/webapps/phpvirtualbox/.htaccess - - find . -type f -exec install -D -m644 {,${pkgdir}/usr/share/webapps/${pkgname}/}{} \; - - ln -s /etc/webapps/phpvirtualbox/.htaccess ${pkgdir}/usr/share/webapps/phpvirtualbox/.htaccess - ln -s /etc/webapps/phpvirtualbox/config.php ${pkgdir}/usr/share/webapps/phpvirtualbox/config.php -} Copied: phpvirtualbox/repos/community-any/PKGBUILD (from rev 94716, phpvirtualbox/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2013-07-29 12:18:09 UTC (rev 94717) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupyki...@gmail.com> +# Contributor:Techlive Zheng <techlivezheng at gmail dot com> + +pkgname=phpvirtualbox +pkgver=4.2_6 +pkgrel=1 +pkgdesc="PHP/AJAX web interface for VirtualBox 4.*" +arch=(any) +url="http://sourceforge.net/projects/phpvirtualbox/" +license=('GPL') +depends=('php') +backup=("etc/webapps/phpvirtualbox/.htaccess" + "etc/webapps/phpvirtualbox/config.php") +source=(http://downloads.sourceforge.net/project/phpvirtualbox/phpvirtualbox-${pkgver/_/-}.zip) +md5sums=('1e517456ac7b8c0d332f90943777b1c0') + +build() { + true +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver/_/-} + + mkdir -p ${pkgdir}/etc/webapps/phpvirtualbox + + install -D -m644 config.php-example ${pkgdir}/etc/webapps/phpvirtualbox/config.php + +# sed -e "s/var \\\$username = 'vbox';/var \\\$username = '';/g" \ +# -e "s/var \\\$password = 'pass';/var \\\$password = '';/g" \ +# -e "s/#var \\\$noAuth = true;/var \\\$noAuth = true;/g" \ +# -i ${pkgdir}/etc/webapps/phpvirtualbox/config.php + + # Apache configuration + cat > ${pkgdir}/etc/webapps/phpvirtualbox/apache.example.conf <<EOF + Alias /phpvirtualbox "/usr/share/webapps/phpvirtualbox" + <Directory "/usr/share/webapps/phpvirtualbox"> + Options FollowSymlinks + AllowOverride All + Order allow,deny + Allow from all + </Directory> +EOF + + # Deny access by default + echo "deny from all" >> ${pkgdir}/etc/webapps/phpvirtualbox/.htaccess + + find . -type f -exec install -D -m644 {,${pkgdir}/usr/share/webapps/${pkgname}/}{} \; + + ln -s /etc/webapps/phpvirtualbox/.htaccess ${pkgdir}/usr/share/webapps/phpvirtualbox/.htaccess + ln -s /etc/webapps/phpvirtualbox/config.php ${pkgdir}/usr/share/webapps/phpvirtualbox/config.php +}