1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-12-21 14:08:48 -05:00

Add php-pear and daloradius

This commit is contained in:
Travis Burtrum 2020-07-19 22:54:01 -04:00
parent d8c21f4995
commit 17846d46ea
3 changed files with 87 additions and 0 deletions

57
src/daloradius/PKGBUILD Normal file
View File

@ -0,0 +1,57 @@
# Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
### Please ask support questions about this software in one of:
### 1) The AUR comments; OR
### 2) Upstream forums/maillist etc; OR
### 3) The ArchLinux forums
### I do not always know enough about the software itself, or don't have the
### time to promptly respond to direct emails.
### If you have found a problem with the package/PKGBUILD (as opposed to
### the software) then please do email me or post an AUR comment.
pkgname=daloradius
pkgver=1.1.2
_pkgver=1.1-2
pkgrel=1
pkgdesc="An advanced RADIUS web platform aimed at managing Hotspots and general-purpose ISP deployments."
arch=('any')
url="http://daloradius.com/"
# php-pear is required to install the php 'db' module
depends=('php-pear')
install="$pkgname.install"
license=('GPLv2')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$_pkgver.zip")
md5sums=('799213d53fb000ffff16de4d932b848b')
package() {
_INST_DIR="usr/share/webapps/$pkgname"
_CONF_DIR="etc/webapps/$pkgname"
_DOCS_DIR="usr/share/$pkgname"
# Install webroot files
install -dm755 "$pkgdir"/$_INST_DIR
cp -r "$srcdir"/$pkgname/* "$pkgdir"/$_INST_DIR
# Configuration files
mkdir -p "$pkgdir"/$_CONF_DIR
mv "$pkgdir"/$_INST_DIR/library/daloradius.conf.php.sample "$pkgdir"/$_CONF_DIR/
mv "$pkgdir"/$_INST_DIR/library/daloradius.conf.php "$pkgdir"/$_CONF_DIR/
ln -sf /$_CONF_DIR/daloradius.conf.php "$pkgdir"/$_INST_DIR/library/daloradius.conf.php
# Docs
install -dm0755 "$pkgdir"/$_DOCS_DIR/
for x in README.md LICENSE FAQS INSTALL INSTALL.quick ; do
mv "$pkgdir"/$_INST_DIR/$x "$pkgdir"/$_DOCS_DIR/
done
# Fix permissions
chown -R 33:33 "$pkgdir"/$_INST_DIR
chmod -R u=rwX,g=rX,o= "$pkgdir"/$_INST_DIR
chown -R 33:33 "$pkgdir"/$_CONF_DIR
chmod -R u=rwX,g=rX,o= "$pkgdir"/$_CONF_DIR
chown -R 0:0 "$pkgdir"/$_DOCS_DIR
chmod -R a=rX "$pkgdir"/$_DOCS_DIR
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,4 @@
post_install() {
echo "==> Installing the PHP 'db' module using pear"
pear install db
}

26
src/php-pear/PKGBUILD Normal file
View File

@ -0,0 +1,26 @@
# Maintainer: Amish <contact at via dot aur>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=php-pear
epoch=1
pkgver=1.10.19
pkgrel=2
arch=('any')
pkgdesc='PHP Extension and Application Repository'
url='https://pear.php.net/package/pearweb_phars/'
depends=('php')
license=('PHP')
source=("install-pear-nozlib-${pkgver}.phar::https://github.com/pear/pearweb_phars/raw/v${pkgver}/install-pear-nozlib.phar")
# "install-pear-nozlib-${pkgver}.phar.sig::https://github.com/pear/pearweb_phars/raw/v${pkgver}/install-pear-nozlib.sig")
backup=('etc/php/pear.conf')
sha256sums=('4cb4704e956b78b24332ab22fd0cb4c99d5574445a858a7d64731f00a90a28ba')
#validpgpkeys=('10F68CF73F8AA426F617752972A321BAC245F175')
package() {
PHP_PEAR_SYSCONF_DIR=/etc/php \
INSTALL_ROOT="${pkgdir}" \
php -n "install-pear-nozlib-${pkgver}.phar" \
-d /usr/share/pear \
-b /usr/bin
rm -rf "${pkgdir}"{/usr/share/pear/,/}.{channels,depdb,depdblock,filemap,lock,registry}
}