diff options
author | TheLoko | 2016-02-10 14:08:57 +0100 |
---|---|---|
committer | TheLoko | 2016-02-10 14:08:57 +0100 |
commit | 93f83f7d5e3a7a4b4dd16a164d7b6ff954631949 (patch) | |
tree | 3078f805e1c64697b0952d8517890b3d8312870d | |
download | aur-93f83f7d5e3a7a4b4dd16a164d7b6ff954631949.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 17 | ||||
-rwxr-xr-x | PKGBUILD | 36 | ||||
-rw-r--r-- | xampp.install | 23 |
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7674d912f1b1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Wed Feb 10 13:08:39 UTC 2016 +pkgbase = xampp + pkgdesc = A free and open source cross-platform web server package (LAMP Stack), consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages + pkgver = 5.6.15 + pkgrel = 1 + url = http://www.apachefriends.org/ + install = xampp.install + arch = i686 + arch = x86_64 + license = GPL + makedepends = proot-bin + depends = net-tools + options = !strip + +pkgname = xampp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..6de105015981 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Mantainer: Julio González <juliolokoo at gmail dot com> +# Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com> +# Contributor: Thiago Perrotta <echo dGhpYWdvcGVycm90dGE5NUBnbWFpbC5jb20K | base64 -d > +pkgname=xampp +pkgver=5.6.15 +pkgrel=1 +pkgdesc="A free and open source cross-platform web server package (LAMP Stack), consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages" +url="http://www.apachefriends.org/" +license=('GPL') +arch=('i686' 'x86_64') +depends=('net-tools') +makedepends=('proot-bin') +[ "$CARCH" = "i686" ] && source=("xampp-installer"::"https://www.apachefriends.org/xampp-files/${pkgver}/${pkgname}-linux-${pkgver}-1-installer.run") +[ "$CARCH" = "x86_64" ] && source=("xampp-installer"::"https://www.apachefriends.org/xampp-files/${pkgver}/${pkgname}-linux-x64-${pkgver}-1-installer.run") +options=(!strip) +install=xampp.install +[ "$CARCH" = "i686" ] && md5sums=('23ab874b81cc1db6cf33e5d87e64ee35') +[ "$CARCH" = "x86_64" ] && md5sums=('15a591f524051c1fdeefff5a1689dd74') + +package() { + install -dm755 "${pkgdir}/opt/lampp" + + msg "Extracting package to a chroot..." + chmod +x "${srcdir}/xampp-installer" + echo "Y" | proot -b "${pkgdir}/opt/lampp:/opt/lampp" "${srcdir}/xampp-installer" --mode text + chmod g-s -R "${pkgdir}"/opt/lampp + + # licenses + install -dm755 "${pkgdir}"/usr/share/licenses/xampp + cp "${pkgdir}"/opt/lampp/licenses/* "${pkgdir}"/usr/share/licenses/xampp + + # /usr/bin executables + install -dm755 "${pkgdir}"/usr/bin + ln -sf /opt/lampp/lampp "${pkgdir}"/usr/bin/xampp + ln -sf /opt/lampp/lampp "${pkgdir}"/usr/bin/lampp +} diff --git a/xampp.install b/xampp.install new file mode 100644 index 000000000000..d4a156a28a72 --- /dev/null +++ b/xampp.install @@ -0,0 +1,23 @@ +post_install() { + echo "XAMPP is now installed below the /opt/lampp directory" + echo "To start, stop or restart XAMPP simply call the command:" + echo " lampp {start, stop, restart} or xampp {start, stop, restart}" + echo "Then you can check that everything really works, Just enter the following URL at your web browser:" + echo " http://localhost" +} + +pre_upgrade() { + /opt/lampp/lampp stop >/dev/null 2>&1 + } + + +pre_remove() { + echo "Stopping lampp services" + /opt/lampp/lampp stop >/dev/null 2>&1 + cp -r /opt/lampp/htdocs /opt/lampp/htdocs_backup + echo "Your htdocs folder were backed up to /opt/lampp/htdocs_backup" +} + +post_remove() { + rm -rf /opt/lampp/{etc,var} +} |