mirror of
https://github.com/archlinux/aur.git
synced 2026-03-02 00:05:22 +01:00
Initial import
This commit is contained in:
commit
e0f9c78ce4
3 changed files with 66 additions and 0 deletions
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pkgbase = fusiondirectory-plugin-openstack-compute-schema
|
||||
pkgdesc = LDAP schema for FusionDirectory openstack-compute plugin
|
||||
pkgver = 1.0.8.8
|
||||
pkgrel = 1
|
||||
url = http://fusiondirectory.org/
|
||||
install = fusiondirectory-plugin-openstack-compute.install
|
||||
arch = any
|
||||
license = LGPL
|
||||
depends = -schema
|
||||
source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-1.0.8.8.tar.gz
|
||||
source = http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-1.0.8.8.tar.gz
|
||||
md5sums = 7ea8890ffbdf05ef4f6478ab1c49afea
|
||||
md5sums = e169b4ca7ac809a6b939ed06d81c0f2a
|
||||
|
||||
pkgname = fusiondirectory-plugin-openstack-compute-schema
|
||||
|
||||
42
PKGBUILD
Normal file
42
PKGBUILD
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
pkgname=fusiondirectory-plugin-openstack-compute-schema
|
||||
pkgver=1.0.8.8
|
||||
pkgver=1.0.8.8
|
||||
pkgrel=1
|
||||
pkgdesc="LDAP schema for FusionDirectory openstack-compute plugin"
|
||||
arch=('any')
|
||||
url="http://fusiondirectory.org/"
|
||||
license=('LGPL')
|
||||
|
||||
depends=('-schema')
|
||||
|
||||
install=fusiondirectory-plugin-openstack-compute.install
|
||||
source=("http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-plugins-${pkgver}.tar.gz"
|
||||
"http://repos.fusiondirectory.org/sources/1.0/fusiondirectory/fusiondirectory-${pkgver}.tar.gz")
|
||||
md5sums=('7ea8890ffbdf05ef4f6478ab1c49afea'
|
||||
'e169b4ca7ac809a6b939ed06d81c0f2a')
|
||||
|
||||
package() {
|
||||
cd ./fusiondirectory-plugins-${pkgver}
|
||||
# Go in plugin directory
|
||||
cd openstack-compute/
|
||||
|
||||
# Openldap section
|
||||
if [ -d ./contrib/openldap ] ; then
|
||||
mkdir -p ${pkgdir}/etc/openldap/schema/fusiondirectory/
|
||||
mkdir -p ${pkgdir}/usr/share/doc/fusiondirectory-plugin-openstack-compute-schema/
|
||||
cp ../../fusiondirectory-${pkgver}/{AUTHORS,Changelog,COPYING} ${pkgdir}/usr/share/doc/fusiondirectory-plugin-openstack-compute-schema/
|
||||
|
||||
# Directories
|
||||
for cur_openldap in $(find ./contrib/openldap -mindepth 1 -maxdepth 1 -type d) ; do
|
||||
openldap_line="$(echo ${cur_openldap} | sed "s#./contrib/openldap/##")"
|
||||
cp -a ./contrib/openldap/${openldap_line} ${pkgdir}/etc/openldap/schema/fusiondirectory/
|
||||
done
|
||||
|
||||
# Files
|
||||
for cur_openldap in $(find ./contrib/openldap -mindepth 1 -maxdepth 1 -type f ! -name 'example.ldif' ) ; do
|
||||
openldap_line="$(echo ${cur_openldap} | sed "s#./contrib/openldap/##")"
|
||||
cp -a ./contrib/openldap/${openldap_line} ${pkgdir}/etc/openldap/schema/fusiondirectory/
|
||||
done
|
||||
fi
|
||||
|
||||
}
|
||||
8
fusiondirectory-plugin-openstack-compute.install
Normal file
8
fusiondirectory-plugin-openstack-compute.install
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
post_install() {
|
||||
fusiondirectory-setup --update-cache --update-locales
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
fusiondirectory-setup --update-cache --update-locales
|
||||
}
|
||||
|
||||
Loading…
Add table
Reference in a new issue