bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2911 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
20
www-apps/openid-ldap/files/metadot.conf
Normal file
20
www-apps/openid-ldap/files/metadot.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
<VirtualHost VHOST:80>
|
||||
DocumentRoot "ROOTDIR/html"
|
||||
|
||||
<Directory "ROOTDIR/html">
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Directory>
|
||||
|
||||
Alias /images/ ROOTDIR/html/images/
|
||||
Alias /js/ ROOTDIR/html/js/
|
||||
Alias /metadot/ ROOTDIR/metadot/
|
||||
Alias /public/ ROOTDIR/sitedata/public/
|
||||
Alias /skins/ ROOTDIR/sitedata/skins/
|
||||
|
||||
<Location "/metadot">
|
||||
SetHandler perl-script
|
||||
PerlHandler Apache::Registry
|
||||
Options +ExecCGI
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
34
www-apps/openid-ldap/files/postinstall-en-6.4_p3.txt
Normal file
34
www-apps/openid-ldap/files/postinstall-en-6.4_p3.txt
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
1. Set up your database:
|
||||
cd ${MY_INSTALLDIR}/default_data
|
||||
If using MySQL-3*: mysql -uroot -p mysql < createdbanduser.sql
|
||||
If using MySQL-4*: mysql -uroot -p mysql < createdbanduser4x.sql
|
||||
|
||||
Then change the default password:
|
||||
mysql -uroot -p mysql
|
||||
mysql> update user set password = password('<newpassword>') where user = 'metadot';
|
||||
mysql> flush privileges;
|
||||
mysql> quit
|
||||
|
||||
Now,
|
||||
mysql -umetadot -p<newpassword> metadotdb < sampledata.sql
|
||||
|
||||
2. Edit the Metadot configuration file:
|
||||
edit ${MY_INSTALLDIR}/etc/metadot.conf
|
||||
Set your database password from step 1.
|
||||
Read the online docs! Especially if you want to use virtual servers.
|
||||
|
||||
3. Configure Apache:
|
||||
The ebuild installed an Apache configfile: ${VHOST_ROOT}/${PN}.conf
|
||||
Copy it into /etc/{apache,apache2}/vhosts.d and edit it to
|
||||
suit your needs.
|
||||
|
||||
4. Configure cronjobs.
|
||||
Read the relevant section in the docs, and be sure to specify the right paths.
|
||||
HINT: /home/metadot is not used, everything is in ${MY_INSTALLDIR}
|
||||
|
||||
5. Now go to http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/index.pl
|
||||
Hopefully everything worked. Now go read the docs and set up your Metadot, and
|
||||
change the default Admin password.
|
||||
|
||||
Don't forget to read the online docs!!!
|
||||
18
www-apps/openid-ldap/files/reconfig-6.4_p3
Normal file
18
www-apps/openid-ldap/files/reconfig-6.4_p3
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
die() {
|
||||
echo "#####"
|
||||
echo $1
|
||||
echo "#####"
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ $1 = "install" ]; then
|
||||
sed -e "s|/home/metadot/metadot|${MY_INSTALLDIR}|g" -i ${MY_INSTALLDIR}/etc/metadot.conf || die
|
||||
# fix Apache configs
|
||||
sed -e "s|ROOTDIR|${MY_INSTALLDIR}|g
|
||||
s|VHOST|${VHOST_HOSTNAME}|" -i ${VHOST_ROOT}/metadot.conf || die
|
||||
|
||||
elif [ $1 = "clean" ]; then
|
||||
echo $1
|
||||
fi
|
||||
Reference in New Issue
Block a user