aboutsummaryrefslogtreecommitdiffstats
path: root/main/phpldapadmin
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-08-03 12:48:00 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-08-03 12:48:18 +0000
commit088e78c83b06c42369b32bbcb5d70d4f4018e640 (patch)
tree5cca279afa9916871c871d6f1b9a001f152aaa30 /main/phpldapadmin
parent64be7f42d758c9faf8fdf09c1ef83bcbdb997901 (diff)
downloadaports-088e78c83b06c42369b32bbcb5d70d4f4018e640.tar.bz2
aports-088e78c83b06c42369b32bbcb5d70d4f4018e640.tar.xz
main/phpldapadmin: additional template for User Groups
Diffstat (limited to 'main/phpldapadmin')
-rw-r--r--main/phpldapadmin/APKBUILD10
-rw-r--r--main/phpldapadmin/phpldapadmin.additional-template41
2 files changed, 48 insertions, 3 deletions
diff --git a/main/phpldapadmin/APKBUILD b/main/phpldapadmin/APKBUILD
index f2889f2ef3..f782e68668 100644
--- a/main/phpldapadmin/APKBUILD
+++ b/main/phpldapadmin/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=phpldapadmin
pkgver=1.2.2
-pkgrel=0
+pkgrel=1
pkgdesc="Web front-end for managing OpenLDAP"
url="http://phpldapadmin.sourceforge.net"
arch="noarch"
@@ -11,7 +11,8 @@ depends_dev=
makedepends="$depends_dev"
install=
subpackages=
-source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-php5/$pkgver/$pkgname-$pkgver.tgz"
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-php5/$pkgver/$pkgname-$pkgver.tgz
+ $pkgname.additional-template"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -32,6 +33,9 @@ package() {
mv * "$pkgdir"/usr/share/webapps/phpldapadmin
mv "$pkgdir"/usr/share/webapps/phpldapadmin/config "$pkgdir"/etc/phpldapadmin
ln -s /etc/phpldapadmin "$pkgdir"/usr/share/webapps/phpldapadmin/config || exit 1
+ install -Dm644 ../$pkgname.additional-template \
+ "$pkgdir"/usr/share/webapps/phpldapadmin/templates/creation/groupOfNames.xml || exit 1
}
-md5sums="78ca61eb5d7913963f8e42eb3b4f0e95 phpldapadmin-1.2.2.tgz"
+md5sums="78ca61eb5d7913963f8e42eb3b4f0e95 phpldapadmin-1.2.2.tgz
+3ca4fbf9e16f192b441b51b2d25ecf14 phpldapadmin.additional-template"
diff --git a/main/phpldapadmin/phpldapadmin.additional-template b/main/phpldapadmin/phpldapadmin.additional-template
new file mode 100644
index 0000000000..1a1b3a8f50
--- /dev/null
+++ b/main/phpldapadmin/phpldapadmin.additional-template
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE template SYSTEM "template.dtd">
+<template>
+<title>User Group</title>
+<!-- <regexp>^ou=.*,</regexp> -->
+<icon>images/ou.png</icon>
+<description>New groupOfNames</description>
+<askcontainer>1</askcontainer>
+<rdn>cn</rdn>
+<visible>1</visible>
+
+<objectClasses>
+<objectClass id="groupOfNames"></objectClass>
+</objectClasses>
+
+<attributes>
+<attribute id="cn">
+ <display>Group</display>
+ <order>1</order>
+ <page>1</page>
+</attribute>
+<attribute id="member">
+ <display>member</display>
+ <hint></hint>
+ <order>2</order>
+ <page>1</page>
+ <spacer>1</spacer>
+</attribute>
+<attribute id="memberUid">
+ <array>10</array>
+ <display>Users</display>
+ <helper>
+ <location>side</location>
+<!-- <value>=php.DrawChooserLink(memberUid,0)</value> -->
+ </helper>
+ <hidden>0</hidden>
+ <order>3</order>
+ <page>1</page>
+</attribute>
+</attributes>
+</template>