diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-06-10 06:42:25 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-06-10 06:43:16 +0000 |
commit | 223c0cfb5a67c812a8ba2e51f447201fd1eeb385 (patch) | |
tree | 88e8bd95abb2f4802e897422c1aebd7d4949c233 /testing/lam | |
parent | 56e86f05b269b4b1fd81f58fd269d6eea4114594 (diff) | |
download | aports-223c0cfb5a67c812a8ba2e51f447201fd1eeb385.tar.bz2 aports-223c0cfb5a67c812a8ba2e51f447201fd1eeb385.tar.xz |
testing/lam: new aport
PHP webfrontend for managing various account types in an LDAP directory in an abstract way
Diffstat (limited to 'testing/lam')
-rw-r--r-- | testing/lam/APKBUILD | 51 | ||||
-rw-r--r-- | testing/lam/lam-change-config-file-location.patch | 11 | ||||
-rwxr-xr-x | testing/lam/lam.post-install | 7 | ||||
-rwxr-xr-x | testing/lam/lam.post-upgrade | 7 |
4 files changed, 76 insertions, 0 deletions
diff --git a/testing/lam/APKBUILD b/testing/lam/APKBUILD new file mode 100644 index 0000000000..f39f567bcc --- /dev/null +++ b/testing/lam/APKBUILD @@ -0,0 +1,51 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname="lam" +_realname="ldap-account-manager" +pkgver="4.2" +pkgrel=0 +pkgdesc="PHP webfrontend for managing various account types in an LDAP directory in an abstract way" +url="https://www.ldap-account-manager.org" +arch="noarch" +license="GPL2" +depends="php php-ldap php-gettext php-json php-xml php-mcrypt php-zip" +depends_dev= +makedepends="$depends_dev" +install="$pkgname.post-install $pkgname.post-upgrade" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$_realname-$pkgver.tar.gz + lam-change-config-file-location.patch + " + + +_builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$_builddir" + patch -p1 < ../lam-change-config-file-location.patch || exit 1 +} + +build() { + return 0 +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/etc/lam + mkdir -p "$pkgdir"/usr/share/webapps/lam + mkdir -p "$pkgdir"/usr/share/doc/lam + mv config/* "$pkgdir"/etc/lam + mv "$pkgdir"/etc/lam/config.cfg_sample "$pkgdir"/etc/lam/config.cfg + mv docs/* "$pkgdir"/usr/share/doc/lam + for file in COPYING VERSION HISTORY README + do + mv $file "$pkgdir"/usr/share/doc/lam + done + cp -r * "$pkgdir"/usr/share/webapps/lam +} + +md5sums="7a840a98c9aec2a9c21796f0491a6f21 ldap-account-manager-4.2.tar.gz +38394df494fbeb764368640b6d20fabd lam-change-config-file-location.patch" +sha256sums="992d05c3f05befdb2f36513e4674d67d1408a9249982a8526df4e710fc5c71e5 ldap-account-manager-4.2.tar.gz +ff47a3a4fa0f0eda8d1ee5ddbcd5d58d3a47eee10c924c478217c4d52ce3bceb lam-change-config-file-location.patch" +sha512sums="b0599578e58e801879128b511bcb0acd4c71a53d5134a13cf3397730042cc7d42adbdc6affa9be3dfdd20bc42ccfc27edc0ca64ec10cd80dfa91f5916af52ba8 ldap-account-manager-4.2.tar.gz +aa501ce1f60cc9a4a8c5b73d316cde647a9b1275c1e5f62f166beb999450ebaeefa9f8e3e31d2f1ae51c2de322e12c4c63743a522466c026f019b217b8ddb75e lam-change-config-file-location.patch" diff --git a/testing/lam/lam-change-config-file-location.patch b/testing/lam/lam-change-config-file-location.patch new file mode 100644 index 0000000000..0061538c85 --- /dev/null +++ b/testing/lam/lam-change-config-file-location.patch @@ -0,0 +1,11 @@ +--- a/lib/config.inc ++++ b/lib/config.inc +@@ -1386,7 +1386,7 @@ + * Loads preferences from config file + */ + function __construct() { +- $this->conffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/config.cfg"; ++ $this->conffile ="/etc/lam/config.cfg"; + // set default values + $this->sessionTimeout = 30; + $this->logLevel = LOG_NOTICE; diff --git a/testing/lam/lam.post-install b/testing/lam/lam.post-install new file mode 100755 index 0000000000..2f02bd25d5 --- /dev/null +++ b/testing/lam/lam.post-install @@ -0,0 +1,7 @@ +#!/bin/sh +echo "*" +echo "* Please give to the webserver user ownership permission to the following directories:" +echo "* /usr/share/webapps/lam/sess" +echo "* /usr/share/webapps/lam/tmp" +echo "* /etc/lam" +echo "*" diff --git a/testing/lam/lam.post-upgrade b/testing/lam/lam.post-upgrade new file mode 100755 index 0000000000..2f02bd25d5 --- /dev/null +++ b/testing/lam/lam.post-upgrade @@ -0,0 +1,7 @@ +#!/bin/sh +echo "*" +echo "* Please give to the webserver user ownership permission to the following directories:" +echo "* /usr/share/webapps/lam/sess" +echo "* /usr/share/webapps/lam/tmp" +echo "* /etc/lam" +echo "*" |