[vhffs-dev] [563] Integrated Alexandre Ghisoli autotools patch since it seems to be stable enough (misric will tell me if I'm wrong).

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 563
Author:   beuss
Date:     2007-04-15 22:37:14 +0000 (Sun, 15 Apr 2007)

Log Message:
-----------
Integrated Alexandre Ghisoli autotools patch since it seems to be stable enough (misric will tell me if I'm wrong).

Modified Paths:
--------------
    trunk/README
    trunk/vhffs-api/src/Vhffs/Acl.pm
    trunk/vhffs-api/src/Vhffs/Conf.pm
    trunk/vhffs-api/src/Vhffs/Constants.pm
    trunk/vhffs-api/src/Vhffs/DB.pm
    trunk/vhffs-api/src/Vhffs/Debug.pm
    trunk/vhffs-api/src/Vhffs/Functions.pm
    trunk/vhffs-api/src/Vhffs/Group.pm
    trunk/vhffs-api/src/Vhffs/Intl.pm
    trunk/vhffs-api/src/Vhffs/Listengine/Intl.pm
    trunk/vhffs-api/src/Vhffs/Listengine/Listengine.pm
    trunk/vhffs-api/src/Vhffs/Listengine/Mail.pm
    trunk/vhffs-api/src/Vhffs/Listengine/Panel.pm
    trunk/vhffs-api/src/Vhffs/Main.pm
    trunk/vhffs-api/src/Vhffs/Misc/Listengine.pm
    trunk/vhffs-api/src/Vhffs/Misc/Mailings.pm
    trunk/vhffs-api/src/Vhffs/Misc/Salt.pm
    trunk/vhffs-api/src/Vhffs/Note.pm
    trunk/vhffs-api/src/Vhffs/Object.pm
    trunk/vhffs-api/src/Vhffs/Panel/Admin.pm
    trunk/vhffs-api/src/Vhffs/Panel/Avatar.pm
    trunk/vhffs-api/src/Vhffs/Panel/Commons.pm
    trunk/vhffs-api/src/Vhffs/Panel/Confirmation.pm
    trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm
    trunk/vhffs-api/src/Vhffs/Panel/DNS.pm
    trunk/vhffs-api/src/Vhffs/Panel/Group.pm
    trunk/vhffs-api/src/Vhffs/Panel/Mail.pm
    trunk/vhffs-api/src/Vhffs/Panel/Mailinglist.pm
    trunk/vhffs-api/src/Vhffs/Panel/Main.pm
    trunk/vhffs-api/src/Vhffs/Panel/Menu.pm
    trunk/vhffs-api/src/Vhffs/Panel/Mysql.pm
    trunk/vhffs-api/src/Vhffs/Panel/Object.pm
    trunk/vhffs-api/src/Vhffs/Panel/Pgsql.pm
    trunk/vhffs-api/src/Vhffs/Panel/Repository.pm
    trunk/vhffs-api/src/Vhffs/Panel/Svn.pm
    trunk/vhffs-api/src/Vhffs/Panel/User.pm
    trunk/vhffs-api/src/Vhffs/Panel/Web.pm
    trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm
    trunk/vhffs-api/src/Vhffs/Robots/Group.pm
    trunk/vhffs-api/src/Vhffs/Robots/Mailing.pm
    trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm
    trunk/vhffs-api/src/Vhffs/Robots/Postgres.pm
    trunk/vhffs-api/src/Vhffs/Robots/Repository.pm
    trunk/vhffs-api/src/Vhffs/Robots/Svn.pm
    trunk/vhffs-api/src/Vhffs/Robots/User.pm
    trunk/vhffs-api/src/Vhffs/Robots/Web.pm
    trunk/vhffs-api/src/Vhffs/Robots.pm
    trunk/vhffs-api/src/Vhffs/Services/Cvs.pm
    trunk/vhffs-api/src/Vhffs/Services/DNS.pm
    trunk/vhffs-api/src/Vhffs/Services/Httpd.pm
    trunk/vhffs-api/src/Vhffs/Services/Mail.pm
    trunk/vhffs-api/src/Vhffs/Services/MailUser.pm
    trunk/vhffs-api/src/Vhffs/Services/Mailing.pm
    trunk/vhffs-api/src/Vhffs/Services/Mysql.pm
    trunk/vhffs-api/src/Vhffs/Services/Postgres.pm
    trunk/vhffs-api/src/Vhffs/Services/Repository.pm
    trunk/vhffs-api/src/Vhffs/Services/Svn.pm
    trunk/vhffs-api/src/Vhffs/Stats.pm
    trunk/vhffs-api/src/Vhffs/User.pm
    trunk/vhffs-api/src/examples/add_acl.pl
    trunk/vhffs-api/src/examples/add_acl_dns.pl
    trunk/vhffs-api/src/examples/create_box.pl
    trunk/vhffs-api/src/examples/create_cvs.pl
    trunk/vhffs-api/src/examples/create_cvs_panel.pl
    trunk/vhffs-api/src/examples/create_dir.pl
    trunk/vhffs-api/src/examples/create_dns.pl
    trunk/vhffs-api/src/examples/create_forward.pl
    trunk/vhffs-api/src/examples/create_group.pl
    trunk/vhffs-api/src/examples/create_group_by_panel.pl
    trunk/vhffs-api/src/examples/create_list.pl
    trunk/vhffs-api/src/examples/create_mail.pl
    trunk/vhffs-api/src/examples/create_mysql.pl
    trunk/vhffs-api/src/examples/create_mysql_panel.pl
    trunk/vhffs-api/src/examples/create_panel_mail.pl
    trunk/vhffs-api/src/examples/create_postgres.pl
    trunk/vhffs-api/src/examples/create_repository.pl
    trunk/vhffs-api/src/examples/create_user.pl
    trunk/vhffs-api/src/examples/create_web.pl
    trunk/vhffs-api/src/examples/create_web_panel.pl
    trunk/vhffs-api/src/examples/delbox.pl
    trunk/vhffs-api/src/examples/delete_acl.pl
    trunk/vhffs-api/src/examples/generate_password.pl
    trunk/vhffs-api/src/examples/get_list.pl
    trunk/vhffs-api/src/examples/hash_webdir.pl
    trunk/vhffs-api/src/examples/hashdomain.pl
    trunk/vhffs-api/src/examples/hashhome_example.pl
    trunk/vhffs-api/src/examples/hashpopuser.pl
    trunk/vhffs-api/src/examples/join_group.pl
    trunk/vhffs-api/src/examples/list_themes.pl
    trunk/vhffs-api/src/examples/mailuser.pl
    trunk/vhffs-api/src/examples/mailuser_add_box.pl
    trunk/vhffs-api/src/examples/modify_acl.pl
    trunk/vhffs-api/src/examples/modify_user.pl
    trunk/vhffs-api/src/examples/perm_for_user.pl
    trunk/vhffs-api/src/examples/print_domain.pl
    trunk/vhffs-api/src/examples/show_acl_per_object.pl
    trunk/vhffs-api/src/examples/show_dns_per_group.pl
    trunk/vhffs-api/src/examples/show_dns_per_user.pl
    trunk/vhffs-api/src/examples/show_dumper_cvs.pl
    trunk/vhffs-api/src/examples/show_dumper_group.pl
    trunk/vhffs-api/src/examples/show_dumper_object.pl
    trunk/vhffs-api/src/examples/show_dumper_user.pl
    trunk/vhffs-api/src/examples/show_groups_per_user.pl
    trunk/vhffs-api/src/examples/show_last_users.pl
    trunk/vhffs-api/src/examples/show_mail_conf.pl
    trunk/vhffs-api/src/examples/show_mail_per_group.pl
    trunk/vhffs-api/src/examples/show_members_from_list.pl
    trunk/vhffs-api/src/examples/stats.pl
    trunk/vhffs-compat/updatedb.pl
    trunk/vhffs-irc/modobot.pl
    trunk/vhffs-jabber/vhffspipe.pl
    trunk/vhffs-listengine/src/archives/archives.pl
    trunk/vhffs-listengine/src/archives/show_msg.pl
    trunk/vhffs-listengine/src/listengine.pl
    trunk/vhffs-panel/acl/add_acl_group.pl
    trunk/vhffs-panel/acl/add_acl_user.pl
    trunk/vhffs-panel/acl/submit.pl
    trunk/vhffs-panel/acl/view.pl
    trunk/vhffs-panel/admin/broadcast.pl
    trunk/vhffs-panel/admin/broadcast_delete.pl
    trunk/vhffs-panel/admin/broadcast_list.pl
    trunk/vhffs-panel/admin/broadcast_submit.pl
    trunk/vhffs-panel/admin/broadcast_view.pl
    trunk/vhffs-panel/admin/cvs/edit.pl
    trunk/vhffs-panel/admin/cvs/edit_submit.pl
    trunk/vhffs-panel/admin/cvs/list.pl
    trunk/vhffs-panel/admin/cvs/search.pl
    trunk/vhffs-panel/admin/cvs/show.pl
    trunk/vhffs-panel/admin/dns/list.pl
    trunk/vhffs-panel/admin/dns/search.pl
    trunk/vhffs-panel/admin/group/edit.pl
    trunk/vhffs-panel/admin/group/edit_submit.pl
    trunk/vhffs-panel/admin/group/list.pl
    trunk/vhffs-panel/admin/group/search.pl
    trunk/vhffs-panel/admin/group/show.pl
    trunk/vhffs-panel/admin/mail/change_forward.pl
    trunk/vhffs-panel/admin/mail/delete_box.pl
    trunk/vhffs-panel/admin/mail/delete_forward.pl
    trunk/vhffs-panel/admin/mail/edit.pl
    trunk/vhffs-panel/admin/mail/list.pl
    trunk/vhffs-panel/admin/mail/password_box.pl
    trunk/vhffs-panel/admin/mail/search.pl
    trunk/vhffs-panel/admin/mail/show.pl
    trunk/vhffs-panel/admin/mailing/list.pl
    trunk/vhffs-panel/admin/mailing/mailing_submit.pl
    trunk/vhffs-panel/admin/mailing/search.pl
    trunk/vhffs-panel/admin/moderation.pl
    trunk/vhffs-panel/admin/moderation_submit.pl
    trunk/vhffs-panel/admin/mysql/edit.pl
    trunk/vhffs-panel/admin/mysql/edit_submit.pl
    trunk/vhffs-panel/admin/mysql/list.pl
    trunk/vhffs-panel/admin/mysql/search.pl
    trunk/vhffs-panel/admin/mysql/show.pl
    trunk/vhffs-panel/admin/object/delete_avatar.pl
    trunk/vhffs-panel/admin/object/edit.pl
    trunk/vhffs-panel/admin/object/edit_submit.pl
    trunk/vhffs-panel/admin/object/list.pl
    trunk/vhffs-panel/admin/object/search.pl
    trunk/vhffs-panel/admin/pgsql/edit.pl
    trunk/vhffs-panel/admin/pgsql/edit_submit.pl
    trunk/vhffs-panel/admin/pgsql/list.pl
    trunk/vhffs-panel/admin/pgsql/search.pl
    trunk/vhffs-panel/admin/pgsql/show.pl
    trunk/vhffs-panel/admin/repository/edit.pl
    trunk/vhffs-panel/admin/repository/edit_submit.pl
    trunk/vhffs-panel/admin/repository/list.pl
    trunk/vhffs-panel/admin/repository/search.pl
    trunk/vhffs-panel/admin/repository/show.pl
    trunk/vhffs-panel/admin/stats.pl
    trunk/vhffs-panel/admin/su.pl
    trunk/vhffs-panel/admin/svn/list.pl
    trunk/vhffs-panel/admin/svn/search.pl
    trunk/vhffs-panel/admin/user/edit.pl
    trunk/vhffs-panel/admin/user/edit_note.pl
    trunk/vhffs-panel/admin/user/edit_submit.pl
    trunk/vhffs-panel/admin/user/list.pl
    trunk/vhffs-panel/admin/user/search.pl
    trunk/vhffs-panel/admin/user/show.pl
    trunk/vhffs-panel/admin/web/edit.pl
    trunk/vhffs-panel/admin/web/edit_submit.pl
    trunk/vhffs-panel/admin/web/list.pl
    trunk/vhffs-panel/admin/web/search.pl
    trunk/vhffs-panel/admin/web/show.pl
    trunk/vhffs-panel/alert.pl
    trunk/vhffs-panel/alert_submit.pl
    trunk/vhffs-panel/auth.pl
    trunk/vhffs-panel/cvs/create.pl
    trunk/vhffs-panel/cvs/delete.pl
    trunk/vhffs-panel/cvs/prefs.pl
    trunk/vhffs-panel/cvs/prefs_save.pl
    trunk/vhffs-panel/dns/create.pl
    trunk/vhffs-panel/dns/delete.pl
    trunk/vhffs-panel/dns/dns_submit.pl
    trunk/vhffs-panel/dns/dns_type_submit.pl
    trunk/vhffs-panel/dns/prefs.pl
    trunk/vhffs-panel/getavatar.pl
    trunk/vhffs-panel/group/create.pl
    trunk/vhffs-panel/group/delete.pl
    trunk/vhffs-panel/group/join_group.pl
    trunk/vhffs-panel/group/prefs.pl
    trunk/vhffs-panel/group/prefs_save.pl
    trunk/vhffs-panel/group/project_submit.pl
    trunk/vhffs-panel/group/quota_used.pl
    trunk/vhffs-panel/group/remove_user_from_group.pl
    trunk/vhffs-panel/history.pl
    trunk/vhffs-panel/logout.pl
    trunk/vhffs-panel/lost.pl
    trunk/vhffs-panel/lost_ack.pl
    trunk/vhffs-panel/mail/add_account.pl
    trunk/vhffs-panel/mail/add_forward.pl
    trunk/vhffs-panel/mail/change_forward.pl
    trunk/vhffs-panel/mail/create.pl
    trunk/vhffs-panel/mail/delete.pl
    trunk/vhffs-panel/mail/delete_box.pl
    trunk/vhffs-panel/mail/delete_forward.pl
    trunk/vhffs-panel/mail/password_box.pl
    trunk/vhffs-panel/mail/prefs.pl
    trunk/vhffs-panel/mail/save_catchall.pl
    trunk/vhffs-panel/mail/spambox.pl
    trunk/vhffs-panel/mail/spamvirus.pl
    trunk/vhffs-panel/mail/submit.pl
    trunk/vhffs-panel/mailinglist/add_sub.pl
    trunk/vhffs-panel/mailinglist/change_right.pl
    trunk/vhffs-panel/mailinglist/create.pl
    trunk/vhffs-panel/mailinglist/del_member.pl
    trunk/vhffs-panel/mailinglist/delete.pl
    trunk/vhffs-panel/mailinglist/prefs.pl
    trunk/vhffs-panel/mailinglist/save_options.pl
    trunk/vhffs-panel/mailinglist/save_sig.pl
    trunk/vhffs-panel/mailinglist/submit.pl
    trunk/vhffs-panel/mysql/create.pl
    trunk/vhffs-panel/mysql/delete.pl
    trunk/vhffs-panel/mysql/prefs.pl
    trunk/vhffs-panel/mysql/prefs_save.pl
    trunk/vhffs-panel/mysql/submit.pl
    trunk/vhffs-panel/object/upavatar.pl
    trunk/vhffs-panel/panel.pl
    trunk/vhffs-panel/pgsql/create.pl
    trunk/vhffs-panel/pgsql/delete.pl
    trunk/vhffs-panel/pgsql/pgsql_submit.pl
    trunk/vhffs-panel/pgsql/prefs.pl
    trunk/vhffs-panel/pgsql/prefs_save.pl
    trunk/vhffs-panel/public/allgroups.pl
    trunk/vhffs-panel/public/allwebsites.pl
    trunk/vhffs-panel/public/group.pl
    trunk/vhffs-panel/public/index.pl
    trunk/vhffs-panel/public/lastgroups.pl
    trunk/vhffs-panel/public/lastusers.pl
    trunk/vhffs-panel/public/rss/lastgroups.pl
    trunk/vhffs-panel/public/rss/lastusers.pl
    trunk/vhffs-panel/public/user.pl
    trunk/vhffs-panel/public/websearch.pl
    trunk/vhffs-panel/repository/create.pl
    trunk/vhffs-panel/repository/delete.pl
    trunk/vhffs-panel/repository/prefs.pl
    trunk/vhffs-panel/repository/prefs_save.pl
    trunk/vhffs-panel/repository/quota_used.pl
    trunk/vhffs-panel/repository/repository_submit.pl
    trunk/vhffs-panel/show_code.pl
    trunk/vhffs-panel/subscribe.pl
    trunk/vhffs-panel/svn/create.pl
    trunk/vhffs-panel/svn/delete.pl
    trunk/vhffs-panel/svn/prefs.pl
    trunk/vhffs-panel/svn/prefs_save.pl
    trunk/vhffs-panel/svn/svn_submit.pl
    trunk/vhffs-panel/user/delete.pl
    trunk/vhffs-panel/user/prefs.pl
    trunk/vhffs-panel/web/create.pl
    trunk/vhffs-panel/web/delete.pl
    trunk/vhffs-panel/web/prefs.pl
    trunk/vhffs-panel/web/prefs_save.pl
    trunk/vhffs-panel/web/web_submit.pl
    trunk/vhffs-robots/src/create_cvs.pl
    trunk/vhffs-robots/src/create_dns.pl
    trunk/vhffs-robots/src/create_groups.pl
    trunk/vhffs-robots/src/create_homes.pl
    trunk/vhffs-robots/src/create_mail.pl
    trunk/vhffs-robots/src/create_ml.pl
    trunk/vhffs-robots/src/create_mysql.pl
    trunk/vhffs-robots/src/create_pgsql.pl
    trunk/vhffs-robots/src/create_repository.pl
    trunk/vhffs-robots/src/create_svn.pl
    trunk/vhffs-robots/src/create_viewvcconf.pl
    trunk/vhffs-robots/src/create_web.pl
    trunk/vhffs-robots/src/cvs_fixperms.pl
    trunk/vhffs-robots/src/delete_cvs.pl
    trunk/vhffs-robots/src/delete_dns.pl
    trunk/vhffs-robots/src/delete_group.pl
    trunk/vhffs-robots/src/delete_mail.pl
    trunk/vhffs-robots/src/delete_ml.pl
    trunk/vhffs-robots/src/delete_mysql.pl
    trunk/vhffs-robots/src/delete_pgsql.pl
    trunk/vhffs-robots/src/delete_repository.pl
    trunk/vhffs-robots/src/delete_svn.pl
    trunk/vhffs-robots/src/delete_users.pl
    trunk/vhffs-robots/src/delete_web.pl
    trunk/vhffs-robots/src/dump_mysql.pl
    trunk/vhffs-robots/src/fix_quota.pl
    trunk/vhffs-robots/src/fix_quota_repository.pl
    trunk/vhffs-robots/src/generate_webstats.pl
    trunk/vhffs-robots/src/listengine_publicarchives.pl
    trunk/vhffs-robots/src/mailing.pl
    trunk/vhffs-robots/src/modify_mysql.pl
    trunk/vhffs-robots/src/modify_pgsql.pl
    trunk/vhffs-robots/src/refused_cvs.pl
    trunk/vhffs-robots/src/refused_dns.pl
    trunk/vhffs-robots/src/refused_groups.pl
    trunk/vhffs-robots/src/refused_mail.pl
    trunk/vhffs-robots/src/refused_ml.pl
    trunk/vhffs-robots/src/refused_mysql.pl
    trunk/vhffs-robots/src/refused_postgres.pl
    trunk/vhffs-robots/src/refused_repository.pl
    trunk/vhffs-robots/src/refused_svn.pl
    trunk/vhffs-robots/src/refused_web.pl
    trunk/vhffs-robots/src/svn_public.pl
    trunk/vhffs-robots/src/svn_websvn.pl
    trunk/vhffs-robots/src/update_quota_used.pl
    trunk/vhffs-robots/src/update_quota_used_repository.pl
    trunk/vhffs-robots/src/user_group.pl
    trunk/vhffs-tests/src/Vhffs/Tests/Main.pm
    trunk/vhffs-tools/src/vhffs-blankmysql
    trunk/vhffs-tools/src/vhffs-checkinstall
    trunk/vhffs-tools/src/vhffs-dumpmysql
    trunk/vhffs-tools/src/vhffs-groupdel
    trunk/vhffs-tools/src/vhffs-groupinfo
    trunk/vhffs-tools/src/vhffs-makeadmin
    trunk/vhffs-tools/src/vhffs-moderate
    trunk/vhffs-tools/src/vhffs-passwd
    trunk/vhffs-tools/src/vhffs-quota
    trunk/vhffs-tools/src/vhffs-userdel
    trunk/vhffs-tools/src/vhffs-userinfo
    trunk/vhffs-tools/src/vhffs-usermod
    trunk/vhffs-tools/src/vhffs-webdir

Added Paths:
-----------
    trunk/ChangeLog
    trunk/Makefile.am
    trunk/NEWS
    trunk/bootstrap.sh
    trunk/configure.ac
    trunk/vhffs-api/Makefile.am
    trunk/vhffs-api/src/Makefile.am
    trunk/vhffs-api/src/Vhffs/Makefile.am
    trunk/vhffs-api/src/examples/Makefile.am
    trunk/vhffs-backend/Makefile.am
    trunk/vhffs-backend/conf/vhffs.conf.dist.in
    trunk/vhffs-backend/conf/vhffs.conf.in
    trunk/vhffs-backend/src/pgsql/initdb.sql.in
    trunk/vhffs-compat/4.0.sql.in
    trunk/vhffs-doc/Makefile.am
    trunk/vhffs-jabber/Makefile.am
    trunk/vhffs-listengine/Makefile.am
    trunk/vhffs-listengine/src/Makefile.am
    trunk/vhffs-listengine/src/archives/Makefile.am
    trunk/vhffs-panel/Makefile.am
    trunk/vhffs-panel/templates/Makefile.am
    trunk/vhffs-robots/Makefile.am
    trunk/vhffs-shells/Makefile.am
    trunk/vhffs-test-dependencies.in
    trunk/vhffs-tests/Makefile.am
    trunk/vhffs-tests/src/Makefile.am
    trunk/vhffs-tools/Makefile.am
    trunk/vhffs-tools/src/Makefile.am

Removed Paths:
-------------
    trunk/Changelog
    trunk/Makefile
    trunk/vhffs-api/AUTHORS
    trunk/vhffs-api/src/Changelog
    trunk/vhffs-backend/conf/vhffs.conf
    trunk/vhffs-backend/src/pgsql/initdb.sql
    trunk/vhffs-compat/4.0.sql
    trunk/vhffs-shells/Makefile


Added: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/ChangeLog	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,203 @@
+VHFFS 4.0.0
+	Sylvain Rochet
+		- A lot of bugs fixed
+		- Improved listengine archives (using mhonarc)
+		- Improved webstats (history)
+		- Added download repositories
+		- Jabber gateway between vhffsdb and jabberd2
+
+	Sebastien Le Ray
+		- Some bugs and security issues discovered while working on vhffs 4.1
+
+	Samuel Lesueur
+		- Proud help on jabber gateway
+		- Added gateway between vhffsdb and punbb
+
+	Sylvain Vrignaud
+		- Some improvements on vhffs-irc
+		- DNS serial conform to YYYYMMDDSS
+		- One of the only user of VHFFS, we call him "bug finder"
+
+	Mickey Mouse
+		- Helped to fan the brains with its ears
+
+	 ... and so on... we forgot a lot of things during these last months :)
+
+
+VHFFS 4.0-pre1
+	Julien:
+	 	- New installer, use now a Makefile
+		- Fix some bugs
+		- Fix a BIG security problem around listengine
+		- checkpackages is fixed
+		- print an error when adatabase connection is not sane
+		- print error when the panel has a problem
+		- svn help use customisable in the vhffs.conf file
+		
+	Christophe Benz:
+		- Fix svn/create/pl string
+		- Fix alert.pl string
+		- Fix intl
+
+
+VHFFS RC10
+	Julien:
+		- Add nospam and novirus directive
+		- Support for anti-spam and anti-virus ( /!\ data definition changes )
+		- Improve build script
+		- Add some tools in vhffs-tools
+		- Modify MailUser to support nospam and novirus directive
+		- Fix bots bugs
+		- Bots uses now lockfiles
+		- Bots now logs error on /var/log/vhffs.log
+		- Begin to release Jabber driver for VHFFS
+		- Add vhffs-modobot (an IRC bot that refuse/accept request on platform
+		  on IRC with chat messages)
+		- Bugfixes on API
+		- Bugfixes on Panel
+		- Bugfixes on bot
+		- Fix MAJOR bug on ACL
+		- Fix bug in parse_httplog robot
+		- Add language support in archives for listengine
+		- Fix bug in postgres/dns admin menu
+		- Add preferences for largefile
+		- Can now view largefile preferences
+		- Can now delete a largefile in the panel
+		- ACL for largefile now works
+		- Admin for largefile works now
+		- Largefile search now works
+		- Moderators can list largefile objects
+		- Add perldoc documentation
+		- Robots uses lockfile only if use_logging are set to "yes" in config
+		  file and lockfile is defined.
+		- Robots use log only if use_logging is set to "yes" in config file
+		  and logfile is defined
+		- Improve install script : vhffs should work on all *nix which runs
+		  perl
+		- Add largefile logo
+		- Update some logos and images for panel
+		- Users and groups can upload avatar (stored in DATADIR/avatar)
+		- Rewrite some public templates
+		- Modify the css file for default
+		- Rewrite the design of the default theme
+		- Create Vhffs::Panel::Avatar perl-module to handle avatars
+		- getavatar.pl page to get avatar for a given object-id
+		- Add show/hide on panel for some menus
+		- In admin, groups for a user is now in a list context, more clean
+		  than lines with <br/> (more standard-compliant)
+		- Admin can now delete avatars for an object (in object admin)
+		- Add use_avatar directive in config file
+		- Add the open directive in the config file
+		- The panel can be closed properly to perform maintainance operations
+		- Add icons for largefile admin menu
+		- Add a robot which collect the used quota
+		- Add a new graphic image which prints the quota for the group
+		- Add perldoc documentation for Vhffs::Panel::Avatar
+		- Add perldoc documentation for Vhffs::Note
+		- Rewrite a part of vhffs-robots, lock and log only if ask in
+		  vhffs.conf
+		- Mailing robot does not send utf-8 messages to hosted
+
+
+
+
+VHFFS RC3
+	Julien:
+	    - add blanked passwords for MySQL (adding security)
+		- add support to change password for mysql
+		- print if a mysql database is under modification in the panel
+		- fix a owner_uid bug in User.pm
+		- cant create now a database which contains the '-' car
+		- add ACL support form Mail Object in the panel
+		- admin can change password of a user now
+		- add delete for mail
+		- enlarge textbox for description in groups
+		- Add support for is_empty in group ( if( $group->is_empty == 1 ) )
+		- Add support for removing union user_group
+		- Fix some MySQL robots in some case
+		- change MySQL passwords. Accept only alphanumeric caracters
+		- fix password for mail, don't use any clear passwd now
+		- finish treat_refused robot
+		- add robot to delete all group
+		- a group must be empty to be delete
+		- send now a mail when an object is moderated
+		- fix barbie theme
+		- fix britney theme
+		- fix Postgres service
+		- add modify_pgsql robot
+		- clean acl code
+		- clean some User code
+		- fix web deletion
+		- begin debian packaging
+		- add description in public area for groups
+		- fix for langages. Now, langages are stored in the preferences of each user in the database
+		- update SVN, fix password, use now encrypted passwd
+		- Sort mail boxes now in mail preferences
+		- Add group in list mail admin
+		- Add list admin
+		- Made phpmyadmin, phppgadmin and stats links not static
+		- Fix a STUPID BUG in admin/user which deny users update
+
+VHFFS RC-2
+	Julien:
+		- add listengine support in panel
+		- fix some robots
+		- fix bug in Object.pm, deny commit when a strange description is set
+		- add functinnality : add admin for dns object 
+		- add some fonctionnalities in stats (dns, cvs, svn, mysql, pgsql  and mail)
+		- Add admin part for subversion
+		- fix some templates calls. Use now
+		  $vhffs->get_config->get_templatedir to get the template directory
+		  according to the configuration file
+		- add admin part for objects (general admin for all objects of Vhffs)
+		- add subversion repository search
+		- add object search in admin part
+		- add admin parts (can commit) for object
+		- add a history link in the menu
+		- add a history menu in the admin object part
+		- add Barbie Theme
+		- add Britney Theme
+		- add support for new Service MailUser which allow a user to manage a
+		  main hosted by directly by VHFFS
+		- add support for MailUser and popboxes
+		- add support for MailUser and forward
+		- add option to delete a User
+		- fix bugs in Vhffs::Panel::Main : a user cannot log in or browse
+		  panel when he is not activated or being deleted
+		- add script to package a cleany full distro of vhffs
+		- add public user profile (
+		  http://panel.vhffs.org/public/user.pl?name=soda )
+		- add public group infos( 
+		   http://panel.vhffs.org/public/group.pl?name=prout )
+		- add public last users and last groups
+		- add RSS files to communicate with others website
+		- change create_group.sql to be compliant with libnss-pgsql
+		- modify Group.pm to be compliant with libnss-pgsql
+		- modify the database to be compliant with myDNS
+		- make myDNS configurations
+		- rewrite 45% of Panel::DNS Services::DNS and Robots::DNS to be
+		  compliant with the new database
+		- add support for NS type for DNS in the Panel
+		- secure remove and adding for DNS in the API
+		- add defaults adding in the DNS. The hoster can define defaults
+		  parameters for hosted domain
+	
+	Sylvain:
+		- implements themes and language
+
+	Florent:
+		- Add some gettext support
+		- Fix a bug like buffer overflow when login
+		- Making create_failed template and changing subscribe_complete.pl to
+		use it (closing bug #0000006)
+		- fix a lot of templates calls
+		- update logo.png on crystal and dark themes
+		- create tuxfamily theme
+		- fix a bug on mysql, pgsql and svn password-length check ("<= 3" instead of "< 3")
+
+	Alexandre
+		- Convert all templates to XHTML (see bug 67 to view avancement...)
+---------
+
+VHFFS RC-1
+	- Initial Release

Deleted: trunk/Changelog
===================================================================
--- trunk/Changelog	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/Changelog	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,202 +0,0 @@
-VHFFS 4.0.0
-	Sylvain Rochet
-		- A lot of bugs fixed
-		- Improved listengine archives (using mhonarc)
-		- Improved webstats (history)
-		- Added download repositories
-		- Jabber gateway between vhffsdb and jabberd2
-
-	Sebastien Le Ray
-		- Some bugs and security issues discovered while working on vhffs 4.1
-
-	Samuel Lesueur
-		- Proud help on jabber gateway
-		- Added gateway between vhffsdb and punbb
-
-	Sylvain Vrignaud
-		- Some improvements on vhffs-irc
-		- DNS serial conform to YYYYMMDDSS
-		- One of the only user of VHFFS, we call him "bug finder"
-
-	Mickey Mouse
-		- Helped to fan the brains with its ears
-
-	... and so on... we forgot a lot of things during these last months :)
-
-VHFFS 4.0-pre1
-	Julien:
-	 	- New installer, use now a Makefile
-		- Fix some bugs
-		- Fix a BIG security problem around listengine
-		- checkpackages is fixed
-		- print an error when adatabase connection is not sane
-		- print error when the panel has a problem
-		- svn help use customisable in the vhffs.conf file
-		
-	Christophe Benz:
-		- Fix svn/create/pl string
-		- Fix alert.pl string
-		- Fix intl
-
-
-VHFFS RC10
-	Julien:
-		- Add nospam and novirus directive
-		- Support for anti-spam and anti-virus ( /!\ data definition changes )
-		- Improve build script
-		- Add some tools in vhffs-tools
-		- Modify MailUser to support nospam and novirus directive
-		- Fix bots bugs
-		- Bots uses now lockfiles
-		- Bots now logs error on /var/log/vhffs.log
-		- Begin to release Jabber driver for VHFFS
-		- Add vhffs-modobot (an IRC bot that refuse/accept request on platform
-		  on IRC with chat messages)
-		- Bugfixes on API
-		- Bugfixes on Panel
-		- Bugfixes on bot
-		- Fix MAJOR bug on ACL
-		- Fix bug in parse_httplog robot
-		- Add language support in archives for listengine
-		- Fix bug in postgres/dns admin menu
-		- Add preferences for largefile
-		- Can now view largefile preferences
-		- Can now delete a largefile in the panel
-		- ACL for largefile now works
-		- Admin for largefile works now
-		- Largefile search now works
-		- Moderators can list largefile objects
-		- Add perldoc documentation
-		- Robots uses lockfile only if use_logging are set to "yes" in config
-		  file and lockfile is defined.
-		- Robots use log only if use_logging is set to "yes" in config file
-		  and logfile is defined
-		- Improve install script : vhffs should work on all *nix which runs
-		  perl
-		- Add largefile logo
-		- Update some logos and images for panel
-		- Users and groups can upload avatar (stored in DATADIR/avatar)
-		- Rewrite some public templates
-		- Modify the css file for default
-		- Rewrite the design of the default theme
-		- Create Vhffs::Panel::Avatar perl-module to handle avatars
-		- getavatar.pl page to get avatar for a given object-id
-		- Add show/hide on panel for some menus
-		- In admin, groups for a user is now in a list context, more clean
-		  than lines with <br/> (more standard-compliant)
-		- Admin can now delete avatars for an object (in object admin)
-		- Add use_avatar directive in config file
-		- Add the open directive in the config file
-		- The panel can be closed properly to perform maintainance operations
-		- Add icons for largefile admin menu
-		- Add a robot which collect the used quota
-		- Add a new graphic image which prints the quota for the group
-		- Add perldoc documentation for Vhffs::Panel::Avatar
-		- Add perldoc documentation for Vhffs::Note
-		- Rewrite a part of vhffs-robots, lock and log only if ask in
-		  vhffs.conf
-		- Mailing robot does not send utf-8 messages to hosted
-
-
-
-
-VHFFS RC3
-	Julien:
-	    - add blanked passwords for MySQL (adding security)
-		- add support to change password for mysql
-		- print if a mysql database is under modification in the panel
-		- fix a owner_uid bug in User.pm
-		- cant create now a database which contains the '-' car
-		- add ACL support form Mail Object in the panel
-		- admin can change password of a user now
-		- add delete for mail
-		- enlarge textbox for description in groups
-		- Add support for is_empty in group ( if( $group->is_empty == 1 ) )
-		- Add support for removing union user_group
-		- Fix some MySQL robots in some case
-		- change MySQL passwords. Accept only alphanumeric caracters
-		- fix password for mail, don't use any clear passwd now
-		- finish treat_refused robot
-		- add robot to delete all group
-		- a group must be empty to be delete
-		- send now a mail when an object is moderated
-		- fix barbie theme
-		- fix britney theme
-		- fix Postgres service
-		- add modify_pgsql robot
-		- clean acl code
-		- clean some User code
-		- fix web deletion
-		- begin debian packaging
-		- add description in public area for groups
-		- fix for langages. Now, langages are stored in the preferences of each user in the database
-		- update SVN, fix password, use now encrypted passwd
-		- Sort mail boxes now in mail preferences
-		- Add group in list mail admin
-		- Add list admin
-		- Made phpmyadmin, phppgadmin and stats links not static
-		- Fix a STUPID BUG in admin/user which deny users update
-
-VHFFS RC-2
-	Julien:
-		- add listengine support in panel
-		- fix some robots
-		- fix bug in Object.pm, deny commit when a strange description is set
-		- add functinnality : add admin for dns object 
-		- add some fonctionnalities in stats (dns, cvs, svn, mysql, pgsql  and mail)
-		- Add admin part for subversion
-		- fix some templates calls. Use now
-		  $vhffs->get_config->get_templatedir to get the template directory
-		  according to the configuration file
-		- add admin part for objects (general admin for all objects of Vhffs)
-		- add subversion repository search
-		- add object search in admin part
-		- add admin parts (can commit) for object
-		- add a history link in the menu
-		- add a history menu in the admin object part
-		- add Barbie Theme
-		- add Britney Theme
-		- add support for new Service MailUser which allow a user to manage a
-		  main hosted by directly by VHFFS
-		- add support for MailUser and popboxes
-		- add support for MailUser and forward
-		- add option to delete a User
-		- fix bugs in Vhffs::Panel::Main : a user cannot log in or browse
-		  panel when he is not activated or being deleted
-		- add script to package a cleany full distro of vhffs
-		- add public user profile (
-		  http://panel.vhffs.org/public/user.pl?name=soda )
-		- add public group infos( 
-		   http://panel.vhffs.org/public/group.pl?name=prout )
-		- add public last users and last groups
-		- add RSS files to communicate with others website
-		- change create_group.sql to be compliant with libnss-pgsql
-		- modify Group.pm to be compliant with libnss-pgsql
-		- modify the database to be compliant with myDNS
-		- make myDNS configurations
-		- rewrite 45% of Panel::DNS Services::DNS and Robots::DNS to be
-		  compliant with the new database
-		- add support for NS type for DNS in the Panel
-		- secure remove and adding for DNS in the API
-		- add defaults adding in the DNS. The hoster can define defaults
-		  parameters for hosted domain
-	
-	Sylvain:
-		- implements themes and language
-
-	Florent:
-		- Add some gettext support
-		- Fix a bug like buffer overflow when login
-		- Making create_failed template and changing subscribe_complete.pl to
-		use it (closing bug #0000006)
-		- fix a lot of templates calls
-		- update logo.png on crystal and dark themes
-		- create tuxfamily theme
-		- fix a bug on mysql, pgsql and svn password-length check ("<= 3" instead of "< 3")
-
-	Alexandre
-		- Convert all templates to XHTML (see bug 67 to view avancement...)
----------
-
-VHFFS RC-1
-	- Initial Release

Deleted: trunk/Makefile
===================================================================
--- trunk/Makefile	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/Makefile	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,323 +0,0 @@
-#!/usr/bin/make
-
-CONFDIR      = $(DESTDIR)/etc/vhffs
-DOCDIR       = $(DESTDIR)/usr/share/doc/vhffs
-APIDIR       = $(DESTDIR)/usr/share/vhffs/api/Vhffs
-PANELDIR     = $(DESTDIR)/usr/share/vhffs/panel
-TEMPLATESDIR = $(DESTDIR)/usr/share/vhffs/templates
-BACKENDDIR   = $(DESTDIR)/usr/share/vhffs/backend
-INTLDIR      = $(DESTDIR)/usr/share/vhffs/intl
-BOTSDIR      = $(DESTDIR)/usr/lib/vhffs/bots
-LEDIR        = $(DESTDIR)/usr/lib/vhffs/listengine
-TOOLSDIR     = $(DESTDIR)/usr/bin
-SHELLDIR     = $(DESTDIR)/usr/bin
-JABBERDIR    = $(DESTDIR)/usr/share/vhffs/jabber
-LEWEB        = $(DESTDIR)/usr/share/vhffs/listengine
-MAILSDIR     = $(DESTDIR)/usr/share/vhffs/mails
-
-PERL_MODULES=HTML::Template Digest::MD5 CGI Locale::gettext Config::General DBI Email::Valid Crypt::PasswdMD5 GD::Text::Wrap GD MIME::Lite XML::RSS CGI::Session Encode utf8 LockFile::Simple  Mail::Internet Email::Valid Time::ParseDate Quota
-DEBIAN_PACKAGES=gcc libxml-rss-perl liblocale-gettext-perl libconfig-general-perl libhtml-template-perl libcrypt-passwdmd5-perl libgd-text-perl libmime-lite-perl libcgi-session-perl liblockfile-simple-perl libgd-gd2-perl libclass-dbi-pg-perl libclass-dbi-perl libdbd-pg-perl libemail-valid-perl libc6-dev libtime-modules-perl libquota-perl
-
-all: help
-
-install: update-version install-api install-panel install-listengine install-tools install-intl install-conf install-backend install-doc install-bots install-shell install-jabber 
-
-install-debian: update-version debian-deps install-api install-panel install-listengine install-tools install-intl install-conf install-backend install-doc install-bots install-shell install-jabber
-
-check: test-deps
-
-help:
-	#Help for VHFFS makefile
-	#make help - display this help
-	#make install - install VHFFS on this host
-	#make install-debian - install VHFFS on this host and debian-dependencies. Use with debian-based systems
-	#make debian-deps - install debian-dependencies
-	#make test-deps - test if all dependencies are installed
-
-debian-deps:
-	/usr/bin/apt-get install $(DEBIAN_PACKAGES)
-
-
-update-version:
-	@svnversion . | perl -e " \
-		\$$_ = <STDIN>; \
-		/^(?:.*?:)?(\d+)\w*\$$/; \
-		my \$$version = \$$1; \
-		\$$^I = \"\"; \
-		while(<>) { \
-			s/(VHFFS_VERSION.*\d+\.\d+.*?)(?:\d+)(.*)/\$$1\$$version\$$2/; \
-			print; \
-		}" vhffs-api/src/Vhffs/Constants.pm
-
-test-deps:
-	@perl -e " \
-		foreach ( qw( $(PERL_MODULES) ) ) { \
-			if( eval \"require \$$_;\" == 0 ) { \
-				print \"\n\n** ERROR ** \$$_ perl-module is not installed\n\n\"; \
-				exit( 1 ); \
-			} \
-		} \
-		print \"Good all perl-deps are installed\n\"; exit( 0 );"
-
-install-shell: build-shell add-shell
-
-build-shell:
-	install -d -m 755 $(SHELLDIR)
-	gcc -Wall -pedantic -o $(SHELLDIR)/tuxshell vhffs-shells/tuxshell.c
-
-add-shell:
-	install -d -m 755 $(DESTDIR)/etc
-	if [ -f $(DESTDIR)/etc/shells ]; then if [ `grep -c "$(SHELLDIR)/tuxshell" $(DESTDIR)/etc/shells` = "0" ]; then echo "$(SHELLDIR)/tuxshell" >> $(DESTDIR)/etc/shells ; fi ; else echo "$(SHELLDIR)/tuxshell" > $(DESTDIR)/etc/shells ; fi
-
-install-bots:
-	install -d -m 755 $(BOTSDIR)	
-	install -d -m 755 $(BOTSDIR)/misc/
-	install -m 755 vhffs-robots/src/*.pl            $(BOTSDIR)/
-	install -m 644 vhffs-robots/misc/*   $(BOTSDIR)/misc/
-
-install-doc:
-	install -d -m 755 $(DOCDIR)	
-	install -d -m 755 $(DOCDIR)/config
-	install -d -m 755 $(DOCDIR)/config/apache
-	install -m 644 vhffs-doc/AUTHORS         $(DOCDIR)/
-	install -m 644 vhffs-doc/CONVENTION-fr   $(DOCDIR)/
-	install -m 644 vhffs-doc/HOWTO*          $(DOCDIR)/
-	install -m 644 vhffs-doc/README*         $(DOCDIR)/
-	install -m 644 vhffs-doc/LICENSE*        $(DOCDIR)/
-	install -m 644 vhffs-doc/config/apache/* $(DOCDIR)/config/apache/
-
-install-conf:
-	install -d -m 755 $(CONFDIR)
-	@if [ ! -f $(CONFDIR)/vhffs.conf ]; then echo "INSTALL ORIGINAL CONFIG FILE" ; install -m 600 vhffs-backend/conf/vhffs.conf $(CONFDIR)/ ; else echo "CONFIG FILE ALREADY EXISTS" ; fi
-
-install-backend:
-	install -d -m 755 $(BACKENDDIR)
-	install -d -m 755 $(MAILSDIR)
-	install -d -m 755 $(BACKENDDIR)/pgsql
-	install -d -m 755 $(BACKENDDIR)/tools
-	install -m 644 vhffs-backend/src/pgsql/*.sql    $(BACKENDDIR)/pgsql/
-#	install -m 755 vhffs-backend/tools/vhffs-initdb $(BACKENDDIR)/tools/vhffs-initdb
-	install -m 644 vhffs-backend/mails/*    $(MAILSDIR)/
-
-install-intl:
-	install -d -m 755 $(INTLDIR)
-	install -d -m 755 $(INTLDIR)/en_US/LC_MESSAGES
-	install -d -m 755 $(INTLDIR)/fr_FR/LC_MESSAGES
-	install -d -m 755 $(INTLDIR)/es_ES/LC_MESSAGES
-	install -m 644 vhffs-intl/result/es_ES/vhffs.mo $(INTLDIR)/es_ES/LC_MESSAGES/
-	install -m 644 vhffs-intl/result/fr_FR/vhffs.mo $(INTLDIR)/fr_FR/LC_MESSAGES/
-
-install-tools:
-	install -d -m 755 $(TOOLSDIR)
-	install -m 755 vhffs-tools/src/vhffs-blankmysql   $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-dumpmysql    $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-checkinstall $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-groupdel     $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-groupinfo    $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-moderate     $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-passwd       $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-quota        $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-userdel      $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-userinfo     $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-usermod      $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-webdir       $(TOOLSDIR)/
-	install -m 755 vhffs-tools/src/vhffs-makeadmin    $(TOOLSDIR)/
-
-
-install-listengine-web:
-	install -d -m 755 $(LEWEB)
-	install -d -m 755 $(LEWEB)/archives
-	install -d -m 755 $(LEWEB)/templates
-	install -d -m 755 $(LEWEB)/misc
-	install -m 755 vhffs-listengine/src/archives/*.pl             $(LEWEB)/archives/
-	install -m 644 vhffs-listengine/src/archives/templates/*.tmpl $(LEWEB)/templates
-	install -m 644 vhffs-listengine/misc/*                        $(LEWEB)/misc
-	if [ ! -L $(LEWEB)/archives/themes ]; then ln -fs $(PANELDIR)/themes $(LEWEB)/archives/themes ; fi
-
-install-listengine: install-listengine-web
-	install -d -m 755 $(LEDIR)
-	install -m 755 vhffs-listengine/src/listengine.pl $(LEDIR)/listengine
-
-install-jabber:
-	install -d -m 755 $(JABBERDIR)
-	install -m 755 vhffs-jabber/*.pl $(JABBERDIR)/
-
-install-api:
-	install -d -m 755 $(APIDIR)/Services
-	install -d -m 755 $(APIDIR)/Robots
-	install -d -m 755 $(APIDIR)/Panel
-	install -d -m 755 $(APIDIR)/Misc
-	install -d -m 755 $(APIDIR)/Listengine
-	install -m 644 vhffs-api/src/Vhffs/*.pm $(APIDIR)/
-	install -m 644 vhffs-api/src/Vhffs/Listengine/*.pm $(APIDIR)/Listengine/
-	install -m 644 vhffs-api/src/Vhffs/Misc/*.pm $(APIDIR)/Misc/
-	install -m 644 vhffs-api/src/Vhffs/Panel/*.pm $(APIDIR)/Panel/
-	install -m 644 vhffs-api/src/Vhffs/Robots/*.pm $(APIDIR)/Robots/
-	install -m 644 vhffs-api/src/Vhffs/Services/*.pm $(APIDIR)/Services/
-
-install-templates:
-	install -d -m 755 $(TEMPLATESDIR)
-	install -d -m 755 $(TEMPLATESDIR)/acl
-	install -d -m 755 $(TEMPLATESDIR)/admin
-	install -d -m 755 $(TEMPLATESDIR)/admin/cvs
-	install -d -m 755 $(TEMPLATESDIR)/admin/dns
-	install -d -m 755 $(TEMPLATESDIR)/admin/group
-	install -d -m 755 $(TEMPLATESDIR)/admin/repository
-	install -d -m 755 $(TEMPLATESDIR)/admin/mail
-	install -d -m 755 $(TEMPLATESDIR)/admin/mailing
-	install -d -m 755 $(TEMPLATESDIR)/admin/main
-	install -d -m 755 $(TEMPLATESDIR)/admin/misc
-	install -d -m 755 $(TEMPLATESDIR)/admin/mysql
-	install -d -m 755 $(TEMPLATESDIR)/admin/object
-	install -d -m 755 $(TEMPLATESDIR)/admin/pgsql
-	install -d -m 755 $(TEMPLATESDIR)/admin/svn
-	install -d -m 755 $(TEMPLATESDIR)/admin/user
-	install -d -m 755 $(TEMPLATESDIR)/admin/web
-	install -d -m 755 $(TEMPLATESDIR)/cvs
-	install -d -m 755 $(TEMPLATESDIR)/dns
-	install -d -m 755 $(TEMPLATESDIR)/group
-	install -d -m 755 $(TEMPLATESDIR)/repository
-	install -d -m 755 $(TEMPLATESDIR)/mail
-	install -d -m 755 $(TEMPLATESDIR)/mailinglist
-	install -d -m 755 $(TEMPLATESDIR)/main
-	install -d -m 755 $(TEMPLATESDIR)/menu
-	install -d -m 755 $(TEMPLATESDIR)/misc
-	install -d -m 755 $(TEMPLATESDIR)/mysql
-	install -d -m 755 $(TEMPLATESDIR)/pgsql
-	install -d -m 755 $(TEMPLATESDIR)/public
-	install -d -m 755 $(TEMPLATESDIR)/public/misc
-	install -d -m 755 $(TEMPLATESDIR)/svn
-	install -d -m 755 $(TEMPLATESDIR)/user
-	install -d -m 755 $(TEMPLATESDIR)/web
-	#install files now
-	install -m 755 vhffs-panel/templates/acl/*.tmpl 			$(TEMPLATESDIR)/acl/
-	install -m 755 vhffs-panel/templates/admin/cvs/*.tmpl 		$(TEMPLATESDIR)/admin/cvs/
-	install -m 755 vhffs-panel/templates/admin/dns/*.tmpl 		$(TEMPLATESDIR)/admin/dns/
-	install -m 755 vhffs-panel/templates/admin/group/*.tmpl 	$(TEMPLATESDIR)/admin/group/
-	install -m 755 vhffs-panel/templates/admin/repository/*.tmpl $(TEMPLATESDIR)/admin/repository/
-	install -m 755 vhffs-panel/templates/admin/mail/*.tmpl 		$(TEMPLATESDIR)/admin/mail/
-	install -m 755 vhffs-panel/templates/admin/mailing/*.tmpl 	$(TEMPLATESDIR)/admin/mailing/
-	install -m 755 vhffs-panel/templates/admin/main/*.tmpl 		$(TEMPLATESDIR)/admin/main/
-	install -m 755 vhffs-panel/templates/admin/misc/*.tmpl 		$(TEMPLATESDIR)/admin/misc/
-	install -m 755 vhffs-panel/templates/admin/mysql/*.tmpl 	$(TEMPLATESDIR)/admin/mysql/
-	install -m 755 vhffs-panel/templates/admin/object/*.tmpl 	$(TEMPLATESDIR)/admin/object/
-	install -m 755 vhffs-panel/templates/admin/pgsql/*.tmpl 	$(TEMPLATESDIR)/admin/pgsql/
-	install -m 755 vhffs-panel/templates/admin/svn/*.tmpl 		$(TEMPLATESDIR)/admin/svn/
-	install -m 755 vhffs-panel/templates/admin/user/*.tmpl 		$(TEMPLATESDIR)/admin/user/
-	install -m 755 vhffs-panel/templates/admin/web/*.tmpl 		$(TEMPLATESDIR)/admin/web/
-	install -m 755 vhffs-panel/templates/cvs/*.tmpl	 			$(TEMPLATESDIR)/cvs/
-	install -m 755 vhffs-panel/templates/dns/*.tmpl 			$(TEMPLATESDIR)/dns/
-	install -m 755 vhffs-panel/templates/group/*.tmpl 			$(TEMPLATESDIR)/group/
-	install -m 755 vhffs-panel/templates/repository/*.tmpl 		$(TEMPLATESDIR)/repository/
-	install -m 755 vhffs-panel/templates/mail/*.tmpl 			$(TEMPLATESDIR)/mail/
-	install -m 755 vhffs-panel/templates/mailinglist/*.tmpl 	$(TEMPLATESDIR)/mailinglist/
-	install -m 755 vhffs-panel/templates/main/*.tmpl 			$(TEMPLATESDIR)/main/
-	install -m 755 vhffs-panel/templates/menu/*.tmpl 			$(TEMPLATESDIR)/menu/
-	install -m 755 vhffs-panel/templates/misc/*.tmpl 			$(TEMPLATESDIR)/misc/
-	install -m 755 vhffs-panel/templates/mysql/*.tmpl 			$(TEMPLATESDIR)/mysql/
-	install -m 755 vhffs-panel/templates/pgsql/*.tmpl 			$(TEMPLATESDIR)/pgsql/
-	install -m 755 vhffs-panel/templates/public/*.tmpl 			$(TEMPLATESDIR)/public/
-	install -m 755 vhffs-panel/templates/public/misc/*.tmpl 	$(TEMPLATESDIR)/public/misc/
-	install -m 755 vhffs-panel/templates/svn/*.tmpl 			$(TEMPLATESDIR)/svn/
-	install -m 755 vhffs-panel/templates/user/*.tmpl 			$(TEMPLATESDIR)/user/
-	install -m 755 vhffs-panel/templates/web/*.tmpl 			$(TEMPLATESDIR)/web/
-
-install-panel: install-templates
-	install -d -m 755 $(PANELDIR)
-	install -d -m 755 $(PANELDIR)/acl
-	install -d -m 755 $(PANELDIR)/admin $(PANELDIR)/admin/cvs $(PANELDIR)/admin/dns $(PANELDIR)/admin/group $(PANELDIR)/admin/repository $(PANELDIR)/admin/mail $(PANELDIR)/admin/mailing $(PANELDIR)/admin/mysql $(PANELDIR)/admin/object $(PANELDIR)/admin/pgsql $(PANELDIR)/admin/svn $(PANELDIR)/admin/user $(PANELDIR)/admin/web
-	install -d -m 755 $(PANELDIR)/cvs
-	install -d -m 755 $(PANELDIR)/dns
-	install -d -m 755 $(PANELDIR)/group
-	install -d -m 755 $(PANELDIR)/help
-	install -d -m 755 $(PANELDIR)/repository
-	install -d -m 755 $(PANELDIR)/mail
-	install -d -m 755 $(PANELDIR)/mailinglist
-	install -d -m 755 $(PANELDIR)/mysql
-	install -d -m 755 $(PANELDIR)/object
-	install -d -m 755 $(PANELDIR)/pgsql
-	install -d -m 755 $(PANELDIR)/public $(PANELDIR)/public/rss
-	install -d -m 755 $(PANELDIR)/svn
-	install -d -m 755 $(PANELDIR)/themes
-	install -d -m 755 $(PANELDIR)/user
-	install -d -m 755 $(PANELDIR)/web
-	#install files
-	install -m 644 vhffs-panel/*.ico                $(PANELDIR)/
-	install -m 755 vhffs-panel/*.pl                 $(PANELDIR)/
-	install -m 755 vhffs-panel/acl/*.pl             $(PANELDIR)/acl/
-	install -m 755 vhffs-panel/admin/*.pl           $(PANELDIR)/admin/
-	install -m 755 vhffs-panel/admin/cvs/*.pl       $(PANELDIR)/admin/cvs/
-	install -m 755 vhffs-panel/admin/dns/*.pl       $(PANELDIR)/admin/dns/
-	install -m 755 vhffs-panel/admin/group/*.pl     $(PANELDIR)/admin/group/
-	install -m 755 vhffs-panel/admin/repository/*.pl $(PANELDIR)/admin/repository/
-	install -m 755 vhffs-panel/admin/mail/*.pl      $(PANELDIR)/admin/mail/
-	install -m 755 vhffs-panel/admin/mailing/*.pl   $(PANELDIR)/admin/mailing/
-	install -m 755 vhffs-panel/admin/mysql/*.pl     $(PANELDIR)/admin/mysql/
-	install -m 755 vhffs-panel/admin/object/*.pl    $(PANELDIR)/admin/object/
-	install -m 755 vhffs-panel/admin/pgsql/*.pl     $(PANELDIR)/admin/pgsql/
-	install -m 755 vhffs-panel/admin/svn/*.pl       $(PANELDIR)/admin/svn/
-	install -m 755 vhffs-panel/admin/user/*.pl      $(PANELDIR)/admin/user/
-	install -m 755 vhffs-panel/admin/web/*.pl       $(PANELDIR)/admin/web/
-	install -m 755 vhffs-panel/cvs/*.pl             $(PANELDIR)/cvs/
-	install -m 755 vhffs-panel/dns/*.pl             $(PANELDIR)/dns/
-	install -m 755 vhffs-panel/group/*.pl           $(PANELDIR)/group/
-	install -m 755 vhffs-panel/help/*.html          $(PANELDIR)/help/
-	install -m 755 vhffs-panel/repository/*.pl      $(PANELDIR)/repository/
-	install -m 755 vhffs-panel/mail/*.pl            $(PANELDIR)/mail/
-	install -m 755 vhffs-panel/mailinglist/*.pl     $(PANELDIR)/mailinglist/
-	install -m 755 vhffs-panel/mysql/*.pl           $(PANELDIR)/mysql/
-	install -m 755 vhffs-panel/object/*.pl          $(PANELDIR)/object/
-	install -m 755 vhffs-panel/pgsql/*.pl           $(PANELDIR)/pgsql/
-	install -m 755 vhffs-panel/public/*.pl          $(PANELDIR)/public/
-	install -m 755 vhffs-panel/public/rss/*.pl      $(PANELDIR)/public/rss/
-	install -m 755 vhffs-panel/svn/*.pl             $(PANELDIR)/svn/
-	install -m 755 vhffs-panel/user/*.pl            $(PANELDIR)/user/
-	install -m 755 vhffs-panel/web/*.pl             $(PANELDIR)/web/
-	#install themes now
-	install -d -m 755 $(PANELDIR)/js
-	install -m 644 vhffs-panel/js/*.js				$(PANELDIR)/js/
-	#default theme
-	install -d -m 755 $(PANELDIR)/themes/vhffs
-	install -d -m 755 $(PANELDIR)/themes/vhffs/images
-	install -d -m 755 $(PANELDIR)/themes/vhffs/js
-	install -m 644 vhffs-panel/themes/vhffs/*.css        $(PANELDIR)/themes/vhffs/
-	install -m 644 vhffs-panel/themes/vhffs/images/*.png $(PANELDIR)/themes/vhffs/images/
-	install -m 644 vhffs-panel/themes/vhffs/js/*.js      $(PANELDIR)/themes/vhffs/js/
-	#next gen theme
-	install -d -m 755 $(PANELDIR)/themes/vhffs-ng
-	install -d -m 755 $(PANELDIR)/themes/vhffs-ng/images
-	install -d -m 755 $(PANELDIR)/themes/vhffs-ng/js
-	install -m 644 vhffs-panel/themes/vhffs-ng/*.css        $(PANELDIR)/themes/vhffs-ng/
-	install -m 644 vhffs-panel/themes/vhffs-ng/images/*.png $(PANELDIR)/themes/vhffs-ng/images/
-	install -m 644 vhffs-panel/themes/vhffs-ng/js/*.js		$(PANELDIR)/themes/vhffs-ng/js/
-
-
-test: test-object test-group test-user test-stats test-svn test-cvs test-web test-dns test-mail test-ml test-mysql test-pgsql test-functions test-repos
-test-object:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Object.pl");'
-test-group:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Group.pl");'
-test-user:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/User.pl");'
-test-stats:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Stats.pl");'
-test-svn:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Svn.pl");'
-test-cvs:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Cvs.pl");'
-test-web:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Httpd.pl");'
-test-dns:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/DNS.pl");'
-test-mail:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Mail.pl");'
-test-ml:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Mailing.pl");'
-test-mysql:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Mysql.pl");'
-test-pgsql:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Postgres.pl");'
-test-functions:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Functions.pl");'
-test-repos:
-	@perl -I vhffs-tests/src/ -I vhffs-api/src/ -e 'use Test::Harness; Test::Harness::runtests("vhffs-tests/src/Services/Repository.pl");'

Added: trunk/Makefile.am
===================================================================
--- trunk/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,32 @@
+PERL = @PERL@
+
+SITE_CONFIG_FILE = @CONFDIR@/vhffs.conf
+
+SUBDIRS = vhffs-api vhffs-backend vhffs-doc vhffs-jabber vhffs-listengine \
+	vhffs-panel vhffs-robots vhffs-shells vhffs-tests
+
+EXTRA_DIST = vhffs-compat vhffs-forum vhffs-intl vhffs-irc vhffs-packages \
+	vhffs-rfc vhffs-tests vhffs-tools
+
+help:
+	@echo "Help for VHFFS makefile"
+	@echo " help           display this help"
+	@echo " install        install VHFFS on this host"
+	@echo " test-deps      Verify all dependecies"
+
+post-inst:
+	@echo "Congratulations ! VHFFS is now installed."
+	@echo ""
+	@echo ""
+	@echo "You must now configure vhffs by editing $(SITE_CONFIG_FILE)."
+	@echo ""
+	@echo "Make sure you setup database information, hostname and services"
+
+test-deps:
+	$(PERL) ./vhffs-test-dependencies --verbose --verify=all
+	
+test:
+	$(make) vhffs-tests/
+
+dist-hook:
+	rm -rf `find $(distdir)/ -name '.svn'`
\ No newline at end of file

Added: trunk/NEWS
===================================================================
--- trunk/NEWS	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/NEWS	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1 @@
+VHFFS project
\ No newline at end of file

Modified: trunk/README
===================================================================
--- trunk/README	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/README	2007-04-15 22:37:14 UTC (rev 563)
@@ -10,3 +10,9 @@
 If you are English and you speak French, you can translate the vhffsbook ;-)
 
 To install VHFFS, try make help in the root
+
+To run autotools, run : 
+
+aclocal
+autoheader
+automake
\ No newline at end of file

Added: trunk/bootstrap.sh
===================================================================
--- trunk/bootstrap.sh	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/bootstrap.sh	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -x
+aclocal
+automake --add-missing --copy
+autoconf 	

Added: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/configure.ac	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,212 @@
+AC_REVISION($Revision: 101 $)dnl
+AC_INIT(vhffs, [4.1-trunk], [support@xxxxxxxxx])
+
+
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_SED
+AC_PREFIX_DEFAULT([/usr])
+
+AC_PATH_PROG([PERL], [perl], [not found])
+if test "$PERL" = 'not found'; then
+	AC_MSG_ERROR([perl is needed to run $PACKAGE_NAME])
+fi
+
+AM_INIT_AUTOMAKE([no-define no-define dist-bzip2])
+
+
+# --- Specific path
+AC_ARG_WITH(conf-path,
+	AC_HELP_STRING([--with-conf-path=path],
+		[Complete path for configuration files (/etc/vhffs)]),
+	CONFDIR=$withval,
+	CONFDIR=/etc/vhffs
+)
+AC_SUBST(CONFDIR)
+
+AC_ARG_WITH(shell-path,
+	AC_HELP_STRING([--with-shell-path=path],
+		[Complete path for tux shell (/bin)]),
+	SHELLDIR=$withval,
+	SHELLDIR=/usr/bin
+)
+AC_SUBST(SHELLDIR)
+
+dnl Where to store configuration files
+AC_ARG_WITH(tools-path,
+	AC_HELP_STRING([--with-tools-path=path],
+		[Complete path for tools (executables) (/usr/local/bin)]),
+	TOOLSDIR=$withval,
+	TOOLSDIR=/usr/local/bin
+)
+AC_SUBST(TOOLSDIR)
+
+dnl Documentation
+AC_ARG_WITH(doc-path,
+	AC_HELP_STRING([--with-doc-path=path],
+		[Complete path for documentation files (/usr/share/doc/vhffs)]),
+	DOCDIR=$withval,
+	DOCDIR=/usr/share/doc/vhffs
+)
+AC_SUBST(DOCDIR)
+
+dnl perl modules
+AC_ARG_WITH(api-path,
+	AC_HELP_STRING([--with-api-path=path],
+		[Path for perl modules (API) (/usr/share/vhffs/api)]),
+	VHFFS_LIBDIR=$withval,
+	VHFFS_LIBDIR=/usr/share/vhffs/api
+)
+APIDIR=$VHFFS_LIBDIR/Vhffs
+AC_SUBST(APIDIR)
+AC_SUBST(VHFFS_LIBDIR)
+
+dnl web panel
+AC_ARG_WITH(web-path,
+	AC_HELP_STRING([--with-web-path=path],
+		[Complete path for web interface (panel) (/usr/share/vhffs/panel)]),
+	PANELDIR=$withval,
+	PANELDIR=/usr/share/vhffs/panel
+)
+AC_SUBST(PANELDIR)
+
+dnl templates
+AC_ARG_WITH(template-path,
+	AC_HELP_STRING([--with-template-path=path],
+		[Complete path for web templates (panel) (/usr/share/vhffs/templates)]),
+	TEMPLATESDIR=$withval,
+	TEMPLATESDIR=/usr/share/vhffs/panel
+)
+AC_SUBST(TEMPLATESDIR)
+
+AC_ARG_WITH(backend-path,
+	AC_HELP_STRING([--with-backend-path=path],
+		[Complete path for web backend (/usr/share/vhffs/backend)]),
+	BACKENDDIR=$withval,
+	BACKENDDIR=/usr/share/vhffs/backend
+)
+AC_SUBST(BACKENDDIR)
+
+dnl Bots path
+AC_ARG_WITH(robot-path,
+	AC_HELP_STRING([--with-robot-path=path],
+		[Complete path for robots file (/usr/lib/vhffs/bots)]),
+	BOTSDIR=$withval,
+	BOTSDIR=/usr/lib/vhffs/bots
+)
+AC_SUBST(BOTSDIR)
+
+dnl jabber pipe
+AC_ARG_WITH(jabber-path,
+	AC_HELP_STRING([--with-jabber-path=path],
+		[Complete path for jabber pipe (/usr/share/vhffs/jabber)]),
+	JABBERDIR=$withval,
+	JABBERDIR=/usr/share/vhffs/jabber
+)
+AC_SUBST(JABBERDIR)
+
+dnl Listengine
+AC_ARG_WITH(listengine-path,
+	AC_HELP_STRING([--with-listengine-path=path],
+		[Complete path for jabber pipe (/usr/lib/vhffs/listengine)]),
+	LEDIR=$withval,
+	LEDIR=/usr/lib/vhffs/listengine
+)
+AC_SUBST(LEDIR)
+
+dnl Listengine web files
+AC_ARG_WITH(listengine-web-path,
+	AC_HELP_STRING([--with-listengine-web-path=path],
+		[Complete path for listengine web file (/usr/share/vhffs/listengine)]),
+	LEWEB=$withval,
+	LEWEB=/usr/lib/vhffs/listengine
+)
+AC_SUBST(LEWEB)
+
+dnl Mail
+AC_ARG_WITH(mail-path,
+	AC_HELP_STRING([--with-mail-path=path],
+		[Complete path for email files (/usr/share/vhffs/mails)]),
+	MAILSDIR=$withval,
+	MAILSDIR=/usr/lib/vhffs/listengine
+)
+AC_SUBST(MAILSDIR)
+
+dnl documentation
+AC_ARG_WITH(doc-path,
+	AC_HELP_STRING([--with-doc-path=path],
+		[Complete path for documentation files (/usr/share/vhffs/mails)]),
+	DOCSDIR=$withval,
+	DOCSDIR=/usr/docs/
+)
+AC_SUBST(DOCSDIR)
+
+dnl setup min uid and gid
+AC_ARG_WITH(min-uid,
+	AC_HELP_STRING([--with-min-uid=uid],
+		[What is the minimal UID for VHFFS users (10000)]),
+	MINUID=$withval,
+	MINUID=10000
+)
+AC_SUBST(MINUID)
+
+AC_ARG_WITH(min-gid,
+	AC_HELP_STRING([--with-min-gid=gid],
+		[What is the minimal GID for VHFFS groups (10000)]),
+	MINGID=$withval,
+	MINGID=10000
+)
+AC_SUBST(MINGID)
+
+
+# -- Starting system checks
+AC_CHECK_HEADERS([stdlib.h string.h sys/time.h syslog.h unistd.h])
+
+# Needed for tuxshell
+AC_CONFIG_SRCDIR([vhffs-shells/tuxshell.c])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_HEADER_TIME
+AC_HEADER_STDBOOL
+AC_TYPE_UID_T
+
+# Checks for library functions.
+AC_FUNC_CLOSEDIR_VOID
+AC_FUNC_FORK
+AC_CHECK_FUNCS([gettimeofday])
+
+
+# -- Files to generate
+AC_CONFIG_FILES([
+	vhffs-test-dependencies],
+	[chmod ug+x $ac_file]
+)
+
+AC_CONFIG_FILES([
+	vhffs-compat/4.0.sql
+	vhffs-backend/src/pgsql/initdb.sql
+	vhffs-backend/conf/vhffs.conf.dist])
+
+AC_CONFIG_FILES([
+	Makefile
+	vhffs-api/Makefile
+	vhffs-api/src/Makefile
+	vhffs-api/src/Vhffs/Makefile
+	vhffs-backend/Makefile
+	vhffs-doc/Makefile
+	vhffs-jabber/Makefile
+	vhffs-listengine/Makefile
+	vhffs-listengine/src/Makefile
+	vhffs-listengine/src/archives/Makefile
+	vhffs-panel/Makefile
+	vhffs-panel/templates/Makefile
+	vhffs-robots/Makefile
+	vhffs-shells/Makefile
+	vhffs-tests/Makefile
+	vhffs-tests/src/Makefile
+	vhffs-tools/Makefile
+	vhffs-tools/src/Makefile
+	],
+)
+
+AC_OUTPUT
\ No newline at end of file

Deleted: trunk/vhffs-api/AUTHORS
===================================================================
--- trunk/vhffs-api/AUTHORS	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/AUTHORS	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,2 +0,0 @@
-AUTHORS of Vhffs :
-	- Julien Delange (soda)

Added: trunk/vhffs-api/Makefile.am
===================================================================
--- trunk/vhffs-api/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,3 @@
+SUBDIRS = src
+EXTRA_DIST = debian
+

Deleted: trunk/vhffs-api/src/Changelog
===================================================================
--- trunk/vhffs-api/src/Changelog	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Changelog	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,33 +0,0 @@
-09/08/2004
-   * Now, there are two databases : one for reading, another for writing.
-   Useful for replication
-   * User and Group inherit from Object
-   * Update databases schemas
-
-08/08/2004
-   * Update User, Group, test_user
-   * Make User and Group herit from Object
-   * User.pm contains now a Group
-   * Fix some bugs
-
-
-01/07/2004 (soda)
-   * Update Httpd.pm
-   * Change the way to store informations. Use $self->{'blabla'} instead of
-     $infos->{'blabla'}. Better way to herit.
-   * Create ACL.pm
-   * Fix Httpd.pm
-   * Fix Object.pm
-
-14/06/2004 (soda)
-   * Update Httpd.pm
-   * Will try to use $self->{'infos'}->{'field'} instead $infos->{'field'}
-     Cause I'm not sure that $infos->... is really OO for Perl.
-   * Update Object.pm
-   * Some problems with heritage
-
-13/06/2004 (soda)
-   * Create this file
-   * Add Object.pm and Httpd.pm
-   * username is forced to lowercase now
-

Added: trunk/vhffs-api/src/Makefile.am
===================================================================
--- trunk/vhffs-api/src/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,3 @@
+SUBDIRS = Vhffs
+EXTRA_DIST = examples
+

Modified: trunk/vhffs-api/src/Vhffs/Acl.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Acl.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Acl.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Constants.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Constants.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Constants.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl
-
 package Vhffs::Constants;
 
 use strict;

Modified: trunk/vhffs-api/src/Vhffs/DB.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/DB.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/DB.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Debug.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Debug.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Debug.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Functions.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Functions.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Group.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Group.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Intl.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Intl.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Intl.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Listengine/Intl.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Listengine/Intl.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Listengine/Intl.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Listengine/Listengine.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Listengine/Listengine.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Listengine/Listengine.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Listengine/Mail.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Listengine/Mail.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Listengine/Mail.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Listengine/Panel.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Listengine/Panel.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Listengine/Panel.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Main.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Main.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Added: trunk/vhffs-api/src/Vhffs/Makefile.am
===================================================================
--- trunk/vhffs-api/src/Vhffs/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,71 @@
+apidir = @APIDIR@
+nobase_api_DATA = \
+	Acl.pm \
+	Conf.pm \
+	Constants.pm \
+	DB.pm \
+	Debug.pm \
+	Functions.pm \
+	Group.pm \
+	Intl.pm \
+	Main.pm \
+	Note.pm \
+	Object.pm \
+	Robots.pm \
+	Stats.pm \
+	User.pm \
+	Listengine/Intl.pm \
+	Listengine/Listengine.pm \
+	Listengine/Mail.pm \
+	Listengine/Panel.pm \
+	Misc/Listengine.pm \
+	Misc/Mailings.pm \
+	Misc/Salt.pm \
+	Panel/Admin.pm \
+	Panel/Avatar.pm \
+	Panel/Commons.pm \
+	Panel/Confirmation.pm \
+	Panel/Cvs.pm \
+	Panel/DNS.pm \
+	Panel/Group.pm \
+	Panel/Handler.pm \
+	Panel/Mail.pm \
+	Panel/Mailinglist.pm \
+	Panel/Main.pm \
+	Panel/Menu.pm \
+	Panel/Mysql.pm \
+	Panel/Object.pm \
+	Panel/Pgsql.pm \
+	Panel/Repository.pm \
+	Panel/Svn.pm \
+	Panel/User.pm \
+	Panel/Web.pm \
+	Robots/Cvs.pm \
+	Robots/Group.pm \
+	Robots/Mailing.pm \
+	Robots/Mysql.pm \
+	Robots/Postgres.pm \
+	Robots/Repository.pm \
+	Robots/Svn.pm \
+	Robots/User.pm \
+	Robots/Web.pm \
+	Services/Cvs.pm \
+	Services/DNS.pm \
+	Services/Httpd.pm \
+	Services/Mail.pm \
+	Services/Mailing.pm \
+	Services/MailUser.pm \
+	Services/Mysql.pm \
+	Services/Postgres.pm \
+	Services/Repository.pm \
+	Services/Svn.pm
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+install-data-hook:
+	for f in $(nobase_api_DATA) ; do \
+		$(do_sed) $(DESTDIR)$(apidir)/$$f; \
+	done

Modified: trunk/vhffs-api/src/Vhffs/Misc/Listengine.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Misc/Listengine.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Misc/Listengine.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Misc/Mailings.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Misc/Mailings.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Misc/Mailings.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Misc/Salt.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Misc/Salt.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Misc/Salt.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Note.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Note.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Note.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Object.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Object.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Object.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -94,7 +93,7 @@
 
 sub _new {
     my ($class, $main, $oid, $owner_uid, $date_creation, $description, $state, $type) = @_;
-
+    
     $self = {};
 
     bless($self, $class);

Modified: trunk/vhffs-api/src/Vhffs/Panel/Admin.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Admin.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Admin.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Avatar.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Avatar.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Avatar.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Commons.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Commons.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Commons.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Confirmation.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Confirmation.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Confirmation.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Cvs.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/DNS.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/DNS.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/DNS.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Group.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Group.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Mail.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Mail.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Mail.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Mailinglist.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Mailinglist.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Mailinglist.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 
 package Vhffs::Panel::Main;
 require Exporter;

Modified: trunk/vhffs-api/src/Vhffs/Panel/Menu.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Menu.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Menu.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Mysql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Mysql.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Mysql.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Object.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Object.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Object.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Pgsql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Pgsql.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Pgsql.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Repository.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Repository.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Repository.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Svn.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Svn.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Svn.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/User.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/User.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Panel/Web.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Web.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Panel/Web.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Cvs.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Group.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Group.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Mailing.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Mailing.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Mailing.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Postgres.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Postgres.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Postgres.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Repository.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Repository.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Repository.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Svn.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Svn.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Svn.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/User.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/User.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots/Web.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Web.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots/Web.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Robots.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Robots.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Cvs.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Cvs.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Cvs.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/DNS.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/DNS.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Httpd.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Httpd.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Httpd.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Mail.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/MailUser.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/MailUser.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/MailUser.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Mailing.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mailing.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Mailing.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Mysql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mysql.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Mysql.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Postgres.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Postgres.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Postgres.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Repository.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Repository.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Repository.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Services/Svn.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Svn.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Services/Svn.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/Stats.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Stats.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/Stats.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/Vhffs/User.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,3 @@
-#!/usr/bin/perl
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Added: trunk/vhffs-api/src/examples/Makefile.am
===================================================================
--- trunk/vhffs-api/src/examples/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,60 @@
+examples_SCRIPTS = \
+	add_acl_dns.pl \
+	add_acl.pl \
+	create_box.pl \
+	create_cvs_panel.pl \
+	create_cvs.pl \
+	create_dir.pl \
+	create_dns.pl \
+	create_forward.pl \
+	create_group_by_panel.pl \
+	create_group.pl \
+	create_list.pl \
+	create_mail.pl \
+	create_mysql_panel.pl \
+	create_mysql.pl \
+	create_panel_mail.pl \
+	create_postgres.pl \
+	create_repository.pl \
+	create_user.pl \
+	create_web_panel.pl \
+	create_web.pl \
+	delbox.pl \
+	delete_acl.pl \
+	generate_password.pl \
+	get_list.pl \
+	hashdomain.pl \
+	hashhome_example.pl \
+	hashpopuser.pl \
+	hash_webdir.pl \
+	join_group.pl \
+	list_themes.pl \
+	mailuser_add_box.pl \
+	mailuser.pl \
+	modify_acl.pl \
+	modify_user.pl \
+	perm_for_user.pl \
+	print_domain.pl \
+	show_acl_per_object.pl \
+	show_dns_per_group.pl \
+	show_dns_per_user.pl \
+	show_dumper_cvs.pl \
+	show_dumper_group.pl \
+	show_dumper_object.pl \
+	show_dumper_user.pl \
+	show_groups_per_user.pl \
+	show_last_users.pl \
+	show_mail_conf.pl \
+	show_mail_per_group.pl \
+	show_members_from_list.pl \
+	stats.pl
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(APIDIR),g'
+
+install-data-hook:
+	for f in $(examples_DATA) ; do \
+		$(do_sed) $$f; \
+	done

Modified: trunk/vhffs-api/src/examples/add_acl.pl
===================================================================
--- trunk/vhffs-api/src/examples/add_acl.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/add_acl.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Services::Httpd;

Modified: trunk/vhffs-api/src/examples/add_acl_dns.pl
===================================================================
--- trunk/vhffs-api/src/examples/add_acl_dns.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/add_acl_dns.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w 
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Services::DNS;

Modified: trunk/vhffs-api/src/examples/create_box.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Services::Mail;
 

Modified: trunk/vhffs-api/src/examples/create_cvs.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_cvs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_cvs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_cvs_panel.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_cvs_panel.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_cvs_panel.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/create_dir.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_dir.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_dir.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Functions;
 
 print Vhffs::Functions::create_dir( "/data/prout/zozoo/pezojfzpje" );

Modified: trunk/vhffs-api/src/examples/create_dns.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_dns.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_dns.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_forward.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w 
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Services::Mail;
 

Modified: trunk/vhffs-api/src/examples/create_group.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_group_by_panel.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_group_by_panel.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_group_by_panel.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Group;

Modified: trunk/vhffs-api/src/examples/create_list.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_mail.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_mail.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_mail.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_mysql.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_mysql_panel.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_mysql_panel.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_mysql_panel.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/create_panel_mail.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_panel_mail.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_panel_mail.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/create_postgres.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_postgres.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_postgres.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_repository.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_web.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_web.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_web.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/create_web_panel.pl
===================================================================
--- trunk/vhffs-api/src/examples/create_web_panel.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/create_web_panel.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/delbox.pl
===================================================================
--- trunk/vhffs-api/src/examples/delbox.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/delbox.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,8 +1,8 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 
 use Vhffs::Conf;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/delete_acl.pl
===================================================================
--- trunk/vhffs-api/src/examples/delete_acl.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/delete_acl.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/generate_password.pl
===================================================================
--- trunk/vhffs-api/src/examples/generate_password.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/generate_password.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 

Modified: trunk/vhffs-api/src/examples/get_list.pl
===================================================================
--- trunk/vhffs-api/src/examples/get_list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/get_list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Data::Dumper;
 use Vhffs::Main;
 use Vhffs::Services::Mailing;

Modified: trunk/vhffs-api/src/examples/hash_webdir.pl
===================================================================
--- trunk/vhffs-api/src/examples/hash_webdir.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/hash_webdir.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Functions;
 
 print Vhffs::Functions::hash_webdir( "zozo.tata.com" );

Modified: trunk/vhffs-api/src/examples/hashdomain.pl
===================================================================
--- trunk/vhffs-api/src/examples/hashdomain.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/hashdomain.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Functions;
 
 print Vhffs::Functions::hash_mxdomain("tuxfamily.org");

Modified: trunk/vhffs-api/src/examples/hashhome_example.pl
===================================================================
--- trunk/vhffs-api/src/examples/hashhome_example.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/hashhome_example.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Functions;
 use Vhffs::Main;
 use Data::Dumper;

Modified: trunk/vhffs-api/src/examples/hashpopuser.pl
===================================================================
--- trunk/vhffs-api/src/examples/hashpopuser.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/hashpopuser.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Functions;
 
 print Vhffs::Functions::hash_popuser("soda");

Modified: trunk/vhffs-api/src/examples/join_group.pl
===================================================================
--- trunk/vhffs-api/src/examples/join_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/join_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/list_themes.pl
===================================================================
--- trunk/vhffs-api/src/examples/list_themes.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/list_themes.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 use Vhffs::Main;
 use Data::Dumper;

Modified: trunk/vhffs-api/src/examples/mailuser.pl
===================================================================
--- trunk/vhffs-api/src/examples/mailuser.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/mailuser.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/mailuser_add_box.pl
===================================================================
--- trunk/vhffs-api/src/examples/mailuser_add_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/mailuser_add_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/modify_acl.pl
===================================================================
--- trunk/vhffs-api/src/examples/modify_acl.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/modify_acl.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Services::Httpd;

Modified: trunk/vhffs-api/src/examples/modify_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/modify_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/modify_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/perm_for_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/perm_for_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/perm_for_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,7 +1,7 @@
-#!/usr/bin/perl
+#!%PERL%
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-api/src/examples/print_domain.pl
===================================================================
--- trunk/vhffs-api/src/examples/print_domain.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/print_domain.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Services::DNS;
 

Modified: trunk/vhffs-api/src/examples/show_acl_per_object.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_acl_per_object.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_acl_per_object.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl  -I/vhffs/vhffs-api/src/
+#!%PERL%
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Acl;
 use Vhffs::Services::Mysql;

Modified: trunk/vhffs-api/src/examples/show_dns_per_group.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dns_per_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dns_per_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL%
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Group;
 use Vhffs::Main;
 use Vhffs::Panel::DNS;

Modified: trunk/vhffs-api/src/examples/show_dns_per_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dns_per_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dns_per_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::DNS;

Modified: trunk/vhffs-api/src/examples/show_dumper_cvs.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dumper_cvs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dumper_cvs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/show_dumper_group.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dumper_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dumper_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Group;
 use Vhffs::Main;
 

Modified: trunk/vhffs-api/src/examples/show_dumper_object.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dumper_object.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dumper_object.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/show_dumper_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_dumper_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_dumper_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 

Modified: trunk/vhffs-api/src/examples/show_groups_per_user.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_groups_per_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_groups_per_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Group;

Modified: trunk/vhffs-api/src/examples/show_last_users.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_last_users.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_last_users.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/show_mail_conf.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_mail_conf.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_mail_conf.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Conf;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-api/src/examples/show_mail_per_group.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_mail_per_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_mail_per_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Group;
 use Vhffs::Main;
 use Vhffs::Panel::Mail;

Modified: trunk/vhffs-api/src/examples/show_members_from_list.pl
===================================================================
--- trunk/vhffs-api/src/examples/show_members_from_list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/show_members_from_list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/
+#!%PERL% -w
 
 
 use strict;
 
 use Data::Dumper;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Services::Mailing;
 

Modified: trunk/vhffs-api/src/examples/stats.pl
===================================================================
--- trunk/vhffs-api/src/examples/stats.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-api/src/examples/stats.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Stats;
 

Added: trunk/vhffs-backend/Makefile.am
===================================================================
--- trunk/vhffs-backend/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,20 @@
+config_DATA = conf/vhffs.conf.dist
+configdir = @CONFDIR@
+CONF_FILE = @CONFDIR@/vhffs.conf
+
+install-data-hook:
+	@if test -f $(DESTDIR)$(CONF_FILE) ; then \
+		echo "$@ will not overwrite existing $(DESTDIR)$(CONF_FILE)" ; \
+	else \
+		echo "$(INSTALL_DATA) vhffs.conf $(DESTDIR)$(CONF_FILE)"; \
+		$(INSTALL_DATA) $(config_DATA) $(DESTDIR)$(CONF_FILE); \
+	fi
+
+maildir = @MAILSDIR@
+mail_DATA = \
+	mails/largefile-copyfailed \
+	mails/largefile-finished \
+	mails/largefile-upload 
+	
+backenddir = @BACKENDDIR@
+backend_DATA = src/pgsql/initdb.sql

Deleted: trunk/vhffs-backend/conf/vhffs.conf
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/conf/vhffs.conf	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,361 +0,0 @@
-######
-# This is the default configuration file for VHFFS
-# Please ask vhffs@xxxxxxxxx for questions
-# Visit http://www.vhffs.org
-###############################
-<global>
-	#This is the name of your hosting service
-	host_name		=	My Hosting service
-
-	#The directory where you store ALL data
-	datadir			=	/data
-
-	#Directory which contains templates for the vhffs panel
-	templatedir		=	/usr/share/vhffs/templates/
-
-	#Directory which contains themes
-	themesdir		=	/usr/share/vhffs/panel/themes/
-
-	#The default theme
-	default_theme		=	vhffs
-
-	#Directory which contains internationalisation stuff
-	intldir			=	/usr/share/vhffs/intl/
-
-	#The default language
-	default_language	=	en_US
-
-	#Mail sent to hosted people have From: vhffs_master
-	vhffs_master 		=	VHFFS Admin <admin@localhost>
-
-	#Mail of moderator
-	vhffs_moderator 	=	VHFFS Admin <moderator@localhost>
-
-	#Tag inserted in the subject of each sended mail
-	mailtag 		=	[VHFFS]
-
-	#Allow subscribing to the platform
-	allow_subscribe		=	yes
-
-	#The mail where alert are sent
-	alert_mail		=	root@localhost
-
-	moderation		= yes
-
-	########
-	#Modules
-	#For each modules, you can use it if you declare "yes"
-	#For example, to disable the web service, you
-	#can specify use_web = no
-	<modules>
-		use_web		=	yes
-		use_mysql	=	yes
-		use_mail	=	no
-		use_cvs		=	no
-		use_svn		=	no
-		use_postgres	=	no
-		use_dns		=	no
-		use_mailing	=	no
-		use_mailuser	=	no
-		use_repository	=	no
-	</modules>
-
-	####################
-	#Panel configuration
-	<panel>
-		#URL to the panel
-		url				=   http://your.panel.url
-
-		#This is the URL display for the "Help" link in the panel
-		help_url		=	http://help.hoster
-
-		#URL to the statistics
-		stats_url		=	http://stats.hoster
-
-
-		phpmyadmin_url		=	http://phpmyadmin.hoster
-		phppgadmin_url		=	http://phppgadmin.hoster
-
-		#Is the panel open or not ?
-		open			= yes
-
-		#Key to crypt the confirmation code, it must be 8 characters long
-		subscribe_code_encrypt_key	=	AbCdEfGh
-
-		#Use the public section of VHFFS
-		use_public		=	yes
-
-		#Use avatar or not ? If yes, you must create a /data/avatars and change owner/permissions
-		#so that the webserver can write into this directory
-		use_avatar		= yes
-		users			=	yes
-		groups			=	yes
-
-		#Print statistics in the main page of VHFFS ?
-		stats_on_home		=	yes
-
-		#Notation is useful to handle aggressive users
-		#If a project is refused by moderation, the note os the user if decreased
-		#If a project or service is accepted, the note is increased
-		use_notation		= yes
-
-		#Use RSS for users and groups ?
-		<rss>
-			users		=	yes
-			groups		=	yes
-		</rss>
-	</panel>
-</global>
-
-
-
-
-#################################################
-# Backend configuration
-#################################################
-<database>
-		driver = pg
-		#Database to use
-		db_name=vhffs
-		#Read Write User Name
-		db_username=vhffs
-		#Passwor
-		db_password=vhffs
-		#DataBase Server
-		db_host=localhost
-		#Database port
-		db_port = 5432
-</database>
-
-
-################################################
-# USERS AND GROUPS
-################################################
-#the default configuration for users
-<users>
-	minuid	=	10000
-	shell	= 	/usr/bin/tuxshell
-	mingid	=	10000
-	default_quota	=	50
-	bad_username_file =	/etc/vhffs/badfile
-	bad_groupname_file	=	/etc/vhffs/badgroup
-	default_firstname = Vhffs Firstname
-	default_lastname = Vhffs Lastname
-	default_address = Vhffs Address
-	default_city = Vhffs City
-	default_zipcode = 123456
-	default_mail = dave@xxxxxxxx
-	default_country = Disneyland
-</users>
-
-
-
-<system>
-	<shells>
-		available	=	/bin/false /bin/tuxshell /bin/bash
-		default		= 	/bin/false
-	</shells>
-</system>
-
-
-#####################################
-# SERVICES
-#####################################
-<services>
-
-	<web>
-		# Where to find log from webserver, each webserver should be in a separate directory, example :
-		# - /data/logs/web/incoming/webserver0
-		# - /data/logs/web/incoming/webserver1
-		# - ...
-		log_incoming_root = /data/logs/web/incoming
-
-		# The number of maximum rotations, a rotation is made each time the robot to create stats is ran
-		log_incoming_rotations = 7
-
-		# Should I compress rotated logs ?
-		log_incoming_compress = yes
-
-		# Where to put parsed logfile from each website, it uses the same hash model of web storage,
-		# consider using the same tree for both so user have access to its logs in its ftp account.
-		# If log_parsed_root = /data/web and log_parsed_dir = logs then example.com logs
-		# will be in /data/web/1b/df/72/example.com/logs/
-		log_parsed_root = /data/web
-
-		# Same as incoming
-		log_parsed_rotation = 7
-		log_parsed_compress = yes		
-
-		# Where to find the awstats sample file ?
-		log_awstats_sample = /usr/lib/vhffs/bots/misc/awstats.sample
-
-		# Where to find awstats (caution, you must apply the vhffs patch on)
-		log_awstats = /var/www/stats/awstats.pl
-
-		# Is apache running locally or not ? (If not you should use the ugly remote restart of apaches over nfs)
-		log_apachelocal = yes
-
-		# If it runs locally, where is apache2ctl ?
-		log_apachectl = /usr/sbin/apache2ctl
-	</web>
-
-	#DNS configuration
-	<dns>
-		#Default configuration for each domain-name
-		default_ns1 = ns1.hoster.org
-		default_ns2 = ns2.hoster.org
-		default_mx1 = mx1.hoster.org
-		default_mx2 = mx2.hoster.org
-
-		default_a	= 1.2.3.4
-
-		default_ttl = 86400
-		default_aux = 0
-
-		default_refresh = 28800
-		default_retry = 7200
-		default_expire = 604800
-		default_minimum = 86400
-
-		default_serial = 1
-		default_mbox = adm.your.hoster.ext.
-		<init>
-			<a>
-				www = 80.0.0.1
-				default = 10.0.0.1
-			</a>
-			<mx>
-				10	=	mx1.hoster.org
-				20	=	mx2.hoster.org
-			</mx>
-			<ns>
-				ns1.hoster.org
-				ns2.hoster.org
-			</ns>
-		</init>
-	</dns>
-	<apache>
-		port=80
-		pidfile=/var/run/apache.pid
-		confdir=/etc/apache/conf/
-		htdocsdir=
-		default_domain = vhffs.org
-	</apache>
-
-	<cvs>
-		cvsweb_url = "http://cvsweb.hoster";	
-		cvsdoc_url = "http://faq.hoster";
-	</cvs>
-	<mysql>
-		host		= localhost
-		username	= root
-		password	= vhffs
-		mysqldump_path	= /usr/bin/mysqldump
-	</mysql>
-	<postgresql>
-		host		= localhost
-		username	= vhffs
-		password	= zepojf
-		pgdump_path	= /usr/bin/pg_dump
-	</postgresql>
-	<subversion>
-		svnweb_url = "http://svnweb.hoster";	
-		help_url	=	"http://myhost.tld/file.html";
-		uid	=	33
-		gid	=	33
-	</subversion>
-	<mail>
-		use_nospam	=	yes
-		use_novirus	=	yes
-	</mail>
-
-	#The mailuser service allow a user to get a mail account
-	#on a default domain
-	#With with module, ALL users get an email adress for a domain
-	#The domain MUST exists on VHFFS, and should be owned by the user given in this configuration
-	# groupneeded : the user cannot create his mail account if it doesn't have a group
-	<mailuser>
-		activate	=	no
-		groupneeded	=	yes
-		domain		=	myhost.org
-		user 		=	cat
-	</mailuser>
-	<mailing>
-		default_domain = lists.tuxfamily.org
-	</mailing>
-
-	#Configuration for listengine
-	<listengine>
-		#The domain is used when listengine bounces mails to SMTP server
-		#Listengine will send HELO domain to the SMTP sever
-		domain		=	"myhost.tld"
-		#Where we store listengine data
-		datadir		=	"/data/listengine"
-		#Email of listmaster
-		listmaster		= "listmaster@xxxxxxxxxx"
-		#SMTP Server to bounce listengine mails
-		smtp_server	= "localhost"
-		#Directory which contains template for the archives
-		templatesdir	=	/usr/share/vhffs/listengine/templates/
-		#Directory which contains misc files
-		miscdir		=	/usr/share/vhffs/listengine/misc/
-		#Url of archives
-		www-archives	=	http://localhost/listengine
-	</listengine>
-
-
-	#Configuration of download repository
-	<repository>
-		# Prefix of URL displayed in the panel
-		repository_url	=	"http://download.vhffs.org/";
-
-		# The default quota
-		default_quota	=	1024
-
-		# Where to find log from downloads servers, each server should be in a separate directory, example :
-		# - /data/logs/repository/incoming/webserver0
-		# - /data/logs/repository/incoming/webserver1
-		# - ...
-		# and http log must be called http.log and ftp log ftp.log
-		log_incoming_root = /data/logs/repository/incoming
-
-		# The number of maximum rotations, a rotation is made each time the robot to create stats is ran
-		log_incoming_rotations = 7
-
-		# Should I compress rotated logs ?
-		log_incoming_compress = yes
-
-		# Where to put parsed logfile from each repository
-		log_parsed_root = /data/logs/repository/parsed
-
-		# Same as incoming
-		log_parsed_rotation = 7
-		log_parsed_compress = yes		
-
-		# Where to find the awstats sample file ?
-		log_awstats_sample = /usr/lib/vhffs/bots/misc/repository.awstats.sample
-
-		# Where to find awstats (caution, you must apply the vhffs patch on)
-		log_awstats = /data/logs/repository/awstats.pl
-
-		# Is apache running locally or not ? (If not you should use the ugly remote restart of apaches over nfs)
-		log_apachelocal = yes
-
-		# If it runs locally, where is apache2ctl ?
-		log_apachectl = /usr/sbin/apache2ctl
-	</repository>
-</services>
-
-
-#Robots configuration
-<robots>
-	#Robots should log or not ?
-	use_logging = yes
-	#Logfile to log events
-	logfile = /var/log/vhffs.log
-	#Robots should use lock file ?
-	#If they do, only one robot can be executed in the same-time
-	use_lock = yes
-	lockfile = /var/lock/vhffslock
-</robots>
-	

Added: trunk/vhffs-backend/conf/vhffs.conf.dist.in
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf.dist.in	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/conf/vhffs.conf.dist.in	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,324 @@
+######
+# This is the default configuration file for VHFFS
+# Please ask vhffs@xxxxxxxxx for questions
+# Visit http://www.vhffs.org
+###############################
+<global>
+	#This is the name of your hosting service
+	host_name		=	My Hosting service
+
+	#The directory where you store ALL data
+	datadir			=	/data
+
+	#Directory which contains templates for the vhffs panel
+	templatedir		=	@TEMPLATESDIR@
+
+	#Directory which contains themes
+	themesdir		=	@PANELDIR@/themes
+
+	#The default theme
+	default_theme		=	vhffs
+
+	#Directory which contains internationalisation stuff
+	intldir			=	/usr/share/vhffs/intl/
+
+	#The default language
+	default_language	=	en_US
+
+	#Mail sent to hosted people have From: vhffs_master
+	vhffs_master 		=	VHFFS Admin <admin@localhost>
+
+	#Mail of moderator
+	vhffs_moderator 	=	VHFFS Admin <moderator@localhost>
+
+	#Tag inserted in the subject of each sended mail
+	mailtag 		=	[VHFFS]
+
+	#Allow subscribing to the platform
+	allow_subscribe		=	yes
+
+	#The mail where alert are sent
+	alert_mail		=	root@localhost
+
+	moderation		= yes
+
+	########
+	#Modules
+	#For each modules, you can use it if you declare "yes"
+	#For example, to disable the web service, you
+	#can specify use_web = no
+	<modules>
+		use_web		=	yes
+		use_mysql	=	yes
+		use_mail	=	no
+		use_cvs		=	no
+		use_svn		=	no
+		use_postgres	=	no
+		use_dns		=	no
+		use_mailing	=	no
+		use_mailuser	=	no
+		use_repository	=	no
+	</modules>
+
+	####################
+	#Panel configuration
+	<panel>
+		#URL to the panel
+		url				=   http://your.panel.url
+
+		#This is the URL display for the "Help" link in the panel
+		help_url		=	http://help.hoster
+
+		#URL to the statistics
+		stats_url		=	http://stats.hoster
+
+
+		phpmyadmin_url		=	http://phpmyadmin.hoster
+		phppgadmin_url		=	http://phppgadmin.hoster
+
+		#Is the panel open or not ?
+		open			= yes
+
+		#Key to crypt the confirmation code, it must be 8 characters long
+		subscribe_code_encrypt_key	=	AbCdEfGh
+
+		#Use the public section of VHFFS
+		use_public		=	yes
+
+		#Use avatar or not ? If yes, you must create a /data/avatars and change owner/permissions
+		#so that the webserver can write into this directory
+		use_avatar		= yes
+		users			=	yes
+		groups			=	yes
+
+		#Print statistics in the main page of VHFFS ?
+		stats_on_home		=	yes
+
+		#Notation is useful to handle aggressive users
+		#If a project is refused by moderation, the note os the user if decreased
+		#If a project or service is accepted, the note is increased
+		use_notation		= yes
+
+		#Use RSS for users and groups ?
+		<rss>
+			users		=	yes
+			groups		=	yes
+		</rss>
+	</panel>
+</global>
+
+
+
+
+#################################################
+# Backend configuration
+#################################################
+<database>
+		driver = pg
+		#Database to use
+		db_name=vhffs
+		#Read Write User Name
+		db_username=vhffs
+		#Passwor
+		db_password=vhffs
+		#DataBase Server
+		db_host=localhost
+		#Database port
+		db_port = 5432
+</database>
+
+
+################################################
+# USERS AND GROUPS
+################################################
+#the default configuration for users
+<users>
+	minuid	=	@MINUID@
+	shell	= 	/usr/bin/tuxshell
+	mingid	=	@MINGID@
+	default_quota	=	50
+	bad_username_file =	@CONFDIR@/badfile
+	bad_groupname_file	=	@CONFDIR@/badgroup
+	default_firstname = Vhffs Firstname
+	default_lastname = Vhffs Lastname
+	default_address = Vhffs Address
+	default_city = Vhffs City
+	default_zipcode = 123456
+	default_mail = dave@xxxxxxxx
+	default_country = Disneyland
+</users>
+
+
+
+<system>
+	<shells>
+		available	=	/bin/false /bin/tuxshell /bin/bash
+		default		= 	/bin/false
+	</shells>
+</system>
+
+
+#####################################
+# SERVICES
+#####################################
+<services>
+
+	<web>
+		# Where to find log from webserver, each webserver should be in a separate directory, example :
+		# - /data/logs/web/incoming/webserver0
+		# - /data/logs/web/incoming/webserver1
+		# - ...
+		log_incoming_root = /data/logs/web/incoming
+
+		# The number of maximum rotations, a rotation is made each time the robots to create stats is ran
+		log_incoming_rotations = 7
+
+		# Should I compress rotated logs ?
+		log_incoming_compress = yes
+
+		# Where to put parsed logfile from each website, it uses the same hash model of web storage,
+		# consider using the same tree for both so user have access to its logs in its ftp account.
+		# If log_parsed_root = /data/web and log_parsed_dir = logs then example.com logs
+		# will be in /data/web/1b/df/72/example.com/logs/
+		log_parsed_root = /data/web
+
+		# Same as incoming
+		log_parsed_rotation = 7
+		log_parsed_compress = yes		
+
+		# Where to find the awstat sampe file ?
+		log_awstats_sample = /usr/lib/vhffs/bots/misc/awstats.sample
+
+		# Where to find awstat (caution, you must apply the vhffs patch on)
+		log_awstats = /var/www/stats/awstats.pl
+
+		# Is apache running locally or not ? (If not you should use the ugly remote restart of apaches over nfs)
+		log_apachelocal = yes
+
+		# If it runs locally, where is apache2ctl ?
+		log_apachectl = /usr/sbin/apache2ctl
+	</web>
+
+	#DNS configuration
+	<dns>
+		#Default configuration for each domain-name
+		default_ns1 = ns1.hoster.org
+		default_ns2 = ns2.hoster.org
+		default_mx1 = mx1.hoster.org
+		default_mx2 = mx2.hoster.org
+
+		default_a	= 1.2.3.4
+
+		default_ttl = 86400
+		default_aux = 0
+
+		default_refresh = 28800
+		default_retry = 7200
+		default_expire = 604800
+		default_minimum = 86400
+
+		default_serial = 1
+		default_mbox = adm.your.hoster.ext.
+		<init>
+			<a>
+				www = 80.0.0.1
+				default = 10.0.0.1
+			</a>
+			<mx>
+				10	=	mx1.hoster.org
+				20	=	mx2.hoster.org
+			</mx>
+			<ns>
+				ns1.hoster.org
+				ns2.hoster.org
+			</ns>
+		</init>
+	</dns>
+	<apache>
+		port=80
+		pidfile=/var/run/apache.pid
+		confdir=/etc/apache/conf/
+		htdocsdir=
+		default_domain = vhffs.org
+	</apache>
+
+	<cvs>
+		cvsweb_url = "http://cvsweb.hoster";	
+		cvsdoc_url = "http://faq.hoster";
+	</cvs>
+	<mysql>
+		host		= localhost
+		username	= root
+		password	= vhffs
+	</mysql>
+	<postgresql>
+		host		= localhost
+		username	= vhffs
+		password	= zepojf
+	</postgresql>
+	<subversion>
+		svnweb_url = "http://svnweb.hoster";	
+		help_url	=	"http://myhost.tld/file.html";
+		uid	=	33
+		gid	=	33
+	</subversion>
+	<mail>
+		use_nospam	=	yes
+		use_novirus	=	yes
+	</mail>
+
+	#The mailuser service allow a user to get a mail account
+	#on a default domain
+	#With with module, ALL users get an email adress for a domain
+	#The domain MUST exists on VHFFS, and should be owned by the user given in this configuration
+	# groupneeded : the user cannot create his mail account if it doesn't have a group
+	<mailuser>
+		activate	=	no
+		groupneeded	=	yes
+		domain		=	myhost.org
+		user 		=	cat
+	</mailuser>
+	<mailing>
+		default_domain = lists.tuxfamily.org
+	</mailing>
+
+	#Configuration for listengine
+	<listengine>
+		#The domain is used when listengine bounces mails to SMTP server
+		#Listengine will send HELO domain to the SMTP sever
+		domain		=	"myhost.tld"
+		#Where we store listengine data
+		datadir		=	"/data/listengine"
+		#Email of listmaster
+		listmaster		= "listmaster@xxxxxxxxxx"
+		#SMTP Server to bounce listengine mails
+		smtp_server	= "localhost"
+		#Directory which contains template for the archives
+		templatesdir	=	@LEWEB@/templates/
+		#Directory which contains misc files
+		miscdir		=	@LEDIR@/misc/
+		#Url of archives
+		www-archives	=	http://localhost/listengine
+	</listengine>
+
+
+	#Configuration of download repository
+	<repository>
+		repository_url	=	"http://download.vhffs.org/";
+		default_quota	=	1024
+	</repository>
+</services>
+
+
+#Robots configuration
+<robots>
+	#Robots should log or not ?
+	use_logging = yes
+	#Logfile to log events
+	logfile = /var/log/vhffs.log
+	#Robots should use lock file ?
+	#If they do, only one robot can be executed in the same-time
+	use_lock = yes
+	lockfile = /var/lock/vhffslock
+</robots>
+	

Added: trunk/vhffs-backend/conf/vhffs.conf.in
===================================================================
--- trunk/vhffs-backend/conf/vhffs.conf.in	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/conf/vhffs.conf.in	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,324 @@
+######
+# This is the default configuration file for VHFFS
+# Please ask vhffs@xxxxxxxxx for questions
+# Visit http://www.vhffs.org
+###############################
+<global>
+	#This is the name of your hosting service
+	host_name		=	My Hosting service
+
+	#The directory where you store ALL data
+	datadir			=	/data
+
+	#Directory which contains templates for the vhffs panel
+	templatedir		=	@TEMPLATESDIR@
+
+	#Directory which contains themes
+	themesdir		=	@PANELDIR@/themes
+
+	#The default theme
+	default_theme		=	vhffs
+
+	#Directory which contains internationalisation stuff
+	intldir			=	/usr/share/vhffs/intl/
+
+	#The default language
+	default_language	=	en_US
+
+	#Mail sent to hosted people have From: vhffs_master
+	vhffs_master 		=	VHFFS Admin <admin@localhost>
+
+	#Mail of moderator
+	vhffs_moderator 	=	VHFFS Admin <moderator@localhost>
+
+	#Tag inserted in the subject of each sended mail
+	mailtag 		=	[VHFFS]
+
+	#Allow subscribing to the platform
+	allow_subscribe		=	yes
+
+	#The mail where alert are sent
+	alert_mail		=	root@localhost
+
+	moderation		= yes
+
+	########
+	#Modules
+	#For each modules, you can use it if you declare "yes"
+	#For example, to disable the web service, you
+	#can specify use_web = no
+	<modules>
+		use_web		=	yes
+		use_mysql	=	yes
+		use_mail	=	no
+		use_cvs		=	no
+		use_svn		=	no
+		use_postgres	=	no
+		use_dns		=	no
+		use_mailing	=	no
+		use_mailuser	=	no
+		use_repository	=	no
+	</modules>
+
+	####################
+	#Panel configuration
+	<panel>
+		#URL to the panel
+		url				=   http://your.panel.url
+
+		#This is the URL display for the "Help" link in the panel
+		help_url		=	http://help.hoster
+
+		#URL to the statistics
+		stats_url		=	http://stats.hoster
+
+
+		phpmyadmin_url		=	http://phpmyadmin.hoster
+		phppgadmin_url		=	http://phppgadmin.hoster
+
+		#Is the panel open or not ?
+		open			= yes
+
+		#Key to crypt the confirmation code, it must be 8 characters long
+		subscribe_code_encrypt_key	=	AbCdEfGh
+
+		#Use the public section of VHFFS
+		use_public		=	yes
+
+		#Use avatar or not ? If yes, you must create a /data/avatars and change owner/permissions
+		#so that the webserver can write into this directory
+		use_avatar		= yes
+		users			=	yes
+		groups			=	yes
+
+		#Print statistics in the main page of VHFFS ?
+		stats_on_home		=	yes
+
+		#Notation is useful to handle aggressive users
+		#If a project is refused by moderation, the note os the user if decreased
+		#If a project or service is accepted, the note is increased
+		use_notation		= yes
+
+		#Use RSS for users and groups ?
+		<rss>
+			users		=	yes
+			groups		=	yes
+		</rss>
+	</panel>
+</global>
+
+
+
+
+#################################################
+# Backend configuration
+#################################################
+<database>
+		driver = pg
+		#Database to use
+		db_name=vhffs
+		#Read Write User Name
+		db_username=vhffs
+		#Passwor
+		db_password=vhffs
+		#DataBase Server
+		db_host=localhost
+		#Database port
+		db_port = 5432
+</database>
+
+
+################################################
+# USERS AND GROUPS
+################################################
+#the default configuration for users
+<users>
+	minuid	=	@MINUID@
+	shell	= 	/usr/bin/tuxshell
+	mingid	=	@MINGID@
+	default_quota	=	50
+	bad_username_file =	@CONFDIR@/badfile
+	bad_groupname_file	=	@CONFDIR@/badgroup
+	default_firstname = Vhffs Firstname
+	default_lastname = Vhffs Lastname
+	default_address = Vhffs Address
+	default_city = Vhffs City
+	default_zipcode = 123456
+	default_mail = dave@xxxxxxxx
+	default_country = Disneyland
+</users>
+
+
+
+<system>
+	<shells>
+		available	=	/bin/false /bin/tuxshell /bin/bash
+		default		= 	/bin/false
+	</shells>
+</system>
+
+
+#####################################
+# SERVICES
+#####################################
+<services>
+
+	<web>
+		# Where to find log from webserver, each webserver should be in a separate directory, example :
+		# - /data/logs/web/incoming/webserver0
+		# - /data/logs/web/incoming/webserver1
+		# - ...
+		log_incoming_root = /data/logs/web/incoming
+
+		# The number of maximum rotations, a rotation is made each time the robots to create stats is ran
+		log_incoming_rotations = 7
+
+		# Should I compress rotated logs ?
+		log_incoming_compress = yes
+
+		# Where to put parsed logfile from each website, it uses the same hash model of web storage,
+		# consider using the same tree for both so user have access to its logs in its ftp account.
+		# If log_parsed_root = /data/web and log_parsed_dir = logs then example.com logs
+		# will be in /data/web/1b/df/72/example.com/logs/
+		log_parsed_root = /data/web
+
+		# Same as incoming
+		log_parsed_rotation = 7
+		log_parsed_compress = yes		
+
+		# Where to find the awstat sampe file ?
+		log_awstats_sample = /usr/lib/vhffs/bots/misc/awstats.sample
+
+		# Where to find awstat (caution, you must apply the vhffs patch on)
+		log_awstats = /var/www/stats/awstats.pl
+
+		# Is apache running locally or not ? (If not you should use the ugly remote restart of apaches over nfs)
+		log_apachelocal = yes
+
+		# If it runs locally, where is apache2ctl ?
+		log_apachectl = /usr/sbin/apache2ctl
+	</web>
+
+	#DNS configuration
+	<dns>
+		#Default configuration for each domain-name
+		default_ns1 = ns1.hoster.org
+		default_ns2 = ns2.hoster.org
+		default_mx1 = mx1.hoster.org
+		default_mx2 = mx2.hoster.org
+
+		default_a	= 1.2.3.4
+
+		default_ttl = 86400
+		default_aux = 0
+
+		default_refresh = 28800
+		default_retry = 7200
+		default_expire = 604800
+		default_minimum = 86400
+
+		default_serial = 1
+		default_mbox = adm.your.hoster.ext.
+		<init>
+			<a>
+				www = 80.0.0.1
+				default = 10.0.0.1
+			</a>
+			<mx>
+				10	=	mx1.hoster.org
+				20	=	mx2.hoster.org
+			</mx>
+			<ns>
+				ns1.hoster.org
+				ns2.hoster.org
+			</ns>
+		</init>
+	</dns>
+	<apache>
+		port=80
+		pidfile=/var/run/apache.pid
+		confdir=/etc/apache/conf/
+		htdocsdir=
+		default_domain = vhffs.org
+	</apache>
+
+	<cvs>
+		cvsweb_url = "http://cvsweb.hoster";	
+		cvsdoc_url = "http://faq.hoster";
+	</cvs>
+	<mysql>
+		host		= localhost
+		username	= root
+		password	= vhffs
+	</mysql>
+	<postgresql>
+		host		= localhost
+		username	= vhffs
+		password	= zepojf
+	</postgresql>
+	<subversion>
+		svnweb_url = "http://svnweb.hoster";	
+		help_url	=	"http://myhost.tld/file.html";
+		uid	=	33
+		gid	=	33
+	</subversion>
+	<mail>
+		use_nospam	=	yes
+		use_novirus	=	yes
+	</mail>
+
+	#The mailuser service allow a user to get a mail account
+	#on a default domain
+	#With with module, ALL users get an email adress for a domain
+	#The domain MUST exists on VHFFS, and should be owned by the user given in this configuration
+	# groupneeded : the user cannot create his mail account if it doesn't have a group
+	<mailuser>
+		activate	=	no
+		groupneeded	=	yes
+		domain		=	myhost.org
+		user 		=	cat
+	</mailuser>
+	<mailing>
+		default_domain = lists.tuxfamily.org
+	</mailing>
+
+	#Configuration for listengine
+	<listengine>
+		#The domain is used when listengine bounces mails to SMTP server
+		#Listengine will send HELO domain to the SMTP sever
+		domain		=	"myhost.tld"
+		#Where we store listengine data
+		datadir		=	"/data/listengine"
+		#Email of listmaster
+		listmaster		= "listmaster@xxxxxxxxxx"
+		#SMTP Server to bounce listengine mails
+		smtp_server	= "localhost"
+		#Directory which contains template for the archives
+		templatesdir	=	@LEWEB@/templates/
+		#Directory which contains misc files
+		miscdir		=	@LEDIR@/misc/
+		#Url of archives
+		www-archives	=	http://localhost/listengine
+	</listengine>
+
+
+	#Configuration of download repository
+	<repository>
+		repository_url	=	"http://download.vhffs.org/";
+		default_quota	=	1024
+	</repository>
+</services>
+
+
+#Robots configuration
+<robots>
+	#Robots should log or not ?
+	use_logging = yes
+	#Logfile to log events
+	logfile = /var/log/vhffs.log
+	#Robots should use lock file ?
+	#If they do, only one robot can be executed in the same-time
+	use_lock = yes
+	lockfile = /var/lock/vhffslock
+</robots>
+	

Deleted: trunk/vhffs-backend/src/pgsql/initdb.sql
===================================================================
--- trunk/vhffs-backend/src/pgsql/initdb.sql	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/src/pgsql/initdb.sql	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,387 +0,0 @@
-/*
-# Copyright (c) vhffs project and its contributors
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without 
-# modification, are permitted provided that the following conditions 
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright 
-#   notice, this list of conditions and the following disclaimer.
-#2. Redistributions in binary form must reproduce the above copyright
-#   notice, this list of conditions and the following disclaimer in 
-#   the documentation and/or other materials provided with the 
-#   distribution.
-#3. Neither the name of vhffs nor the names of its contributors 
-#   may be used to endorse or promote products derived from this 
-#   software without specific prior written permission.
-#
-#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
-#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
-#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
-#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
-# POSSIBILITY OF SUCH DAMAGE.
-*/	
-
-CREATE TABLE vhffs_object
-(
-	object_id serial,
-	owner_uid int4,
-	date_creation timestamp,
-	state int4 NOT NULL,
-	description TEXT,
-	type int4 DEFAULT 0,
-	CONSTRAINT vhffs_object_pkey PRIMARY KEY (object_id)
-) WITH OIDS;
-
-
-CREATE TABLE vhffs_acl
-(
-	acl_id serial,
-	oid_src int4,
-	perm int4 NOT NULL,
-	oid_dst int4 ,
-	CONSTRAINT vhffs_acl_pkey PRIMARY KEY (acl_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_groups
-(
-	gid serial,
-	groupname varchar(50) NOT NULL DEFAULT ' ',
-	passwd varchar(20),
-	quota int4 NOT NULL,
-	quota_used int4 NOT NULL DEFAULT 0,
-	object_id int4 NOT NULL,
-	owner_uid int4,
-	uid_mod int4,
-	CONSTRAINT vhffs_groups_pkey PRIMARY KEY (gid)
-) WITH OIDS;
-
-SELECT setval('vhffs_groups_gid_seq', 10000);
-
-CREATE TABLE vhffs_users
-(
-	uid serial,
-	gid int4,
-	username varchar(50) NOT NULL DEFAULT ' ',
-	shell varchar(20) NOT NULL DEFAULT ' ',
-	passwd varchar(40) NOT NULL DEFAULT ' ',
-	homedir varchar(40) NOT NULL DEFAULT ' ',
-	admin int4 NOT NULL,
-	object_id int4 NOT NULL,
-	date_creation timestamp,
-	firstname varchar(250),
-	lastname varchar(250),
-	address text,
-	zipcode varchar(16),
-	city varchar(250),
-	country varchar(250),
-	mail varchar(200),
-	gpg_key varchar(250),
-	note int4 DEFAULT '0',
-	language varchar(16),
-	theme varchar(250),
-	CONSTRAINT vhffs_users_pkey PRIMARY KEY (uid)
-) WITH OIDS;
-
-SELECT setval('vhffs_users_uid_seq', 10000) ;
-
-CREATE TABLE vhffs_boxes
-(
-	domain varchar,
-	local_part varchar,
-	domain_hash varchar NOT NULL,
-	password_hash varchar NOT NULL,
-	mbox_name varchar NOT NULL,
-	password varchar NOT NULL,
-	nospam boolean,
-	novirus boolean,
-	CONSTRAINT vhffs_boxes_pkey PRIMARY KEY (domain,local_part)
-) WITH OIDS;
-
-CREATE TABLE vhffs_cvs
-(
-	cvs_id serial,
-	cvsroot varchar NOT NULL,
-	owner_uid int4, 
-	owner_gid int4,
-	public boolean NOT NULL,
-	object_id int4,
-	CONSTRAINT vhffs_cvs_pkey PRIMARY KEY (cvs_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_dns
-(
-	dns_id serial,
-	domain varchar(255) NOT NULL,
-	owner_gid int4,
-	owner_uid int4,
-	object_id int4,
-	ns varchar(255) NOT NULL,
-	mbox varchar(255) NOT NULL,
-	serial INTEGER NOT NULL DEFAULT 1,
-	refresh INTEGER NOT NULL DEFAULT 28800,
-	retry INTEGER NOT NULL DEFAULT 7200,
-	expire INTEGER NOT NULL DEFAULT 604800,
-	minimum INTEGER NOT NULL DEFAULT 86400,
-	ttl INTEGER NOT NULL DEFAULT 86400,
-	CONSTRAINT vhffs_dns_pkey4 PRIMARY KEY (dns_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_dns_rr (
-	id serial,
-	zone INTEGER NOT NULL,
-	name varchar(64) NOT NULL,
-	type VARCHAR(5) NOT NULL,
-	data varchar(128) NOT NULL,
-	aux INTEGER NOT NULL DEFAULT 0,
-	ttl INTEGER NOT NULL DEFAULT 86400,
-	CONSTRAINT vhffs_dns_rr_pkey PRIMARY KEY (id)
-) WITH OIDS;	
-
-CREATE TABLE vhffs_forward
-(
-	domain varchar NOT NULL,
-	local_part varchar NOT NULL,
-	remote_name varchar NOT NULL,
-	password varchar NOT NULL,
-	CONSTRAINT vhffs_forward_pkey PRIMARY KEY (domain , local_part)
-) WITH OIDS;
-
-CREATE TABLE vhffs_httpd
-(
-	httpd_id serial,
-	servername varchar(200) NOT NULL DEFAULT ' ',
-	crawl int4 NOT NULL default '1',
-	owner_http int4 NOT NULL,
-	owner_rev int4 NOT NULL,
-	owner_uid int4,
-	owner_gid int4,
-	trafic int4 NOT NULL,
-	alert_state int4 NOT NULL default '0',
-	alert_limit int4 NOT NULL default '80',
-	object_id int4 NOT NULL,
-	CONSTRAINT vhffs_httpd_pkey PRIMARY KEY (httpd_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_repository
-(
-	repository_id serial,
-	name varchar NOT NULL,
-	owner_uid int4 NOT NULL,
-	owner_gid int4 NOT NULL,
-	quota int4 NOT NULL,
-	quota_used int4 NOT NULL DEFAULT 0,
-	object_id int4 NOT NULL,
-	CONSTRAINT vhffs_repository_pkey PRIMARY KEY (repository_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_mailings
-(
-	id_mailing serial,
-	subject VARCHAR NOT NULL,
-	message TEXT NOT NULL,
-	date timestamp,
-	state int4 NOT NULL,
-	CONSTRAINT vhffs_mailings_pkey PRIMARY KEY (id_mailing)
-) WITH OIDS;
-
-
-CREATE TABLE vhffs_mxdomain
-(
-	mxdomain_id serial,
-	domain varchar,
-	unix_user varchar NOT NULL,
-	boxes_path varchar NOT NULL,
-	max_popbox int4 NOT NULL,
-	catchall varchar NOT NULL,
-	owner_uid int4 NOT NULL,
-	owner_gid int4 NOT NULL,
-	object_id int4 NOT NULL,
-	CONSTRAINT vhffs_mxdomain_pkey PRIMARY KEY (mxdomain_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_ml
-(
-	ml_id serial,
-	local_part varchar(256) NOT NULL,
-	domain varchar(256),
-	prefix varchar(32),
-	owner_uid int4, 
-	owner_gid int4,
-	object_id int4,
-	admin varchar(250) NOT NULL,
-	sub_ctrl int4,
-	post_ctrl int4,
-	reply_to boolean,
-	open_archive boolean,
-	signature varchar(250),
-	CONSTRAINT vhffs_ml_pkey PRIMARY KEY (ml_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_ml_subscribers
-(
-	sub_id serial,
-	member varchar(256) NOT NULL,
-	perm int4 NOT NULL,
-	hash varchar,
-	ml_id int4 NOT NULL,
-	language varchar(16),
-	CONSTRAINT vhffs_ml_subscribers_pkey PRIMARY KEY (sub_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_mysql
-(
-	mysql_id serial,
-	dbname varchar(200) NOT NULL,
-	dbuser varchar(200) NOT NULL,
-	owner_uid int4, 
-	owner_gid int4,
-	dbpass VARCHAR(32) NOT NULL,
-	object_id int4,
-	CONSTRAINT vhffs_mysql_pkey PRIMARY KEY (mysql_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_history
-(
-	history_id serial,
-	object_id int4,
-	date timestamp,
-	message varchar(200),
-	CONSTRAINT vhffs_history_pkey PRIMARY KEY (history_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_pgsql
-(
-	pgsql_id serial,
-	dbname varchar(200) NOT NULL,
-	dbuser varchar(16) NOT NULL,
-	dbpass varchar(32) NOT NULL,
-	owner_uid int4, 
-	owner_gid int4,
-	object_id int4,
-	CONSTRAINT vhffs_pgsql_pkey PRIMARY KEY (pgsql_id)
-) WITH OIDS;
-
-CREATE TABLE vhffs_svn
-(
-	svn_id SERIAL,
-	reponame varchar NOT NULL,
-	owner_uid int4, 
-	owner_gid int4,
-	public int4 NOT NULL,
-	object_id int4,
-	CONSTRAINT vhffs_svn_pkey PRIMARY KEY( reponame , owner_gid)
-) WITH OIDS;
-
-CREATE TABLE vhffs_user_group
-(
-	uid int4 ,
-	gid int4 ,
-	state int4 ,
-	CONSTRAINT vhffs_user_group_pkey PRIMARY KEY (uid,gid)
-)WITH OIDS;
-
-
-/****** Indexes and unique constraints *******/
-ALTER TABLE vhffs_users ADD CONSTRAINT vhffs_users_unique_username UNIQUE (username);
-ALTER TABLE vhffs_groups ADD CONSTRAINT vhffs_groups_unique_groupname UNIQUE (groupname);
-ALTER TABLE vhffs_cvs ADD CONSTRAINT vhffs_cvs_unique_cvsroot UNIQUE (cvsroot);
-ALTER TABLE vhffs_httpd ADD CONSTRAINT vhffs_httpd_unique_servername UNIQUE (servername);
-ALTER TABLE vhffs_mxdomain ADD CONSTRAINT vhffs_mxdomain_unique_domainname UNIQUE (domain);
-ALTER TABLE vhffs_mysql ADD CONSTRAINT vhffs_mysql_unique_dbname UNIQUE (dbname);
-ALTER TABLE vhffs_mysql ADD CONSTRAINT vhffs_mysql_unique_dbuser UNIQUE (dbuser);
-ALTER TABLE vhffs_pgsql ADD CONSTRAINT vhffs_pgsql_unique_dbname UNIQUE (dbname);
-ALTER TABLE vhffs_pgsql ADD CONSTRAINT vhffs_pgsql_unique_dbuser UNIQUE (dbuser);
-ALTER TABLE vhffs_repository ADD CONSTRAINT vhffs_repository_unique_name UNIQUE (name);
-ALTER TABLE vhffs_svn ADD CONSTRAINT vhffs_svn_unique_reponame UNIQUE (reponame);
-ALTER TABLE vhffs_dns ADD CONSTRAINT vhffs_dns_unique_domain UNIQUE (domain);
-ALTER TABLE vhffs_ml ADD CONSTRAINT vhffs_ml_unique_address UNIQUE (local_part, domain);
-ALTER TABLE vhffs_ml_subscribers ADD CONSTRAINT vhffs_ml_subscribers_member_list UNIQUE (ml_id, member);
-
--- This index drastically improves performances on get_used_letters
-CREATE INDEX idx_vhffs_httpd_servername_firstletter ON vhffs_httpd(substr(servername, 1, 1));
--- state is massively used in WHERE clause, this index improves overall performances
-CREATE INDEX idx_vhffs_object_state ON vhffs_object(state);
-
-/****** Non primary key constraints.
-      Defining foreign keys here allow to create tables in any order.
-*******/
-
-ALTER TABLE vhffs_acl ADD CONSTRAINT fk_vhffs_acl_vhffs_object_dst FOREIGN KEY (oid_dst) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-ALTER TABLE vhffs_acl ADD CONSTRAINT fk_vhffs_acl_vhffs_object_src FOREIGN KEY (oid_src) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_groups ADD CONSTRAINT fk_vhffs_group_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-ALTER TABLE vhffs_groups ADD CONSTRAINT fk_vhffs_group_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users (uid);
-
-ALTER TABLE vhffs_users ADD CONSTRAINT fk_vhffs_users_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object (object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_dns_rr ADD CONSTRAINT fk_vhffs_dns_rr_vhffs_dns FOREIGN KEY (zone) REFERENCES vhffs_dns(dns_id) ON DELETE CASCADE;
-ALTER TABLE vhffs_dns_rr ADD CONSTRAINT fk_vhffs_dns_rr_chk_type CHECK (type='A' OR type='AAAA' OR type='CNAME' OR type='HINFO' OR type='MX' OR type='NS' OR type='PTR' OR type='RP' OR type='SRV' OR type='TXT');
-
-ALTER TABLE vhffs_httpd ADD CONSTRAINT fk_vhffs_httpd_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_httpd ADD CONSTRAINT fk_vhffs_httpd_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-
-ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_ml_subscribers ADD CONSTRAINT fk_vhffs_ml_subscribers_vhffs_ml FOREIGN KEY (ml_id) REFERENCES vhffs_ml(ml_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_history ADD CONSTRAINT fk_vhffs_history_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
-ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
-ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
-
-ALTER TABLE vhffs_user_group ADD CONSTRAINT fk_vhffs_user_group_vhffs_users FOREIGN KEY (uid) REFERENCES vhffs_users (uid) ON DELETE CASCADE;
-ALTER TABLE vhffs_user_group ADD CONSTRAINT fk_vhffs_user_group_vhffs_groups FOREIGN KEY (gid) REFERENCES vhffs_groups (gid) ON DELETE CASCADE;
-
-
-CREATE VIEW vhffs_passwd AS
-SELECT uid, gid, username, shell, '*'::character varying AS passwd, homedir
-FROM vhffs_users;
-
-CREATE VIEW vhffs_shadow AS
-SELECT uid, gid, username, shell, passwd, '0'::int4 as newtok , '0'::int4 as expired , homedir
-FROM vhffs_users;
-
-CREATE VIEW vhffs_forum AS
-SELECT users.username, users.passwd, users.firstname, users.lastname, users.mail, users.date_creation, object.state
-FROM vhffs_users users, vhffs_object object
-WHERE object.object_id=users.object_id;
-
-CREATE VIEW vhffs_dns_soa AS
-SELECT dns.dns_id AS id, dns.domain || '.' AS origin , dns.ns, dns.mbox, dns.serial, dns.refresh, dns.retry, dns.expire, dns.minimum, dns.ttl, (o.state = 6) AS active                     
-FROM vhffs_dns dns, vhffs_object o WHERE o.object_id=dns.object_id;

Added: trunk/vhffs-backend/src/pgsql/initdb.sql.in
===================================================================
--- trunk/vhffs-backend/src/pgsql/initdb.sql.in	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-backend/src/pgsql/initdb.sql.in	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,387 @@
+/*
+# Copyright (c) vhffs project and its contributors
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without 
+# modification, are permitted provided that the following conditions 
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright 
+#   notice, this list of conditions and the following disclaimer.
+#2. Redistributions in binary form must reproduce the above copyright
+#   notice, this list of conditions and the following disclaimer in 
+#   the documentation and/or other materials provided with the 
+#   distribution.
+#3. Neither the name of vhffs nor the names of its contributors 
+#   may be used to endorse or promote products derived from this 
+#   software without specific prior written permission.
+#
+#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
+#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
+#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
+#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
+#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
+#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
+#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
+#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
+# POSSIBILITY OF SUCH DAMAGE.
+*/	
+
+CREATE TABLE vhffs_object
+(
+	object_id serial,
+	owner_uid int4,
+	date_creation timestamp,
+	state int4 NOT NULL,
+	description TEXT,
+	type int4 DEFAULT 0,
+	CONSTRAINT vhffs_object_pkey PRIMARY KEY (object_id)
+) WITH OIDS;
+
+
+CREATE TABLE vhffs_acl
+(
+	acl_id serial,
+	oid_src int4,
+	perm int4 NOT NULL,
+	oid_dst int4 ,
+	CONSTRAINT vhffs_acl_pkey PRIMARY KEY (acl_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_groups
+(
+	gid serial,
+	groupname varchar(50) NOT NULL DEFAULT ' ',
+	passwd varchar(20),
+	quota int4 NOT NULL,
+	quota_used int4 NOT NULL DEFAULT 0,
+	object_id int4 NOT NULL,
+	owner_uid int4,
+	uid_mod int4,
+	CONSTRAINT vhffs_groups_pkey PRIMARY KEY (gid)
+) WITH OIDS;
+
+SELECT setval('vhffs_groups_gid_seq', @MINGID@);
+
+CREATE TABLE vhffs_users
+(
+	uid serial,
+	gid int4,
+	username varchar(50) NOT NULL DEFAULT ' ',
+	shell varchar(20) NOT NULL DEFAULT ' ',
+	passwd varchar(40) NOT NULL DEFAULT ' ',
+	homedir varchar(40) NOT NULL DEFAULT ' ',
+	admin int4 NOT NULL,
+	object_id int4 NOT NULL,
+	date_creation timestamp,
+	firstname varchar(250),
+	lastname varchar(250),
+	address text,
+	zipcode varchar(16),
+	city varchar(250),
+	country varchar(250),
+	mail varchar(200),
+	gpg_key varchar(250),
+	note int4 DEFAULT '0',
+	language varchar(16),
+	theme varchar(250),
+	CONSTRAINT vhffs_users_pkey PRIMARY KEY (uid)
+) WITH OIDS;
+
+SELECT setval('vhffs_users_uid_seq', @MINUID@) ;
+
+CREATE TABLE vhffs_boxes
+(
+	domain varchar,
+	local_part varchar,
+	domain_hash varchar NOT NULL,
+	password_hash varchar NOT NULL,
+	mbox_name varchar NOT NULL,
+	password varchar NOT NULL,
+	nospam boolean,
+	novirus boolean,
+	CONSTRAINT vhffs_boxes_pkey PRIMARY KEY (domain,local_part)
+) WITH OIDS;
+
+CREATE TABLE vhffs_cvs
+(
+	cvs_id serial,
+	cvsroot varchar NOT NULL,
+	owner_uid int4, 
+	owner_gid int4,
+	public boolean NOT NULL,
+	object_id int4,
+	CONSTRAINT vhffs_cvs_pkey PRIMARY KEY (cvs_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_dns
+(
+	dns_id serial,
+	domain varchar(255) NOT NULL,
+	owner_gid int4,
+	owner_uid int4,
+	object_id int4,
+	ns varchar(255) NOT NULL,
+	mbox varchar(255) NOT NULL,
+	serial INTEGER NOT NULL DEFAULT 1,
+	refresh INTEGER NOT NULL DEFAULT 28800,
+	retry INTEGER NOT NULL DEFAULT 7200,
+	expire INTEGER NOT NULL DEFAULT 604800,
+	minimum INTEGER NOT NULL DEFAULT 86400,
+	ttl INTEGER NOT NULL DEFAULT 86400,
+	CONSTRAINT vhffs_dns_pkey4 PRIMARY KEY (dns_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_dns_rr (
+	id serial,
+	zone INTEGER NOT NULL,
+	name varchar(64) NOT NULL,
+	type VARCHAR(5) NOT NULL,
+	data varchar(128) NOT NULL,
+	aux INTEGER NOT NULL DEFAULT 0,
+	ttl INTEGER NOT NULL DEFAULT 86400,
+	CONSTRAINT vhffs_dns_rr_pkey PRIMARY KEY (id)
+) WITH OIDS;	
+
+CREATE TABLE vhffs_forward
+(
+	domain varchar NOT NULL,
+	local_part varchar NOT NULL,
+	remote_name varchar NOT NULL,
+	password varchar NOT NULL,
+	CONSTRAINT vhffs_forward_pkey PRIMARY KEY (domain , local_part)
+) WITH OIDS;
+
+CREATE TABLE vhffs_httpd
+(
+	httpd_id serial,
+	servername varchar(200) NOT NULL DEFAULT ' ',
+	crawl int4 NOT NULL default '1',
+	owner_http int4 NOT NULL,
+	owner_rev int4 NOT NULL,
+	owner_uid int4,
+	owner_gid int4,
+	trafic int4 NOT NULL,
+	alert_state int4 NOT NULL default '0',
+	alert_limit int4 NOT NULL default '80',
+	object_id int4 NOT NULL,
+	CONSTRAINT vhffs_httpd_pkey PRIMARY KEY (httpd_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_repository
+(
+	repository_id serial,
+	name varchar NOT NULL,
+	owner_uid int4 NOT NULL,
+	owner_gid int4 NOT NULL,
+	quota int4 NOT NULL,
+	quota_used int4 NOT NULL DEFAULT 0,
+	object_id int4 NOT NULL,
+	CONSTRAINT vhffs_repository_pkey PRIMARY KEY (repository_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_mailings
+(
+	id_mailing serial,
+	subject VARCHAR NOT NULL,
+	message TEXT NOT NULL,
+	date timestamp,
+	state int4 NOT NULL,
+	CONSTRAINT vhffs_mailings_pkey PRIMARY KEY (id_mailing)
+) WITH OIDS;
+
+
+CREATE TABLE vhffs_mxdomain
+(
+	mxdomain_id serial,
+	domain varchar,
+	unix_user varchar NOT NULL,
+	boxes_path varchar NOT NULL,
+	max_popbox int4 NOT NULL,
+	catchall varchar NOT NULL,
+	owner_uid int4 NOT NULL,
+	owner_gid int4 NOT NULL,
+	object_id int4 NOT NULL,
+	CONSTRAINT vhffs_mxdomain_pkey PRIMARY KEY (mxdomain_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_ml
+(
+	ml_id serial,
+	local_part varchar(256) NOT NULL,
+	domain varchar(256),
+	prefix varchar(32),
+	owner_uid int4, 
+	owner_gid int4,
+	object_id int4,
+	admin varchar(250) NOT NULL,
+	sub_ctrl int4,
+	post_ctrl int4,
+	reply_to boolean,
+	open_archive boolean,
+	signature varchar(250),
+	CONSTRAINT vhffs_ml_pkey PRIMARY KEY (ml_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_ml_subscribers
+(
+	sub_id serial,
+	member varchar(256) NOT NULL,
+	perm int4 NOT NULL,
+	hash varchar,
+	ml_id int4 NOT NULL,
+	language varchar(16),
+	CONSTRAINT vhffs_ml_subscribers_pkey PRIMARY KEY (sub_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_mysql
+(
+	mysql_id serial,
+	dbname varchar(200) NOT NULL,
+	dbuser varchar(200) NOT NULL,
+	owner_uid int4, 
+	owner_gid int4,
+	dbpass VARCHAR(32) NOT NULL,
+	object_id int4,
+	CONSTRAINT vhffs_mysql_pkey PRIMARY KEY (mysql_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_history
+(
+	history_id serial,
+	object_id int4,
+	date timestamp,
+	message varchar(200),
+	CONSTRAINT vhffs_history_pkey PRIMARY KEY (history_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_pgsql
+(
+	pgsql_id serial,
+	dbname varchar(200) NOT NULL,
+	dbuser varchar(16) NOT NULL,
+	dbpass varchar(32) NOT NULL,
+	owner_uid int4, 
+	owner_gid int4,
+	object_id int4,
+	CONSTRAINT vhffs_pgsql_pkey PRIMARY KEY (pgsql_id)
+) WITH OIDS;
+
+CREATE TABLE vhffs_svn
+(
+	svn_id SERIAL,
+	reponame varchar NOT NULL,
+	owner_uid int4, 
+	owner_gid int4,
+	public int4 NOT NULL,
+	object_id int4,
+	CONSTRAINT vhffs_svn_pkey PRIMARY KEY( reponame , owner_gid)
+) WITH OIDS;
+
+CREATE TABLE vhffs_user_group
+(
+	uid int4 ,
+	gid int4 ,
+	state int4 ,
+	CONSTRAINT vhffs_user_group_pkey PRIMARY KEY (uid,gid)
+)WITH OIDS;
+
+
+/****** Indexes and unique constraints *******/
+ALTER TABLE vhffs_users ADD CONSTRAINT vhffs_users_unique_username UNIQUE (username);
+ALTER TABLE vhffs_groups ADD CONSTRAINT vhffs_groups_unique_groupname UNIQUE (groupname);
+ALTER TABLE vhffs_cvs ADD CONSTRAINT vhffs_cvs_unique_cvsroot UNIQUE (cvsroot);
+ALTER TABLE vhffs_httpd ADD CONSTRAINT vhffs_httpd_unique_servername UNIQUE (servername);
+ALTER TABLE vhffs_mxdomain ADD CONSTRAINT vhffs_mxdomain_unique_domainname UNIQUE (domain);
+ALTER TABLE vhffs_mysql ADD CONSTRAINT vhffs_mysql_unique_dbname UNIQUE (dbname);
+ALTER TABLE vhffs_mysql ADD CONSTRAINT vhffs_mysql_unique_dbuser UNIQUE (dbuser);
+ALTER TABLE vhffs_pgsql ADD CONSTRAINT vhffs_pgsql_unique_dbname UNIQUE (dbname);
+ALTER TABLE vhffs_pgsql ADD CONSTRAINT vhffs_pgsql_unique_dbuser UNIQUE (dbuser);
+ALTER TABLE vhffs_repository ADD CONSTRAINT vhffs_repository_unique_name UNIQUE (name);
+ALTER TABLE vhffs_svn ADD CONSTRAINT vhffs_svn_unique_reponame UNIQUE (reponame);
+ALTER TABLE vhffs_dns ADD CONSTRAINT vhffs_dns_unique_domain UNIQUE (domain);
+ALTER TABLE vhffs_ml ADD CONSTRAINT vhffs_ml_unique_address UNIQUE (local_part, domain);
+ALTER TABLE vhffs_ml_subscribers ADD CONSTRAINT vhffs_ml_subscribers_member_list UNIQUE (ml_id, member);
+
+-- This index drastically improves performances on get_used_letters
+CREATE INDEX idx_vhffs_httpd_servername_firstletter ON vhffs_httpd(substr(servername, 1, 1));
+-- state is massively used in WHERE clause, this index improves overall performances
+CREATE INDEX idx_vhffs_object_state ON vhffs_object(state);
+
+/****** Non primary key constraints.
+      Defining foreign keys here allow to create tables in any order.
+*******/
+
+ALTER TABLE vhffs_acl ADD CONSTRAINT fk_vhffs_acl_vhffs_object_dst FOREIGN KEY (oid_dst) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+ALTER TABLE vhffs_acl ADD CONSTRAINT fk_vhffs_acl_vhffs_object_src FOREIGN KEY (oid_src) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_groups ADD CONSTRAINT fk_vhffs_group_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+ALTER TABLE vhffs_groups ADD CONSTRAINT fk_vhffs_group_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users (uid);
+
+ALTER TABLE vhffs_users ADD CONSTRAINT fk_vhffs_users_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object (object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_cvs ADD CONSTRAINT fk_vhffs_cvs_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_dns ADD CONSTRAINT fk_vhffs_dns_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_dns_rr ADD CONSTRAINT fk_vhffs_dns_rr_vhffs_dns FOREIGN KEY (zone) REFERENCES vhffs_dns(dns_id) ON DELETE CASCADE;
+ALTER TABLE vhffs_dns_rr ADD CONSTRAINT fk_vhffs_dns_rr_chk_type CHECK (type='A' OR type='AAAA' OR type='CNAME' OR type='HINFO' OR type='MX' OR type='NS' OR type='PTR' OR type='RP' OR type='SRV' OR type='TXT');
+
+ALTER TABLE vhffs_httpd ADD CONSTRAINT fk_vhffs_httpd_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_httpd ADD CONSTRAINT fk_vhffs_httpd_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+
+ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_repository ADD CONSTRAINT fk_vhffs_vhffs_repository_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_mxdomain ADD CONSTRAINT fk_vhffs_mxdomain_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_ml ADD CONSTRAINT fk_vhffs_ml_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_ml_subscribers ADD CONSTRAINT fk_vhffs_ml_subscribers_vhffs_ml FOREIGN KEY (ml_id) REFERENCES vhffs_ml(ml_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_mysql ADD CONSTRAINT fk_vhffs_mysql_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_history ADD CONSTRAINT fk_vhffs_history_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_pgsql ADD CONSTRAINT fk_vhffs_pgsql_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_users FOREIGN KEY (owner_uid) REFERENCES vhffs_users(uid);
+ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_groups FOREIGN KEY (owner_gid) REFERENCES vhffs_groups(gid);
+ALTER TABLE vhffs_svn ADD CONSTRAINT fk_vhffs_svn_vhffs_object FOREIGN KEY (object_id) REFERENCES vhffs_object(object_id) ON DELETE CASCADE;
+
+ALTER TABLE vhffs_user_group ADD CONSTRAINT fk_vhffs_user_group_vhffs_users FOREIGN KEY (uid) REFERENCES vhffs_users (uid) ON DELETE CASCADE;
+ALTER TABLE vhffs_user_group ADD CONSTRAINT fk_vhffs_user_group_vhffs_groups FOREIGN KEY (gid) REFERENCES vhffs_groups (gid) ON DELETE CASCADE;
+
+
+CREATE VIEW vhffs_passwd AS
+SELECT uid, gid, username, shell, '*'::character varying AS passwd, homedir
+FROM vhffs_users;
+
+CREATE VIEW vhffs_shadow AS
+SELECT uid, gid, username, shell, passwd, '0'::int4 as newtok , '0'::int4 as expired , homedir
+FROM vhffs_users;
+
+CREATE VIEW vhffs_forum AS
+SELECT users.username, users.passwd, users.firstname, users.lastname, users.mail, users.date_creation, object.state
+FROM vhffs_users users, vhffs_object object
+WHERE object.object_id=users.object_id;
+
+CREATE VIEW vhffs_dns_soa AS
+SELECT dns.dns_id AS id, dns.domain || '.' AS origin , dns.ns, dns.mbox, dns.serial, dns.refresh, dns.retry, dns.expire, dns.minimum, dns.ttl, (o.state = 6) AS active                     
+FROM vhffs_dns dns, vhffs_object o WHERE o.object_id=dns.object_id;

Deleted: trunk/vhffs-compat/4.0.sql
===================================================================
--- trunk/vhffs-compat/4.0.sql	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-compat/4.0.sql	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,214 +0,0 @@
--- OK, we try to minimize risks by setting sequences' current values to
--- the greatest id. Ideally, vhffs should be stopped during upgrade
-
-SELECT setval('vhffs_object_object_id_seq', (SELECT COALESCE(MAX(object_id), 1) FROM vhffs_object));
-SELECT setval('vhffs_acl_acl_id_seq', (SELECT COALESCE(MAX(acl_id), 1) FROM vhffs_acl));
--- **** Change 10000 to your former min_gid
--- TODO : handle it in the installer
-SELECT setval('vhffs_groups_gid_seq', (SELECT COALESCE(MAX(gid), 10000) FROM vhffs_groups));
--- TODO : same as above but for uid
-SELECT setval('vhffs_users_uid_seq', (SELECT COALESCE(MAX(uid), 10000) FROM vhffs_users));
-SELECT setval('vhffs_confirmation_cid_seq', (SELECT COALESCE(MAX(cid), 1) FROM vhffs_confirmation));
-SELECT setval('vhffs_cvs_cvs_id_seq', (SELECT COALESCE(MAX(cvs_id), 1) FROM vhffs_cvs));
-SELECT setval('vhffs_dns_dns_id_seq', (SELECT COALESCE(MAX(dns_id), 1) FROM vhffs_dns));
-SELECT setval('vhffs_dns_rr_id_seq', (SELECT COALESCE(MAX(id), 1) FROM vhffs_dns_rr));
-SELECT setval('vhffs_httpd_httpd_id_seq', (SELECT COALESCE(MAX(httpd_id), 1) FROM vhffs_httpd));
-SELECT setval('vhffs_mailings_id_mailing_seq', (SELECT COALESCE(MAX(id_mailing), 1) FROM vhffs_mailings));
-SELECT setval('vhffs_mxdomain_mxdomain_id_seq', (SELECT COALESCE(MAX(mxdomain_id), 1) FROM vhffs_mxdomain));
-SELECT setval('vhffs_ml_ml_id_seq', (SELECT COALESCE(MAX(ml_id), 1) FROM vhffs_ml));
-SELECT setval('vhffs_mysql_mysql_id_seq', (SELECT COALESCE(MAX(mysql_id), 1) FROM vhffs_mysql));
-SELECT setval('vhffs_history_history_id_seq', (SELECT COALESCE(MAX(history_id), 1) FROM vhffs_history));
-SELECT setval('vhffs_pgsql_pgsql_id_seq', (SELECT COALESCE(MAX(pgsql_id), 1) FROM vhffs_pgsql));
-SELECT setval('vhffs_repository_repository_id_seq', (SELECT COALESCE(MAX(repository_id), 1) FROM vhffs_repository));
-SELECT setval('vhffs_svn_svn_id_seq', (SELECT COALESCE(MAX(svn_id), 1) FROM vhffs_svn));
-
-ALTER TABLE vhffs_object ALTER owner_uid DROP NOT NULL;
-ALTER TABLE vhffs_users ALTER gid DROP NOT NULL;
-
-DROP TABLE vhffs_largefile CASCADE;
-DROP TABLE vhffs_confirmation CASCADE;
-
--- add a column named "type" on object table in order to know the purpose of the object (web area, mysql, ...)
--- existing types: unassigned[0], user[10], group[11], httpd[20], repository[21], mysql[30], pgsql[31], cvs[40], svn[41], dns[50], mail[60], ml[61]
--- Pg 7.4 doesn't support default value in add column !
-ALTER TABLE vhffs_object ADD COLUMN type int4;
-ALTER TABLE vhffs_object ALTER COLUMN type SET DEFAULT 0;
--- This *shouldn't be necessary since every object has a type but some old code
--- didn't perform correct cleanup
-UPDATE vhffs_object SET type=0;
-
-UPDATE vhffs_object SET type=10 WHERE object_id IN (SELECT object_id FROM vhffs_users);
-UPDATE vhffs_object SET type=11 WHERE object_id IN (SELECT object_id FROM vhffs_groups);
-UPDATE vhffs_object SET type=20 WHERE object_id IN (SELECT object_id FROM vhffs_httpd);
-UPDATE vhffs_object SET type=21 WHERE object_id IN (SELECT object_id FROM vhffs_repository);
-UPDATE vhffs_object SET type=30 WHERE object_id IN (SELECT object_id FROM vhffs_mysql);
-UPDATE vhffs_object SET type=31 WHERE object_id IN (SELECT object_id FROM vhffs_pgsql);
-UPDATE vhffs_object SET type=40 WHERE object_id IN (SELECT object_id FROM vhffs_cvs);
-UPDATE vhffs_object SET type=41 WHERE object_id IN (SELECT object_id FROM vhffs_svn);
-UPDATE vhffs_object SET type=50 WHERE object_id IN (SELECT object_id FROM vhffs_dns_global);
-UPDATE vhffs_object SET type=60 WHERE object_id IN (SELECT object_id FROM vhffs_mxdomain);
-UPDATE vhffs_object SET type=61 WHERE object_id IN (SELECT object_id FROM vhffs_ml);
-
--- cleanup unused objects
-DELETE FROM vhffs_object WHERE type='0';
-
--- merge vhffs_user_info to vhffs_users
-ALTER TABLE vhffs_users ADD COLUMN date_creation timestamp;
-ALTER TABLE vhffs_users ADD COLUMN firstname varchar(250);
-ALTER TABLE vhffs_users ADD COLUMN lastname varchar(250);
-ALTER TABLE vhffs_users ADD COLUMN address text;
-ALTER TABLE vhffs_users ADD COLUMN zipcode varchar(16);
-ALTER TABLE vhffs_users ADD COLUMN city varchar(250);
-ALTER TABLE vhffs_users ADD COLUMN country varchar(250);
-ALTER TABLE vhffs_users ADD COLUMN mail varchar(200);
-ALTER TABLE vhffs_users ADD COLUMN gpg_key varchar(250);
-
-UPDATE vhffs_users SET date_creation = ui.date_creation, firstname = ui.firstname, lastname = ui.lastname,
-       address = ui.address, zipcode = ui.zipcode, city = ui.city, country = ui.country, mail = ui.mail,
-       gpg_key = ui.gpg_key
-    FROM vhffs_user_info ui
-    WHERE ui.uid = vhffs_users.uid;
-
--- DROP TABLE vhffs_user_info;
-
--- merge vhffs_notes to vhffs_users
-ALTER TABLE vhffs_users ADD COLUMN note int4;
-UPDATE vhffs_users SET note = 0 WHERE object_id NOT IN (SELECT object_id FROM vhffs_notes);
-UPDATE vhffs_users SET note = n.note FROM vhffs_notes n WHERE n.object_id = vhffs_users.object_id;
-
--- DROP TABLE vhffs_notes;
-
--- merge vhffs_panel_user_prefs to vhffs_users
-ALTER TABLE vhffs_users ADD COLUMN language varchar(16);
-ALTER TABLE vhffs_users ADD COLUMN theme varchar(250);
--- Not all users have a language and a theme set in vhffs_panel_user_prefs
-UPDATE vhffs_users SET language = 'en_US', theme = 'default';
-UPDATE vhffs_users SET language = up.language, theme = up.theme
-    FROM vhffs_panel_user_prefs up
-    WHERE up.uid = vhffs_users.uid;
-
--- DROP TABLE vhffs_panel_user_prefs;
-
--- merge vhffs_groups_info to vhffs_groups
-ALTER TABLE vhffs_groups ADD COLUMN owner_uid int4;
-ALTER TABLE vhffs_groups ADD COLUMN uid_mod int4;
-UPDATE vhffs_groups SET owner_uid = gi.owner_uid, uid_mod = gi.uid_mod
-    FROM vhffs_groups_info gi
-    WHERE gi.gid = vhffs_groups.gid;
-
--- DROP TABLE vhffs_groups_info;
-
--- merge vhffs_ml_prefs to vhffs_ml
-ALTER TABLE vhffs_ml ADD COLUMN admin varchar(250);
-ALTER TABLE vhffs_ml ADD COLUMN open_post boolean;
-ALTER TABLE vhffs_ml ADD COLUMN open_archive boolean;
-ALTER TABLE vhffs_ml ADD COLUMN open_sub boolean;
-ALTER TABLE vhffs_ml ADD COLUMN reply_to boolean;
-ALTER TABLE vhffs_ml ADD COLUMN moderated boolean;
-
-UPDATE vhffs_ml SET admin = mlp.admin,
-    open_post = (mlp.open_post != 0),
-    open_archive = (mlp.open_archive != 0),
-    open_sub = (mlp.open_sub != 0),
-    reply_to = (mlp.reply_to != 0),
-    moderated = (mlp.moderated != 0)
-    FROM vhffs_ml_prefs mlp
-    WHERE mlp.ml_id = vhffs_ml.ml_id;
-
--- DROP TABLE vhffs_ml_prefs;
-
-ALTER TABLE vhffs_ml DROP url;
-ALTER TABLE vhffs_ml ADD COLUMN signature varchar(250);
-
-
--- merge vhffs_ml_lang to vhffs_ml_subscribers
-ALTER TABLE vhffs_ml_subscribers ADD COLUMN language varchar(16);
-UPDATE vhffs_ml_subscribers SET language = mll.lang FROM vhffs_ml_lang mll WHERE mll.member = vhffs_ml_subscribers.member;
-
--- DROP TABLE vhffs_ml_lang;
-
-ALTER TABLE vhffs_ml_subscribers DROP active;
-ALTER TABLE vhffs_ml_subscribers ALTER COLUMN hash DROP NOT NULL;
-
-
--- modify vhffs_ml, drop columns open_post, open_sub, moderated, replace by sub_ctrl and mod_ctrl
---   sub_ctrl, 0 = open, 1 = open but moderated (approval required), 2 = closed
---   post_ctrl, 0 = open, 1 = moderated for all, 2 = moderated for non members and open for members, 3 = members only,
---              4 = members only and moderated, 5 = admins only
-ALTER TABLE vhffs_ml ADD COLUMN sub_ctrl int4;
-ALTER TABLE vhffs_ml ADD COLUMN post_ctrl int4;
-UPDATE vhffs_ml SET sub_ctrl = 0;
-UPDATE vhffs_ml SET sub_ctrl = 0 where open_sub = 't';
-UPDATE vhffs_ml SET sub_ctrl = 2 where open_sub = 'f';
-UPDATE vhffs_ml SET post_ctrl = 0;
-UPDATE vhffs_ml SET post_ctrl = 0 where open_post = 't' and moderated = 'f';
-UPDATE vhffs_ml SET post_ctrl = 1 where open_post = 't' and moderated = 't';
-UPDATE vhffs_ml SET post_ctrl = 3 where open_post = 'f' and moderated = 'f';
-UPDATE vhffs_ml SET post_ctrl = 4 where open_post = 'f' and moderated = 't';
-ALTER TABLE vhffs_ml DROP COLUMN open_sub;
-ALTER TABLE vhffs_ml DROP COLUMN open_post;
-ALTER TABLE vhffs_ml DROP COLUMN moderated;
-
-
--- rename vhffs_dns_global to vhffs_dns
-ALTER TABLE vhffs_dns_global RENAME TO vhffs_dns;
-
--- merge vhffs_dns_soa to vhffs_dns(ex vhffs_dns_global)
-ALTER TABLE vhffs_dns ADD COLUMN ns varchar(255);
-
-ALTER TABLE vhffs_dns ADD COLUMN mbox varchar(255);
-
-ALTER TABLE vhffs_dns ADD COLUMN serial INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN serial SET DEFAULT 1;
-
-ALTER TABLE vhffs_dns ADD COLUMN refresh INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN refresh SET DEFAULT 28800;
-
-ALTER TABLE vhffs_dns ADD COLUMN retry INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN retry SET DEFAULT 7200;
-
-ALTER TABLE vhffs_dns ADD COLUMN expire INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN expire SET DEFAULT 604800;
-
-ALTER TABLE vhffs_dns ADD COLUMN minimum INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN minimum SET DEFAULT 86400;
-
-ALTER TABLE vhffs_dns ADD COLUMN ttl INTEGER;
-ALTER TABLE vhffs_dns ALTER COLUMN ttl SET DEFAULT 86400;
-
-UPDATE vhffs_dns SET ns = soa.ns, mbox = soa.mbox, serial = soa.serial, refresh = soa.refresh, retry = soa.retry,
-    expire = soa.expire, minimum = soa.minimum, ttl = soa.ttl
-    FROM vhffs_dns_soa soa
-    WHERE soa.id = vhffs_dns.dns_id;
-    
-ALTER TABLE vhffs_dns ALTER COLUMN ns SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN mbox SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN serial SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN refresh SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN retry SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN expire SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN minimum SET NOT NULL;
-ALTER TABLE vhffs_dns ALTER COLUMN ttl SET NOT NULL;
-
--- DROP TABLE vhffs_dns_soa;
-
--- change the type of vhffs_object.state from varchar to int4 ..... (no comments allowed please)
-BEGIN;
-ALTER TABLE vhffs_object ADD COLUMN state_new int4;
-UPDATE vhffs_object SET state_new = state::text::integer;
-ALTER TABLE vhffs_object DROP COLUMN state CASCADE;
-ALTER TABLE vhffs_object RENAME COLUMN state_new TO state;
-ALTER TABLE vhffs_object ALTER COLUMN state SET NOT NULL;
-COMMIT;
-
--- create vhffs_dns_soa view
-CREATE VIEW vhffs_dns_soa AS
-SELECT dns.dns_id AS id, dns.domain || '.' AS origin , dns.ns, dns.mbox, dns.serial, dns.refresh, dns.retry, dns.expire, dns.minimum, dns.ttl, (o.state = 6) AS active
-FROM vhffs_dns dns, vhffs_object o WHERE o.object_id=dns.object_id;
-
--- update vhffs_forum view, it has been dropped by drop column state in vhffs_object
-CREATE VIEW vhffs_forum AS
-SELECT users.username, users.passwd, users.firstname, users.lastname, users.mail, users.date_creation, object.state
-FROM vhffs_users users, vhffs_object object
-WHERE object.object_id=users.object_id;
-

Added: trunk/vhffs-compat/4.0.sql.in
===================================================================
--- trunk/vhffs-compat/4.0.sql.in	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-compat/4.0.sql.in	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,211 @@
+-- OK, we try to minimize risks by setting sequences' current values to
+-- the greatest id. Ideally, vhffs should be stopped during upgrade
+
+SELECT setval('vhffs_object_object_id_seq', (SELECT COALESCE(MAX(object_id), 1) FROM vhffs_object));
+SELECT setval('vhffs_acl_acl_id_seq', (SELECT COALESCE(MAX(acl_id), 1) FROM vhffs_acl));
+SELECT setval('vhffs_groups_gid_seq', (SELECT COALESCE(MAX(gid), @MINGID@) FROM vhffs_groups));
+SELECT setval('vhffs_users_uid_seq', (SELECT COALESCE(MAX(uid), @MINUID@) FROM vhffs_users));
+SELECT setval('vhffs_confirmation_cid_seq', (SELECT COALESCE(MAX(cid), 1) FROM vhffs_confirmation));
+SELECT setval('vhffs_cvs_cvs_id_seq', (SELECT COALESCE(MAX(cvs_id), 1) FROM vhffs_cvs));
+SELECT setval('vhffs_dns_dns_id_seq', (SELECT COALESCE(MAX(dns_id), 1) FROM vhffs_dns));
+SELECT setval('vhffs_dns_rr_id_seq', (SELECT COALESCE(MAX(id), 1) FROM vhffs_dns_rr));
+SELECT setval('vhffs_httpd_httpd_id_seq', (SELECT COALESCE(MAX(httpd_id), 1) FROM vhffs_httpd));
+SELECT setval('vhffs_mailings_id_mailing_seq', (SELECT COALESCE(MAX(id_mailing), 1) FROM vhffs_mailings));
+SELECT setval('vhffs_mxdomain_mxdomain_id_seq', (SELECT COALESCE(MAX(mxdomain_id), 1) FROM vhffs_mxdomain));
+SELECT setval('vhffs_ml_ml_id_seq', (SELECT COALESCE(MAX(ml_id), 1) FROM vhffs_ml));
+SELECT setval('vhffs_mysql_mysql_id_seq', (SELECT COALESCE(MAX(mysql_id), 1) FROM vhffs_mysql));
+SELECT setval('vhffs_history_history_id_seq', (SELECT COALESCE(MAX(history_id), 1) FROM vhffs_history));
+SELECT setval('vhffs_pgsql_pgsql_id_seq', (SELECT COALESCE(MAX(pgsql_id), 1) FROM vhffs_pgsql));
+SELECT setval('vhffs_repository_repository_id_seq', (SELECT COALESCE(MAX(repository_id), 1) FROM vhffs_repository));
+SELECT setval('vhffs_svn_svn_id_seq', (SELECT COALESCE(MAX(svn_id), 1) FROM vhffs_svn));
+
+ALTER TABLE vhffs_object ALTER owner_uid DROP NOT NULL;
+ALTER TABLE vhffs_users ALTER gid DROP NOT NULL;
+
+DROP TABLE vhffs_largefile CASCADE;
+DROP TABLE vhffs_confirmation CASCADE;
+
+-- add a column named "type" on object table in order to know the purpose of the object (web area, mysql, ...)
+-- existing types: unassigned[0], user[10], group[11], httpd[20], repository[21], mysql[30], pgsql[31], cvs[40], svn[41], dns[50], mail[60], ml[61]
+-- Pg 7.4 doesn't support default value in add column !
+ALTER TABLE vhffs_object ADD COLUMN type int4;
+ALTER TABLE vhffs_object ALTER COLUMN type SET DEFAULT 0;
+-- This *shouldn't be necessary since every object has a type but some old code
+-- didn't perform correct cleanup
+UPDATE vhffs_object SET type=0;
+
+UPDATE vhffs_object SET type=10 WHERE object_id IN (SELECT object_id FROM vhffs_users);
+UPDATE vhffs_object SET type=11 WHERE object_id IN (SELECT object_id FROM vhffs_groups);
+UPDATE vhffs_object SET type=20 WHERE object_id IN (SELECT object_id FROM vhffs_httpd);
+UPDATE vhffs_object SET type=21 WHERE object_id IN (SELECT object_id FROM vhffs_repository);
+UPDATE vhffs_object SET type=30 WHERE object_id IN (SELECT object_id FROM vhffs_mysql);
+UPDATE vhffs_object SET type=31 WHERE object_id IN (SELECT object_id FROM vhffs_pgsql);
+UPDATE vhffs_object SET type=40 WHERE object_id IN (SELECT object_id FROM vhffs_cvs);
+UPDATE vhffs_object SET type=41 WHERE object_id IN (SELECT object_id FROM vhffs_svn);
+UPDATE vhffs_object SET type=50 WHERE object_id IN (SELECT object_id FROM vhffs_dns_global);
+UPDATE vhffs_object SET type=60 WHERE object_id IN (SELECT object_id FROM vhffs_mxdomain);
+UPDATE vhffs_object SET type=61 WHERE object_id IN (SELECT object_id FROM vhffs_ml);
+
+-- cleanup unused objects
+DELETE FROM vhffs_object WHERE type='0';
+
+-- merge vhffs_user_info to vhffs_users
+ALTER TABLE vhffs_users ADD COLUMN date_creation timestamp;
+ALTER TABLE vhffs_users ADD COLUMN firstname varchar(250);
+ALTER TABLE vhffs_users ADD COLUMN lastname varchar(250);
+ALTER TABLE vhffs_users ADD COLUMN address text;
+ALTER TABLE vhffs_users ADD COLUMN zipcode varchar(16);
+ALTER TABLE vhffs_users ADD COLUMN city varchar(250);
+ALTER TABLE vhffs_users ADD COLUMN country varchar(250);
+ALTER TABLE vhffs_users ADD COLUMN mail varchar(200);
+ALTER TABLE vhffs_users ADD COLUMN gpg_key varchar(250);
+
+UPDATE vhffs_users SET date_creation = ui.date_creation, firstname = ui.firstname, lastname = ui.lastname,
+       address = ui.address, zipcode = ui.zipcode, city = ui.city, country = ui.country, mail = ui.mail,
+       gpg_key = ui.gpg_key
+    FROM vhffs_user_info ui
+    WHERE ui.uid = vhffs_users.uid;
+
+-- DROP TABLE vhffs_user_info;
+
+-- merge vhffs_notes to vhffs_users
+ALTER TABLE vhffs_users ADD COLUMN note int4;
+UPDATE vhffs_users SET note = 0 WHERE object_id NOT IN (SELECT object_id FROM vhffs_notes);
+UPDATE vhffs_users SET note = n.note FROM vhffs_notes n WHERE n.object_id = vhffs_users.object_id;
+
+-- DROP TABLE vhffs_notes;
+
+-- merge vhffs_panel_user_prefs to vhffs_users
+ALTER TABLE vhffs_users ADD COLUMN language varchar(16);
+ALTER TABLE vhffs_users ADD COLUMN theme varchar(250);
+-- Not all users have a language and a theme set in vhffs_panel_user_prefs
+UPDATE vhffs_users SET language = 'en_US', theme = 'default';
+UPDATE vhffs_users SET language = up.language, theme = up.theme
+    FROM vhffs_panel_user_prefs up
+    WHERE up.uid = vhffs_users.uid;
+
+-- DROP TABLE vhffs_panel_user_prefs;
+
+-- merge vhffs_groups_info to vhffs_groups
+ALTER TABLE vhffs_groups ADD COLUMN owner_uid int4;
+ALTER TABLE vhffs_groups ADD COLUMN uid_mod int4;
+UPDATE vhffs_groups SET owner_uid = gi.owner_uid, uid_mod = gi.uid_mod
+    FROM vhffs_groups_info gi
+    WHERE gi.gid = vhffs_groups.gid;
+
+-- DROP TABLE vhffs_groups_info;
+
+-- merge vhffs_ml_prefs to vhffs_ml
+ALTER TABLE vhffs_ml ADD COLUMN admin varchar(250);
+ALTER TABLE vhffs_ml ADD COLUMN open_post boolean;
+ALTER TABLE vhffs_ml ADD COLUMN open_archive boolean;
+ALTER TABLE vhffs_ml ADD COLUMN open_sub boolean;
+ALTER TABLE vhffs_ml ADD COLUMN reply_to boolean;
+ALTER TABLE vhffs_ml ADD COLUMN moderated boolean;
+
+UPDATE vhffs_ml SET admin = mlp.admin,
+    open_post = (mlp.open_post != 0),
+    open_archive = (mlp.open_archive != 0),
+    open_sub = (mlp.open_sub != 0),
+    reply_to = (mlp.reply_to != 0),
+    moderated = (mlp.moderated != 0)
+    FROM vhffs_ml_prefs mlp
+    WHERE mlp.ml_id = vhffs_ml.ml_id;
+
+-- DROP TABLE vhffs_ml_prefs;
+
+ALTER TABLE vhffs_ml DROP url;
+ALTER TABLE vhffs_ml ADD COLUMN signature varchar(250);
+
+
+-- merge vhffs_ml_lang to vhffs_ml_subscribers
+ALTER TABLE vhffs_ml_subscribers ADD COLUMN language varchar(16);
+UPDATE vhffs_ml_subscribers SET language = mll.lang FROM vhffs_ml_lang mll WHERE mll.member = vhffs_ml_subscribers.member;
+
+-- DROP TABLE vhffs_ml_lang;
+
+ALTER TABLE vhffs_ml_subscribers DROP active;
+ALTER TABLE vhffs_ml_subscribers ALTER COLUMN hash DROP NOT NULL;
+
+
+-- modify vhffs_ml, drop columns open_post, open_sub, moderated, replace by sub_ctrl and mod_ctrl
+--   sub_ctrl, 0 = open, 1 = open but moderated (approval required), 2 = closed
+--   post_ctrl, 0 = open, 1 = moderated for all, 2 = moderated for non members and open for members, 3 = members only,
+--              4 = members only and moderated, 5 = admins only
+ALTER TABLE vhffs_ml ADD COLUMN sub_ctrl int4;
+ALTER TABLE vhffs_ml ADD COLUMN post_ctrl int4;
+UPDATE vhffs_ml SET sub_ctrl = 0;
+UPDATE vhffs_ml SET sub_ctrl = 0 where open_sub = 't';
+UPDATE vhffs_ml SET sub_ctrl = 2 where open_sub = 'f';
+UPDATE vhffs_ml SET post_ctrl = 0;
+UPDATE vhffs_ml SET post_ctrl = 0 where open_post = 't' and moderated = 'f';
+UPDATE vhffs_ml SET post_ctrl = 1 where open_post = 't' and moderated = 't';
+UPDATE vhffs_ml SET post_ctrl = 3 where open_post = 'f' and moderated = 'f';
+UPDATE vhffs_ml SET post_ctrl = 4 where open_post = 'f' and moderated = 't';
+ALTER TABLE vhffs_ml DROP COLUMN open_sub;
+ALTER TABLE vhffs_ml DROP COLUMN open_post;
+ALTER TABLE vhffs_ml DROP COLUMN moderated;
+
+
+-- rename vhffs_dns_global to vhffs_dns
+ALTER TABLE vhffs_dns_global RENAME TO vhffs_dns;
+
+-- merge vhffs_dns_soa to vhffs_dns(ex vhffs_dns_global)
+ALTER TABLE vhffs_dns ADD COLUMN ns varchar(255);
+
+ALTER TABLE vhffs_dns ADD COLUMN mbox varchar(255);
+
+ALTER TABLE vhffs_dns ADD COLUMN serial INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN serial SET DEFAULT 1;
+
+ALTER TABLE vhffs_dns ADD COLUMN refresh INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN refresh SET DEFAULT 28800;
+
+ALTER TABLE vhffs_dns ADD COLUMN retry INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN retry SET DEFAULT 7200;
+
+ALTER TABLE vhffs_dns ADD COLUMN expire INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN expire SET DEFAULT 604800;
+
+ALTER TABLE vhffs_dns ADD COLUMN minimum INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN minimum SET DEFAULT 86400;
+
+ALTER TABLE vhffs_dns ADD COLUMN ttl INTEGER;
+ALTER TABLE vhffs_dns ALTER COLUMN ttl SET DEFAULT 86400;
+
+UPDATE vhffs_dns SET ns = soa.ns, mbox = soa.mbox, serial = soa.serial, refresh = soa.refresh, retry = soa.retry,
+    expire = soa.expire, minimum = soa.minimum, ttl = soa.ttl
+    FROM vhffs_dns_soa soa
+    WHERE soa.id = vhffs_dns.dns_id;
+    
+ALTER TABLE vhffs_dns ALTER COLUMN ns SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN mbox SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN serial SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN refresh SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN retry SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN expire SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN minimum SET NOT NULL;
+ALTER TABLE vhffs_dns ALTER COLUMN ttl SET NOT NULL;
+
+-- DROP TABLE vhffs_dns_soa;
+
+-- change the type of vhffs_object.state from varchar to int4 ..... (no comments allowed please)
+BEGIN;
+ALTER TABLE vhffs_object ADD COLUMN state_new int4;
+UPDATE vhffs_object SET state_new = state::text::integer;
+ALTER TABLE vhffs_object DROP COLUMN state CASCADE;
+ALTER TABLE vhffs_object RENAME COLUMN state_new TO state;
+ALTER TABLE vhffs_object ALTER COLUMN state SET NOT NULL;
+COMMIT;
+
+-- create vhffs_dns_soa view
+CREATE VIEW vhffs_dns_soa AS
+SELECT dns.dns_id AS id, dns.domain || '.' AS origin , dns.ns, dns.mbox, dns.serial, dns.refresh, dns.retry, dns.expire, dns.minimum, dns.ttl, (o.state = 6) AS active
+FROM vhffs_dns dns, vhffs_object o WHERE o.object_id=dns.object_id;
+
+-- update vhffs_forum view, it has been dropped by drop column state in vhffs_object
+CREATE VIEW vhffs_forum AS
+SELECT users.username, users.passwd, users.firstname, users.lastname, users.mail, users.date_creation, object.state
+FROM vhffs_users users, vhffs_object object
+WHERE object.object_id=users.object_id;
+

Modified: trunk/vhffs-compat/updatedb.pl
===================================================================
--- trunk/vhffs-compat/updatedb.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-compat/updatedb.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Added: trunk/vhffs-doc/Makefile.am
===================================================================
--- trunk/vhffs-doc/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-doc/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,17 @@
+EXTRA_DIST = api config debian
+docdir = @DOCDIR@
+
+doc_DATA = \
+	Architecture-fr \
+	CONVENTION-fr \
+	HOWTO-Contribute \
+	HOWTO-Robots \
+	HOWTO-ServiceACL-fr \
+	INSTALL \
+	LICENSE \
+	README-fr\
+	VHFFS4-auth1024.png \
+	VHFFS4-auth2048.png
+	
+nobase_doc_DATA = \
+	config/apache/panelconf
\ No newline at end of file

Modified: trunk/vhffs-irc/modobot.pl
===================================================================
--- trunk/vhffs-irc/modobot.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-irc/modobot.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#! /usr/bin/perl
+#! %PERL%
 
 # modobot is an IRC bot which allow you to validate
 # VHFFS objects through IRC
@@ -11,7 +11,7 @@
 use Locale::gettext;
 use Data::Dumper;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Added: trunk/vhffs-jabber/Makefile.am
===================================================================
--- trunk/vhffs-jabber/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-jabber/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,14 @@
+jabberdir = @JABBERDIR@
+jabber_SCRIPTS = vhffspipe.pl
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(jabber_SCRIPTS) ; do \
+		$(do_sed) $(DESTDIR)$(jabberdir)/$$f; \
+	done
\ No newline at end of file

Modified: trunk/vhffs-jabber/vhffspipe.pl
===================================================================
--- trunk/vhffs-jabber/vhffspipe.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-jabber/vhffspipe.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,7 +1,7 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Added: trunk/vhffs-listengine/Makefile.am
===================================================================
--- trunk/vhffs-listengine/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,3 @@
+SUBDIRS = src
+EXTRA_DIST = misc
+

Added: trunk/vhffs-listengine/src/Makefile.am
===================================================================
--- trunk/vhffs-listengine/src/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/src/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,16 @@
+SUBDIR = archives
+
+ledir = @LEDIR@
+le_SCRIPTS = listengine.pl
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(APIDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(le_SCRIPTS) ; do \
+		$(do_sed) $(DESTDIR)$(ledir)/$$f; \
+	done
\ No newline at end of file

Added: trunk/vhffs-listengine/src/archives/Makefile.am
===================================================================
--- trunk/vhffs-listengine/src/archives/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/src/archives/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,18 @@
+lewebdir = @LEWEBDIR@
+leweb_DATA = \
+	archives.pl \
+	show_msg.pl \
+	templates/byday_sub.tmpl \
+	templates/byday.tmpl \
+	templates/bymonth_sub.tmpl \
+	templates/bymonth.tmpl \
+	templates/byyear_sub.tmpl \
+	templates/byyear.tmpl \
+	templates/error.tmpl \
+	templates/lang_part.tmpl \
+	templates/langs.tmpl \
+	templates/list_sub.tmpl \
+	templates/list.tmpl \
+	templates/showmsg.tmpl \
+	templates/themes_part.tmpl \
+	templates/themes.tmpl
\ No newline at end of file

Modified: trunk/vhffs-listengine/src/archives/archives.pl
===================================================================
--- trunk/vhffs-listengine/src/archives/archives.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/src/archives/archives.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use HTML::Template;
 use CGI;
 use CGI::Session;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Panel::Main;
 use Vhffs::Functions;

Modified: trunk/vhffs-listengine/src/archives/show_msg.pl
===================================================================
--- trunk/vhffs-listengine/src/archives/show_msg.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/src/archives/show_msg.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use HTML::Template;
 use CGI;
 use CGI::Session;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Functions;
 use Vhffs::Services::Mailing;

Modified: trunk/vhffs-listengine/src/listengine.pl
===================================================================
--- trunk/vhffs-listengine/src/listengine.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-listengine/src/listengine.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use locale;
 use Locale::gettext;
 use Mail::Internet;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Services::Mailing;
 use Vhffs::Listengine::Intl;

Added: trunk/vhffs-panel/Makefile.am
===================================================================
--- trunk/vhffs-panel/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,293 @@
+SUBDIRS = templates
+
+paneldir = @PANELDIR@
+nobase_panel_SCRIPTS = alert_submit.pl \
+	alert.pl \
+	auth.pl \
+	auth.pl \
+	favicon.ico \
+	getavatar.pl \
+	history.pl \
+	logout.pl \
+	lost_ack.pl \
+	panel.pl \
+	show_code.pl \
+	subscribe.pl \
+	acl/add_acl_group.pl \
+	acl/add_acl_user.pl \
+	acl/submit.pl \
+	acl/view.pl \
+	admin/cvs/edit_submit.pl \
+	admin/cvs/edit.pl \
+	admin/cvs/list.pl \
+	admin/cvs/search.pl \
+	admin/cvs/show.pl \
+	admin/dns/list.pl \
+	admin/dns/search.pl \
+	admin/group/edit_submit.pl \
+	admin/group/edit.pl \
+	admin/group/list.pl \
+	admin/group/search.pl \
+	admin/group/show.pl \
+	admin/mail/change_forward.pl \
+	admin/mail/delete_box.pl \
+	admin/mail/delete_forward.pl \
+	admin/mail/edit.pl \
+	admin/mail/list.pl \
+	admin/mail/password_box.pl \
+	admin/mail/search.pl \
+	admin/mail/show.pl \
+	admin/mailing/list.pl \
+	admin/mailing/mailing_submit.pl \
+	admin/mailing/search.pl \
+	admin/mysql/edit_submit.pl \
+	admin/mysql/edit.pl \
+	admin/mysql/list.pl \
+	admin/mysql/search.pl \
+	admin/mysql/show.pl \
+	admin/object/delete_avatar.pl \
+	admin/object/edit_submit.pl \
+	admin/object/edit.pl \
+	admin/object/list.pl \
+	admin/object/search.pl \
+	admin/pgsql/edit_submit.pl \
+	admin/pgsql/edit.pl \
+	admin/pgsql/list.pl \
+	admin/pgsql/search.pl \
+	admin/pgsql/show.pl \
+	admin/repository/edit_submit.pl \
+	admin/repository/edit.pl \
+	admin/repository/list.pl \
+	admin/repository/search.pl \
+	admin/repository/show.pl \
+	admin/svn/list.pl \
+	admin/svn/search.pl \
+	admin/user/edit_note.pl \
+	admin/user/edit_submit.pl \
+	admin/user/edit.pl \
+	admin/user/list.pl \
+	admin/user/search.pl \
+	admin/user/show.pl \
+	admin/web/edit_submit.pl \
+	admin/web/edit.pl \
+	admin/web/list.pl \
+	admin/web/search.pl \
+	admin/web/show.pl \
+	admin/broadcast_delete.pl \
+	admin/broadcast_list.pl \
+	admin/broadcast_submit.pl \
+	admin/broadcast_view.pl \
+	admin/broadcast.pl \
+	admin/moderation_submit.pl \
+	admin/moderation.pl \
+	admin/stats.pl \
+	admin/su.pl \
+	cvs/create.pl \
+	cvs/delete.pl \
+	cvs/prefs_save.pl \
+	cvs/prefs.pl \
+	dns/add_a.pl \
+	dns/add_cname.pl \
+	dns/add_mx.pl \
+	dns/add_ns.pl \
+	dns/create.pl \
+	dns/delete_a.pl \
+	dns/delete_cname.pl \
+	dns/delete_mx.pl \
+	dns/delete_ns.pl \
+	dns/delete.pl \
+	dns/dns_submit.pl \
+	dns/dns_type_submit.pl \
+	dns/modif_a.pl \
+	dns/modif_cname.pl \
+	dns/modif_mx.pl \
+	dns/prefs.pl \
+	group/create.pl \
+	group/delete.pl \
+	group/join_group.pl \
+	group/prefs_save.pl \
+	group/prefs.pl \
+	group/project_submit.pl \
+	group/quota_used.pl \
+	group/remove_user_from_group.pl \
+	help/cvs.html \
+	help/index.html \
+	mail/add_account.pl \
+	mail/add_forward.pl \
+	mail/change_forward.pl \
+	mail/create.pl \
+	mail/delete_box.pl \
+	mail/delete_forward.pl \
+	mail/delete.pl \
+	mail/password_box.pl \
+	mail/prefs.pl \
+	mail/save_catchall.pl \
+	mail/spambox.pl \
+	mail/spamvirus.pl \
+	mail/submit.pl \
+	mailinglist/add_sub.pl \
+	mailinglist/change_right.pl \
+	mailinglist/create.pl \
+	mailinglist/del_member.pl \
+	mailinglist/delete.pl \
+	mailinglist/prefs.pl \
+	mailinglist/save_options.pl \
+	mailinglist/save_sig.pl \
+	mailinglist/submit.pl \
+	mysql/create.pl \
+	mysql/delete.pl \
+	mysql/prefs_save.pl \
+	mysql/prefs.pl \
+	mysql/submit.pl \
+	object/upavatar.pl \
+	pgsql/create.pl \
+	pgsql/delete.pl \
+	pgsql/pgsql_submit.pl \
+	pgsql/prefs_save.pl \
+	pgsql/prefs.pl \
+	public/allgroups.pl \
+	public/allwebsites.pl \
+	public/group.pl \
+	public/index.pl \
+	public/lastgroups.pl \
+	public/lastusers.pl \
+	public/user.pl \
+	public/websearch.pl \
+	public/rss/lastgroups.pl \
+	public/rss/lastusers.pl \
+	repository/create.pl \
+	repository/delete.pl \
+	repository/prefs_save.pl \
+	repository/prefs.pl \
+	repository/quota_used.pl \
+	repository/repository_submit.pl \
+	svn/create.pl \
+	svn/delete.pl \
+	svn/prefs_save.pl \
+	svn/prefs.pl \
+	svn/svn_submit.pl \
+	user/delete.pl \
+	user/prefs.pl \
+	web/create.pl \
+	web/delete.pl \
+	web/prefs_save.pl \
+	web/prefs.pl \
+	web/web_submit.pl
+
+panelthemesdir = @PANELDIR@
+nobase_panelthemes_DATA = \
+	themes/vhffs/images/bug.png \
+	themes/vhffs/images/cvscreate.png \
+	themes/vhffs/images/cvsentry.png \
+	themes/vhffs/images/cvshelp.png \
+	themes/vhffs/images/cvs.png \
+	themes/vhffs/images/dbacces.png \
+	themes/vhffs/images/dbcreate.png \
+	themes/vhffs/images/dbentry.png \
+	themes/vhffs/images/db.png \
+	themes/vhffs/images/dnscreate.png \
+	themes/vhffs/images/dnsentry.png \
+	themes/vhffs/images/dns.png \
+	themes/vhffs/images/en_US.png \
+	themes/vhffs/images/es_ES.png \
+	themes/vhffs/images/fr_FR.png \
+	themes/vhffs/images/help.png \
+	themes/vhffs/images/homeentry.png \
+	themes/vhffs/images/home.png \
+	themes/vhffs/images/it_IT.png \
+	themes/vhffs/images/largefilecreate.png \
+	themes/vhffs/images/largefileentry.png \
+	themes/vhffs/images/largefile.png \
+	themes/vhffs/images/logo_2.png \
+	themes/vhffs/images/logo_old.png \
+	themes/vhffs/images/logo.png \
+	themes/vhffs/images/logout.png \
+	themes/vhffs/images/mailcreate.png \
+	themes/vhffs/images/mailentry.png \
+	themes/vhffs/images/mailingcreate.png \
+	themes/vhffs/images/mailingentry.png \
+	themes/vhffs/images/mailing.png \
+	themes/vhffs/images/mail.png \
+	themes/vhffs/images/projectcontribentry.png \
+	themes/vhffs/images/projectcontrib.png \
+	themes/vhffs/images/projectcreate.png \
+	themes/vhffs/images/projectownerentry.png \
+	themes/vhffs/images/projectowner.png \
+	themes/vhffs/images/projectparams.png \
+	themes/vhffs/images/quota.png \
+	themes/vhffs/images/repositorycreate.png \
+	themes/vhffs/images/repositoryentry.png \
+	themes/vhffs/images/repository.png \
+	themes/vhffs/images/userentry.png \
+	themes/vhffs/images/user.png \
+	themes/vhffs/images/webcreate.png \
+	themes/vhffs/images/webentry.png \
+	themes/vhffs/images/web.png \
+	themes/vhffs/js/menu.js \
+	themes/vhffs/main.css \
+	themes/vhffs-ng/images/bug.png \
+	themes/vhffs-ng/images/buttonbg.png \
+	themes/vhffs-ng/images/cvscreate.png \
+	themes/vhffs-ng/images/cvsentry.png \
+	themes/vhffs-ng/images/cvshelp.png \
+	themes/vhffs-ng/images/cvs.png \
+	themes/vhffs-ng/images/dbacces.png \
+	themes/vhffs-ng/images/dbcreate.png \
+	themes/vhffs-ng/images/dbentry.png \
+	themes/vhffs-ng/images/db.png \
+	themes/vhffs-ng/images/dnscreate.png \
+	themes/vhffs-ng/images/dnsentry.png \
+	themes/vhffs-ng/images/dns.png \
+	themes/vhffs-ng/images/en_US.png \
+	themes/vhffs-ng/images/es_ES.png \
+	themes/vhffs-ng/images/fr_FR.png \
+	themes/vhffs-ng/images/help.png \
+	themes/vhffs-ng/images/homeentry.png \
+	themes/vhffs-ng/images/home.png \
+	themes/vhffs-ng/images/inputbg.png \
+	themes/vhffs-ng/images/it_IT.png \
+	themes/vhffs-ng/images/largefilecreate.png \
+	themes/vhffs-ng/images/largefileentry.png \
+	themes/vhffs-ng/images/largefile.png \
+	themes/vhffs-ng/images/logo_2.png \
+	themes/vhffs-ng/images/logo_old.png \
+	themes/vhffs-ng/images/logo.png \
+	themes/vhffs-ng/images/logout.png \
+	themes/vhffs-ng/images/mailcreate.png \
+	themes/vhffs-ng/images/mailentry.png \
+	themes/vhffs-ng/images/mailingcreate.png \
+	themes/vhffs-ng/images/mailingentry.png \
+	themes/vhffs-ng/images/mailing.png \
+	themes/vhffs-ng/images/mail.png \
+	themes/vhffs-ng/images/projectcontribentry.png \
+	themes/vhffs-ng/images/projectcontrib.png \
+	themes/vhffs-ng/images/projectcreate.png \
+	themes/vhffs-ng/images/projectownerentry.png \
+	themes/vhffs-ng/images/projectowner.png \
+	themes/vhffs-ng/images/projectparams.png \
+	themes/vhffs-ng/images/quota.png \
+	themes/vhffs-ng/images/repositorycreate.png \
+	themes/vhffs-ng/images/repositoryentry.png \
+	themes/vhffs-ng/images/repository.png \
+	themes/vhffs-ng/images/userentry.png \
+	themes/vhffs-ng/images/user.png \
+	themes/vhffs-ng/images/webcreate.png \
+	themes/vhffs-ng/images/webentry.png \
+	themes/vhffs-ng/images/web.png \
+	themes/vhffs-ng/js/browserdetect.js \
+	themes/vhffs-ng/js/menu.js \
+	themes/vhffs-ng/main.css
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(nobase_panel_SCRIPTS) ; do \
+		$(do_sed) $(DESTDIR)$(paneldir)/$$f; \
+	done
+
+

Modified: trunk/vhffs-panel/acl/add_acl_group.pl
===================================================================
--- trunk/vhffs-panel/acl/add_acl_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/acl/add_acl_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/acl/add_acl_user.pl
===================================================================
--- trunk/vhffs-panel/acl/add_acl_user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/acl/add_acl_user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/acl/submit.pl
===================================================================
--- trunk/vhffs-panel/acl/submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/acl/submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/acl/view.pl
===================================================================
--- trunk/vhffs-panel/acl/view.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/acl/view.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/broadcast.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/broadcast.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/broadcast_delete.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/broadcast_delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/broadcast_list.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/broadcast_list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/broadcast_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/broadcast_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/broadcast_view.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_view.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/broadcast_view.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/cvs/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/cvs/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/cvs/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/cvs/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/cvs/list.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/cvs/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/cvs/search.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/cvs/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/cvs/show.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/cvs/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/dns/list.pl
===================================================================
--- trunk/vhffs-panel/admin/dns/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/dns/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/dns/search.pl
===================================================================
--- trunk/vhffs-panel/admin/dns/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/dns/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/group/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/group/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/group/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/group/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/group/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/group/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/group/list.pl
===================================================================
--- trunk/vhffs-panel/admin/group/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/group/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/group/search.pl
===================================================================
--- trunk/vhffs-panel/admin/group/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/group/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/group/show.pl
===================================================================
--- trunk/vhffs-panel/admin/group/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/group/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/change_forward.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/change_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/change_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/delete_box.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/delete_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/delete_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/delete_forward.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/delete_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/delete_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/list.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/password_box.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/password_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/password_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/search.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mail/show.pl
===================================================================
--- trunk/vhffs-panel/admin/mail/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mail/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mailing/list.pl
===================================================================
--- trunk/vhffs-panel/admin/mailing/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mailing/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mailing/mailing_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/mailing/mailing_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mailing/mailing_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mailing/search.pl
===================================================================
--- trunk/vhffs-panel/admin/mailing/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mailing/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/moderation.pl
===================================================================
--- trunk/vhffs-panel/admin/moderation.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/moderation.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/moderation_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/moderation_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/moderation_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mysql/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mysql/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mysql/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mysql/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mysql/list.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mysql/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mysql/search.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mysql/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/mysql/show.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/mysql/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/object/delete_avatar.pl
===================================================================
--- trunk/vhffs-panel/admin/object/delete_avatar.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/object/delete_avatar.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/object/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/object/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/object/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/object/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/object/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/object/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/object/list.pl
===================================================================
--- trunk/vhffs-panel/admin/object/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/object/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/object/search.pl
===================================================================
--- trunk/vhffs-panel/admin/object/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/object/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/pgsql/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/pgsql/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/pgsql/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/pgsql/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/pgsql/list.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/pgsql/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/pgsql/search.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/pgsql/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/pgsql/show.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/pgsql/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/repository/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/repository/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/repository/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/repository/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/repository/list.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/repository/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/repository/search.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/repository/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/repository/show.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/repository/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/stats.pl
===================================================================
--- trunk/vhffs-panel/admin/stats.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/stats.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/su.pl
===================================================================
--- trunk/vhffs-panel/admin/su.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/su.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/svn/list.pl
===================================================================
--- trunk/vhffs-panel/admin/svn/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/svn/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -34,7 +34,7 @@
 use HTML::Template;
 use Locale::gettext;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Svn;
 

Modified: trunk/vhffs-panel/admin/svn/search.pl
===================================================================
--- trunk/vhffs-panel/admin/svn/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/svn/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/user/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/user/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/user/edit_note.pl
===================================================================
--- trunk/vhffs-panel/admin/user/edit_note.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/edit_note.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/user/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/user/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/user/list.pl
===================================================================
--- trunk/vhffs-panel/admin/user/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -34,7 +34,7 @@
 use HTML::Template;
 use Locale::gettext;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Menu;
 use Vhffs::Panel::User;

Modified: trunk/vhffs-panel/admin/user/search.pl
===================================================================
--- trunk/vhffs-panel/admin/user/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/user/show.pl
===================================================================
--- trunk/vhffs-panel/admin/user/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/user/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/web/edit.pl
===================================================================
--- trunk/vhffs-panel/admin/web/edit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/web/edit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/web/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/web/edit_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/web/edit_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/web/list.pl
===================================================================
--- trunk/vhffs-panel/admin/web/list.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/web/list.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -34,7 +34,7 @@
 use Locale::gettext;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Web;
 

Modified: trunk/vhffs-panel/admin/web/search.pl
===================================================================
--- trunk/vhffs-panel/admin/web/search.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/web/search.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/admin/web/show.pl
===================================================================
--- trunk/vhffs-panel/admin/web/show.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/admin/web/show.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/alert.pl
===================================================================
--- trunk/vhffs-panel/alert.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/alert.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/alert_submit.pl
===================================================================
--- trunk/vhffs-panel/alert_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/alert_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/auth.pl
===================================================================
--- trunk/vhffs-panel/auth.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/auth.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use Locale::gettext;
 use HTML::Template;
 use CGI;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Commons;

Modified: trunk/vhffs-panel/cvs/create.pl
===================================================================
--- trunk/vhffs-panel/cvs/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/cvs/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/cvs/delete.pl
===================================================================
--- trunk/vhffs-panel/cvs/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/cvs/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/cvs/prefs.pl
===================================================================
--- trunk/vhffs-panel/cvs/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/cvs/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/cvs/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/cvs/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/cvs/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/dns/create.pl
===================================================================
--- trunk/vhffs-panel/dns/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/dns/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w -I/vhffs/vhffs-api/src/ -I/vhffs/vhffs-panel/
+#!%PERL% -w -I/vhffs/vhffs-api/src/ -I/vhffs/vhffs-panel/
 
 use POSIX qw(locale_h);
 use HTML::Template;
@@ -9,7 +9,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/dns/delete.pl
===================================================================
--- trunk/vhffs-panel/dns/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/dns/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/dns/dns_submit.pl
===================================================================
--- trunk/vhffs-panel/dns/dns_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/dns/dns_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/dns/dns_type_submit.pl
===================================================================
--- trunk/vhffs-panel/dns/dns_type_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/dns/dns_type_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/dns/prefs.pl
===================================================================
--- trunk/vhffs-panel/dns/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/dns/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/getavatar.pl
===================================================================
--- trunk/vhffs-panel/getavatar.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/getavatar.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use CGI;
 use GD;
 use GD::Text::Wrap;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Object;
 use Vhffs::Panel::Avatar;

Modified: trunk/vhffs-panel/group/create.pl
===================================================================
--- trunk/vhffs-panel/group/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/group/delete.pl
===================================================================
--- trunk/vhffs-panel/group/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/group/join_group.pl
===================================================================
--- trunk/vhffs-panel/group/join_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/join_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/group/prefs.pl
===================================================================
--- trunk/vhffs-panel/group/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/group/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/group/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/group/project_submit.pl
===================================================================
--- trunk/vhffs-panel/group/project_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/project_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/group/quota_used.pl
===================================================================
--- trunk/vhffs-panel/group/quota_used.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/quota_used.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -42,7 +42,7 @@
 use GD::Text::Wrap;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/group/remove_user_from_group.pl
===================================================================
--- trunk/vhffs-panel/group/remove_user_from_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/group/remove_user_from_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/history.pl
===================================================================
--- trunk/vhffs-panel/history.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/history.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/logout.pl
===================================================================
--- trunk/vhffs-panel/logout.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/logout.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use CGI;
 use CGI::Session;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 
 my $panel = new_light Vhffs::Panel::Main();

Modified: trunk/vhffs-panel/lost.pl
===================================================================
--- trunk/vhffs-panel/lost.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/lost.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use Locale::gettext;
 use HTML::Template;
 use CGI;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Panel::Main;
 
 

Modified: trunk/vhffs-panel/lost_ack.pl
===================================================================
--- trunk/vhffs-panel/lost_ack.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/lost_ack.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/mail/add_account.pl
===================================================================
--- trunk/vhffs-panel/mail/add_account.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/add_account.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/add_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/add_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/add_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/change_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/change_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/change_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/create.pl
===================================================================
--- trunk/vhffs-panel/mail/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/mail/delete.pl
===================================================================
--- trunk/vhffs-panel/mail/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/delete_box.pl
===================================================================
--- trunk/vhffs-panel/mail/delete_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/delete_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/delete_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/delete_forward.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/delete_forward.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/password_box.pl
===================================================================
--- trunk/vhffs-panel/mail/password_box.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/password_box.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/prefs.pl
===================================================================
--- trunk/vhffs-panel/mail/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/save_catchall.pl
===================================================================
--- trunk/vhffs-panel/mail/save_catchall.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/save_catchall.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/spambox.pl
===================================================================
--- trunk/vhffs-panel/mail/spambox.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/spambox.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/spamvirus.pl
===================================================================
--- trunk/vhffs-panel/mail/spamvirus.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/spamvirus.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mail/submit.pl
===================================================================
--- trunk/vhffs-panel/mail/submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mail/submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/add_sub.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/add_sub.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/add_sub.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/change_right.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/change_right.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/change_right.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/create.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/mailinglist/del_member.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/del_member.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/del_member.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/delete.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/prefs.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/save_options.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/save_options.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/save_options.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/save_sig.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/save_sig.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/save_sig.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mailinglist/submit.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mailinglist/submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mysql/create.pl
===================================================================
--- trunk/vhffs-panel/mysql/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mysql/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/mysql/delete.pl
===================================================================
--- trunk/vhffs-panel/mysql/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mysql/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/mysql/prefs.pl
===================================================================
--- trunk/vhffs-panel/mysql/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mysql/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/mysql/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/mysql/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mysql/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/mysql/submit.pl
===================================================================
--- trunk/vhffs-panel/mysql/submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/mysql/submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/object/upavatar.pl
===================================================================
--- trunk/vhffs-panel/object/upavatar.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/object/upavatar.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl 
+#!%PERL% 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Object;
 use Vhffs::User;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/panel.pl
===================================================================
--- trunk/vhffs-panel/panel.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/panel.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/pgsql/create.pl
===================================================================
--- trunk/vhffs-panel/pgsql/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/pgsql/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/pgsql/delete.pl
===================================================================
--- trunk/vhffs-panel/pgsql/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/pgsql/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/pgsql/pgsql_submit.pl
===================================================================
--- trunk/vhffs-panel/pgsql/pgsql_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/pgsql/pgsql_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/pgsql/prefs.pl
===================================================================
--- trunk/vhffs-panel/pgsql/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/pgsql/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/pgsql/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/pgsql/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/pgsql/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/public/allgroups.pl
===================================================================
--- trunk/vhffs-panel/public/allgroups.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/allgroups.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -36,7 +36,7 @@
 use Locale::gettext;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/allwebsites.pl
===================================================================
--- trunk/vhffs-panel/public/allwebsites.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/allwebsites.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use strict;
 use CGI;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/group.pl
===================================================================
--- trunk/vhffs-panel/public/group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/index.pl
===================================================================
--- trunk/vhffs-panel/public/index.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/index.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use strict;
 use CGI;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/lastgroups.pl
===================================================================
--- trunk/vhffs-panel/public/lastgroups.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/lastgroups.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -36,7 +36,7 @@
 use Locale::gettext;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/lastusers.pl
===================================================================
--- trunk/vhffs-panel/public/lastusers.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/lastusers.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use strict;
 use CGI;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/rss/lastgroups.pl
===================================================================
--- trunk/vhffs-panel/public/rss/lastgroups.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/rss/lastgroups.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -31,7 +31,7 @@
 
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 

Modified: trunk/vhffs-panel/public/rss/lastusers.pl
===================================================================
--- trunk/vhffs-panel/public/rss/lastusers.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/rss/lastusers.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -31,7 +31,7 @@
 
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 

Modified: trunk/vhffs-panel/public/user.pl
===================================================================
--- trunk/vhffs-panel/public/user.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/user.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/public/websearch.pl
===================================================================
--- trunk/vhffs-panel/public/websearch.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/public/websearch.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -37,7 +37,7 @@
 use strict;
 use CGI;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/repository/create.pl
===================================================================
--- trunk/vhffs-panel/repository/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/repository/delete.pl
===================================================================
--- trunk/vhffs-panel/repository/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/repository/prefs.pl
===================================================================
--- trunk/vhffs-panel/repository/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/repository/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/repository/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/repository/quota_used.pl
===================================================================
--- trunk/vhffs-panel/repository/quota_used.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/quota_used.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -42,7 +42,7 @@
 use GD::Text::Wrap;
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/repository/repository_submit.pl
===================================================================
--- trunk/vhffs-panel/repository/repository_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/repository/repository_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -43,7 +43,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/show_code.pl
===================================================================
--- trunk/vhffs-panel/show_code.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/show_code.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use CGI;
 use GD;
 use GD::Text::Wrap;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Panel::Confirmation;
 

Modified: trunk/vhffs-panel/subscribe.pl
===================================================================
--- trunk/vhffs-panel/subscribe.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/subscribe.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -44,7 +44,7 @@
 use Locale::gettext;
 use HTML::Template;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Functions;

Modified: trunk/vhffs-panel/svn/create.pl
===================================================================
--- trunk/vhffs-panel/svn/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/svn/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/svn/delete.pl
===================================================================
--- trunk/vhffs-panel/svn/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/svn/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/svn/prefs.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/svn/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/svn/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/svn/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -39,7 +39,7 @@
 use strict;
 use Data::Dumper;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/svn/svn_submit.pl
===================================================================
--- trunk/vhffs-panel/svn/svn_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/svn/svn_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Added: trunk/vhffs-panel/templates/Makefile.am
===================================================================
--- trunk/vhffs-panel/templates/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/templates/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,201 @@
+paneltemplatesdir = @TEMPLATESDIR@
+nobase_paneltemplates_DATA = \
+	acl/view_each.tmpl \
+	acl/view.tmpl \
+	admin/cvs/edit.tmpl \
+	admin/cvs/menu.tmpl \
+	admin/cvs/part-modo.tmpl \
+	admin/cvs/part.tmpl \
+	admin/cvs/search.tmpl \
+	admin/cvs/show.tmpl \
+	admin/dns/menu.tmpl \
+	admin/dns/part-modo.tmpl \
+	admin/dns/part.tmpl \
+	admin/dns/search.tmpl \
+	admin/group/edit.tmpl \
+	admin/group/menu.tmpl \
+	admin/group/part-modo.tmpl \
+	admin/group/part.tmpl \
+	admin/group/search.tmpl \
+	admin/group/show.tmpl \
+	admin/mail/admin_box-modo.tmpl \
+	admin/mail/admin_box.tmpl \
+	admin/mail/admin_forward-modo.tmpl \
+	admin/mail/admin_forward.tmpl \
+	admin/mail/edit.tmpl \
+	admin/mailing/menu.tmpl \
+	admin/mailing/part.tmpl \
+	admin/mailing/search.tmpl \
+	admin/mail/menu.tmpl \
+	admin/mail/part-modo.tmpl \
+	admin/mail/part.tmpl \
+	admin/mail/search.tmpl \
+	admin/mail/show.tmpl \
+	admin/main/general-modo.tmpl \
+	admin/main/general.tmpl \
+	admin/main/main.tmpl \
+	admin/misc/broadcast_list.tmpl \
+	admin/misc/broadcast_part.tmpl \
+	admin/misc/broadcast.tmpl \
+	admin/misc/broadcast_view.tmpl \
+	admin/misc/list.tmpl \
+	admin/misc/mailings_part.tmpl \
+	admin/misc/moderation_applied.tmpl \
+	admin/misc/moderation_part.tmpl \
+	admin/misc/moderation.tmpl \
+	admin/misc/opart.tmpl \
+	admin/misc/stats.tmpl \
+	admin/misc/su.tmpl \
+	admin/mysql/edit.tmpl \
+	admin/mysql/menu.tmpl \
+	admin/mysql/part-modo.tmpl \
+	admin/mysql/part.tmpl \
+	admin/mysql/search.tmpl \
+	admin/mysql/show.tmpl \
+	admin/object/edit.tmpl \
+	admin/object/part.tmpl \
+	admin/object/search.tmpl \
+	admin/pgsql/edit.tmpl \
+	admin/pgsql/menu.tmpl \
+	admin/pgsql/part-modo.tmpl \
+	admin/pgsql/part.tmpl \
+	admin/pgsql/search.tmpl \
+	admin/pgsql/show.tmpl \
+	admin/repository/edit.tmpl \
+	admin/repository/menu.tmpl \
+	admin/repository/part-modo.tmpl \
+	admin/repository/part.tmpl \
+	admin/repository/search.tmpl \
+	admin/repository/show.tmpl \
+	admin/svn/menu.tmpl \
+	admin/svn/part-modo.tmpl \
+	admin/svn/part.tmpl \
+	admin/svn/search.tmpl \
+	admin/user/edit-note.tmpl \
+	admin/user/edit.tmpl \
+	admin/user/group-part.tmpl \
+	admin/user/menu.tmpl \
+	admin/user/part-modo.tmpl \
+	admin/user/part.tmpl \
+	admin/user/search.tmpl \
+	admin/user/show.tmpl \
+	admin/web/edit.tmpl \
+	admin/web/menu.tmpl \
+	admin/web/part-modo.tmpl \
+	admin/web/part.tmpl \
+	admin/web/search.tmpl \
+	admin/web/show.tmpl \
+	cvs/create.tmpl \
+	cvs/menu_sub.tmpl \
+	cvs/menu_sub_wait.tmpl \
+	cvs/menu.tmpl \
+	cvs/prefs.tmpl \
+	dns/create.tmpl \
+	dns/end.tmpl \
+	dns/list_a_sub.tmpl \
+	dns/list_cname_sub.tmpl \
+	dns/list_mx_sub.tmpl \
+	dns/list_ns_sub.tmpl \
+	dns/list_sub.tmpl \
+	dns/menu_sub.tmpl \
+	dns/menu_sub_wait.tmpl \
+	dns/menu.tmpl \
+	dns/prefs.tmpl \
+	dns/type_a.tmpl \
+	dns/type_cname.tmpl \
+	dns/type_mx.tmpl \
+	group/add_user.tmpl \
+	group/create.tmpl \
+	group/each_user.tmpl \
+	group/info.tmpl \
+	group/list_user.tmpl \
+	group/menu_sub.tmpl \
+	group/menu_sub_wait.tmpl \
+	group/menu.tmpl \
+	group/prefs.tmpl \
+	mail/create.tmpl \
+	mailinglist/create.tmpl \
+	mailinglist/list_part.tmpl \
+	mailinglist/menu_sub.tmpl \
+	mailinglist/menu_sub_wait.tmpl \
+	mailinglist/menu.tmpl \
+	mailinglist/prefs.tmpl \
+	mail/menu_sub.tmpl \
+	mail/menu_sub_wait.tmpl \
+	mail/menu.tmpl \
+	mail/prefs_box.tmpl \
+	mail/prefs_forward.tmpl \
+	mail/prefs_spam.tmpl \
+	mail/prefs.tmpl \
+	mail/prefs_virus.tmpl \
+	main/auth.html \
+	main/auth.tmpl \
+	main/close.tmpl \
+	main/login_failed.tmpl \
+	main/login_ok.tmpl \
+	main/logout.tmpl \
+	main/lost_failed.tmpl \
+	main/lost_ok.tmpl \
+	main/lost.tmpl \
+	main/panel.tmpl \
+	menu/group.tmpl \
+	menu/main.tmpl \
+	menu/user.tmpl \
+	misc/alert.tmpl \
+	misc/group_service.tmpl \
+	misc/history_part.tmpl \
+	misc/history.tmpl \
+	misc/simplemsg.tmpl \
+	misc/welcome.tmpl \
+	mysql/create.tmpl \
+	mysql/menu_sub.tmpl \
+	mysql/menu_sub_wait.tmpl \
+	mysql/menu.tmpl \
+	mysql/prefs.tmpl \
+	pgsql/create.tmpl \
+	pgsql/menu_sub.tmpl \
+	pgsql/menu_sub_wait.tmpl \
+	pgsql/menu.tmpl \
+	pgsql/prefs.tmpl \
+	public/allwebsites.tmpl \
+	public/banner.tmpl \
+	public/group_part.tmpl \
+	public/group.tmpl \
+	public/index.tmpl \
+	public/largefile.tmpl \
+	public/lastgroups.tmpl \
+	public/lastusers.tmpl \
+	public/misc/cvs-part.tmpl \
+	public/misc/largefile-dl.tmpl \
+	public/misc/lastgroups-part.tmpl \
+	public/misc/lastusers-part.tmpl \
+	public/misc/list-part.tmpl \
+	public/misc/svn-part.tmpl \
+	public/misc/web-part.tmpl \
+	public/simplemsg.tmpl \
+	public/user_part.tmpl \
+	public/user.tmpl \
+	repository/create.tmpl \
+	repository/menu_sub.tmpl \
+	repository/menu_sub_wait.tmpl \
+	repository/menu.tmpl \
+	repository/prefs.tmpl \
+	svn/create.tmpl \
+	svn/menu_sub.tmpl \
+	svn/menu_sub_wait.tmpl \
+	svn/menu.tmpl \
+	svn/prefs.tmpl \
+	svn/user_part.tmpl \
+	user/create_complete.tmpl \
+	user/create.tmpl \
+	user/mailuserspam.tmpl \
+	user/mailuser.tmpl \
+	user/mailuservirus.tmpl \
+	user/prefs_avatar.tmpl \
+	user/prefs.tmpl \
+	web/create.tmpl \
+	web/mailuser.tmpl \
+	web/menu_sub.tmpl \
+	web/menu_sub_wait.tmpl \
+	web/menu.tmpl \
+	web/prefs.tmpl

Modified: trunk/vhffs-panel/user/delete.pl
===================================================================
--- trunk/vhffs-panel/user/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/user/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/user/prefs.pl
===================================================================
--- trunk/vhffs-panel/user/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/user/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/web/create.pl
===================================================================
--- trunk/vhffs-panel/web/create.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/web/create.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Panel::Main;

Modified: trunk/vhffs-panel/web/delete.pl
===================================================================
--- trunk/vhffs-panel/web/delete.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/web/delete.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/web/prefs.pl
===================================================================
--- trunk/vhffs-panel/web/prefs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/web/prefs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-panel/web/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/web/prefs_save.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/web/prefs_save.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-panel/web/web_submit.pl
===================================================================
--- trunk/vhffs-panel/web/web_submit.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-panel/web/web_submit.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 use CGI::Session;
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Added: trunk/vhffs-robots/Makefile.am
===================================================================
--- trunk/vhffs-robots/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,78 @@
+botsdir = @BOTSDIR@
+nobase_bots_DATA = \
+	misc/awstats_6.4_vhffs.patch \
+	misc/awstats_6.5_vhffs.patch \
+	misc/awstats_htaccess_example \
+	misc/awstats.sample \
+	misc/repository.awstats_6.4_vhffs.patch \
+	misc/repository.awstats_6.5_vhffs.patch \
+	misc/repository.awstats_htaccess_example \
+	misc/repository.awstats.sample \
+	misc/viewvc.conf.tmpl
+
+bots_SCRIPTS = \
+	src/create_cvs.pl \
+	src/create_dns.pl \
+	src/create_groups.pl \
+	src/create_homes.pl \
+	src/create_mail.pl \
+	src/create_ml.pl \
+	src/create_mysql.pl \
+	src/create_pgsql.pl \
+	src/create_repository.pl \
+	src/create_svn.pl \
+	src/create_viewvcconf.pl \
+	src/create_web.pl \
+	src/cvs_fixperms.pl \
+	src/delete_cvs.pl \
+	src/delete_dns.pl \
+	src/delete_group.pl \
+	src/delete_mail.pl \
+	src/delete_ml.pl \
+	src/delete_mysql.pl \
+	src/delete_pgsql.pl \
+	src/delete_repository.pl \
+	src/delete_svn.pl \
+	src/delete_users.pl \
+	src/delete_web.pl \
+	src/dump_mysql.pl \
+	src/fix_quota.pl \
+	src/fix_quota.pl \
+	src/fix_quota_repository.pl \
+	src/generate_repositorystats.pl \
+	src/generate_webstats.pl \
+	src/listengine_publicarchives.pl \
+	src/mailing.pl \
+	src/modify_mysql.pl \
+	src/modify_pgsql.pl \
+	src/refused_cvs.pl \
+	src/refused_dns.pl \
+	src/refused_groups.pl \
+	src/refused_mail.pl \
+	src/refused_ml.pl \
+	src/refused_mysql.pl \
+	src/refused_postgres.pl \
+	src/refused_repository.pl \
+	src/refused_svn.pl \
+	src/refused_web.pl \
+	src/svn_public.pl \
+	src/svn_websvn.pl \
+	src/update_quota_used.pl \
+	src/update_quota_used_repository.pl \
+	src/user_group.pl
+
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(nobase_bots_DATA) ; do \
+		$(do_sed) $(DESTDIR)$(botsdir)/$$f; \
+	done
+	for f in $(bots_SCRIPTS) ; do \
+		nf=`echo $$f | sed 's,^.*/,,'`; \
+		$(do_sed) $(DESTDIR)$(botsdir)/$$nf; \
+	done

Modified: trunk/vhffs-robots/src/create_cvs.pl
===================================================================
--- trunk/vhffs-robots/src/create_cvs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_cvs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 
 # Copyright (c) vhffs project and its contributors
@@ -32,7 +32,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Cvs;
 use Vhffs::Robots;
 use Vhffs::Main;

Modified: trunk/vhffs-robots/src/create_dns.pl
===================================================================
--- trunk/vhffs-robots/src/create_dns.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_dns.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.

Modified: trunk/vhffs-robots/src/create_groups.pl
===================================================================
--- trunk/vhffs-robots/src/create_groups.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_groups.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
@@ -30,7 +30,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Group;
 use Vhffs::Robots;

Modified: trunk/vhffs-robots/src/create_homes.pl
===================================================================
--- trunk/vhffs-robots/src/create_homes.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_homes.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 #This robot creates home directory of each users
 # Copyright (c) vhffs project and its contributors
@@ -31,7 +31,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::User;
 use Vhffs::Robots;
 use Vhffs::Main;

Modified: trunk/vhffs-robots/src/create_mail.pl
===================================================================
--- trunk/vhffs-robots/src/create_mail.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_mail.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-robots/src/create_ml.pl
===================================================================
--- trunk/vhffs-robots/src/create_ml.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_ml.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
@@ -29,7 +29,7 @@
 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Constants;

Modified: trunk/vhffs-robots/src/create_mysql.pl
===================================================================
--- trunk/vhffs-robots/src/create_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -32,7 +32,7 @@
 use strict;
 use POSIX;
 use locale;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Services::Mysql;
 use Vhffs::Robots::Mysql;

Modified: trunk/vhffs-robots/src/create_pgsql.pl
===================================================================
--- trunk/vhffs-robots/src/create_pgsql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_pgsql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Postgres;
 use Vhffs::Main;
 use Vhffs::Robots;

Modified: trunk/vhffs-robots/src/create_repository.pl
===================================================================
--- trunk/vhffs-robots/src/create_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 
 # Copyright (c) vhffs project and its contributors
@@ -32,7 +32,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Repository;
 use Vhffs::Robots;
 use Vhffs::Main;

Modified: trunk/vhffs-robots/src/create_svn.pl
===================================================================
--- trunk/vhffs-robots/src/create_svn.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_svn.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Robots::Svn;

Modified: trunk/vhffs-robots/src/create_viewvcconf.pl
===================================================================
--- trunk/vhffs-robots/src/create_viewvcconf.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_viewvcconf.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -31,7 +31,7 @@
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Services::Cvs;

Modified: trunk/vhffs-robots/src/create_web.pl
===================================================================
--- trunk/vhffs-robots/src/create_web.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/create_web.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Web;
 use Vhffs::Services::Httpd;
 use Vhffs::Robots;

Modified: trunk/vhffs-robots/src/cvs_fixperms.pl
===================================================================
--- trunk/vhffs-robots/src/cvs_fixperms.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/cvs_fixperms.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -38,7 +38,7 @@
 
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Functions;

Modified: trunk/vhffs-robots/src/delete_cvs.pl
===================================================================
--- trunk/vhffs-robots/src/delete_cvs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_cvs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Cvs;
 use Vhffs::Services::Cvs;
 use Vhffs::Constants;

Modified: trunk/vhffs-robots/src/delete_dns.pl
===================================================================
--- trunk/vhffs-robots/src/delete_dns.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_dns.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Services::DNS;
 use Vhffs::Main;

Modified: trunk/vhffs-robots/src/delete_group.pl
===================================================================
--- trunk/vhffs-robots/src/delete_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Group;
 use Vhffs::Main;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/delete_mail.pl
===================================================================
--- trunk/vhffs-robots/src/delete_mail.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_mail.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #

Modified: trunk/vhffs-robots/src/delete_ml.pl
===================================================================
--- trunk/vhffs-robots/src/delete_ml.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_ml.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Robots;

Modified: trunk/vhffs-robots/src/delete_mysql.pl
===================================================================
--- trunk/vhffs-robots/src/delete_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Robots::Mysql;
 use Vhffs::Services::Mysql;

Modified: trunk/vhffs-robots/src/delete_pgsql.pl
===================================================================
--- trunk/vhffs-robots/src/delete_pgsql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_pgsql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Services::Postgres;
 use Vhffs::Robots::Postgres;

Modified: trunk/vhffs-robots/src/delete_repository.pl
===================================================================
--- trunk/vhffs-robots/src/delete_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots::Repository;
 use Vhffs::Services::Repository;
 use Vhffs::Constants;

Modified: trunk/vhffs-robots/src/delete_svn.pl
===================================================================
--- trunk/vhffs-robots/src/delete_svn.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_svn.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Robots::Svn;

Modified: trunk/vhffs-robots/src/delete_users.pl
===================================================================
--- trunk/vhffs-robots/src/delete_users.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_users.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots qw( lock unlock vhffs_log );
 use Vhffs::Robots::User;
 use Vhffs::User;

Modified: trunk/vhffs-robots/src/delete_web.pl
===================================================================
--- trunk/vhffs-robots/src/delete_web.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/delete_web.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Robots::Web;
 use Vhffs::Services::Httpd;

Modified: trunk/vhffs-robots/src/dump_mysql.pl
===================================================================
--- trunk/vhffs-robots/src/dump_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/dump_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -35,7 +35,7 @@
 #
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/fix_quota.pl
===================================================================
--- trunk/vhffs-robots/src/fix_quota.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/fix_quota.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -35,7 +35,7 @@
 use locale;
 use Locale::gettext;
 use Quota;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/fix_quota_repository.pl
===================================================================
--- trunk/vhffs-robots/src/fix_quota_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/fix_quota_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -34,7 +34,7 @@
 use POSIX;
 use locale;
 use Locale::gettext;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/generate_webstats.pl
===================================================================
--- trunk/vhffs-robots/src/generate_webstats.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/generate_webstats.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -36,7 +36,7 @@
 #CustomLog /var/log/apache2/vhffs.log vhffs
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Conf;
 use Vhffs::Functions;

Modified: trunk/vhffs-robots/src/listengine_publicarchives.pl
===================================================================
--- trunk/vhffs-robots/src/listengine_publicarchives.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/listengine_publicarchives.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,8 +1,8 @@
-#!/usr/bin/perl -w 
+#!%PERL% -w 
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Group;
 use Vhffs::Functions;

Modified: trunk/vhffs-robots/src/mailing.pl
===================================================================
--- trunk/vhffs-robots/src/mailing.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/mailing.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -42,7 +42,7 @@
 use strict;
 use Encode;
 use utf8;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Functions;

Modified: trunk/vhffs-robots/src/modify_mysql.pl
===================================================================
--- trunk/vhffs-robots/src/modify_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/modify_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Robots::Mysql;
 use Vhffs::Services::Mysql;

Modified: trunk/vhffs-robots/src/modify_pgsql.pl
===================================================================
--- trunk/vhffs-robots/src/modify_pgsql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/modify_pgsql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -30,7 +30,7 @@
 # POSSIBILITY OF SUCH DAMAGE.
 
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Robots;
 use Vhffs::Services::Postgres;
 use Vhffs::Robots::Postgres;

Modified: trunk/vhffs-robots/src/refused_cvs.pl
===================================================================
--- trunk/vhffs-robots/src/refused_cvs.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_cvs.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_dns.pl
===================================================================
--- trunk/vhffs-robots/src/refused_dns.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_dns.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Robots;

Modified: trunk/vhffs-robots/src/refused_groups.pl
===================================================================
--- trunk/vhffs-robots/src/refused_groups.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_groups.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_mail.pl
===================================================================
--- trunk/vhffs-robots/src/refused_mail.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_mail.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_ml.pl
===================================================================
--- trunk/vhffs-robots/src/refused_ml.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_ml.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::User;

Modified: trunk/vhffs-robots/src/refused_mysql.pl
===================================================================
--- trunk/vhffs-robots/src/refused_mysql.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_mysql.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl
+#!%PERL%
 
 use strict;
 use POSIX qw(locale_h);
 use locale;
 use Locale::gettext;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_postgres.pl
===================================================================
--- trunk/vhffs-robots/src/refused_postgres.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_postgres.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_repository.pl
===================================================================
--- trunk/vhffs-robots/src/refused_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_svn.pl
===================================================================
--- trunk/vhffs-robots/src/refused_svn.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_svn.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,10 +1,10 @@
-#!/usr/bin/perl
+#!%PERL%
 
 use POSIX qw(locale_h);
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/refused_web.pl
===================================================================
--- trunk/vhffs-robots/src/refused_web.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/refused_web.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -33,7 +33,7 @@
 use locale;
 use Locale::gettext;
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/svn_public.pl
===================================================================
--- trunk/vhffs-robots/src/svn_public.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/svn_public.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Robots::Svn;

Modified: trunk/vhffs-robots/src/svn_websvn.pl
===================================================================
--- trunk/vhffs-robots/src/svn_websvn.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/svn_websvn.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -31,7 +31,7 @@
 
 use strict;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Services::Svn;

Modified: trunk/vhffs-robots/src/update_quota_used.pl
===================================================================
--- trunk/vhffs-robots/src/update_quota_used.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/update_quota_used.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -35,7 +35,7 @@
 use locale;
 use Locale::gettext;
 use Quota;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/update_quota_used_repository.pl
===================================================================
--- trunk/vhffs-robots/src/update_quota_used_repository.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/update_quota_used_repository.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -34,7 +34,7 @@
 use POSIX;
 use locale;
 use Locale::gettext;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Robots;
 use Vhffs::Group;

Modified: trunk/vhffs-robots/src/user_group.pl
===================================================================
--- trunk/vhffs-robots/src/user_group.pl	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-robots/src/user_group.pl	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -29,7 +29,7 @@
 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 # POSSIBILITY OF SUCH DAMAGE.
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::User;
 use Vhffs::Group;

Deleted: trunk/vhffs-shells/Makefile
===================================================================
--- trunk/vhffs-shells/Makefile	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-shells/Makefile	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,39 +0,0 @@
-# Copyright (c) vhffs project and its contributors
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without 
-# modification, are permitted provided that the following conditions 
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright 
-#   notice, this list of conditions and the following disclaimer.
-#2. Redistributions in binary form must reproduce the above copyright
-#   notice, this list of conditions and the following disclaimer in 
-#   the documentation and/or other materials provided with the 
-#   distribution.
-#3. Neither the name of vhffs nor the names of its contributors 
-#   may be used to endorse or promote products derived from this 
-#   software without specific prior written permission.
-#
-#THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
-#"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
-#LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
-#FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
-#COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
-#INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-#BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
-#LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
-#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
-# POSSIBILITY OF SUCH DAMAGE.
-
-.SUFFIXES = .c
-
-tuxshell: tuxshell.c
-	gcc -Wall -pedantic -o $@ $<
-
-all: tuxshell
-
-clean:
-	rm -f tuxshell

Added: trunk/vhffs-shells/Makefile.am
===================================================================
--- trunk/vhffs-shells/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-shells/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,3 @@
+.SUFFIXES = .c
+bindir = @SHELLDIR@
+bin_PROGRAMS = tuxshell

Added: trunk/vhffs-test-dependencies.in
===================================================================
--- trunk/vhffs-test-dependencies.in	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-test-dependencies.in	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,240 @@
+#!@PERL@
+# Copyright here
+
+use strict;
+use Getopt::Long;
+my %args;
+my %dep;
+my @components;
+
+$dep{'api'} = [ 
+	('Encode', ''),
+	('utf8', ''),
+	('diagnostics', ''),
+	('DBI', ''),
+	('DBD::Pg', ''),
+	('Config::General', ''),
+	('Locale::gettext', ''),
+	('Digest::MD5', ''),
+	('MIME::Lite', ''),
+	('Crypt::PasswdMD5', ''),
+	('Email::Valid', ''),
+	('File::Basename', ''),
+	('LockFile::Simple', ''),
+	('Mail::Internet', ''),
+	('HTML::Template', ''),
+	('CGI', ''),
+	('CGI::Session', '')];
+
+$dep{'irc'} = [
+	('Data::Dumper',''),
+	('Net::IRC',''),
+	('Text::Wrapper','')];
+
+$dep{'jabber'} = [ 'MIME::Base64' ];
+
+$dep{'listengine'} = [
+	('Net::SMTP', ''),
+	('Socket', '')];
+
+$dep{'panel'} = [
+	('GD', ''),
+	('GD::Text::Wrap', '')];
+
+&GetOptions( \%args,
+	'u|usage',
+	'h|help', 
+	'v|verbose',
+	'install',
+	'install-cmd=s',
+	'verify=s'
+);
+
+usage() if ( ($args{'u'}) or ($args{'h'}) );
+$args{'verify'} = 'api' if (!$args{'verify'});
+
+if ( $args{'verify'} eq 'all') {
+	@components = ('api', 'irc', 'jabber', 'listengine', 'panel');
+} else {
+	@components = split ( /,/, $args{'verify'});
+}
+
+
+# Test block. This allow to define tested module only once
+{
+	my $module;
+	my $all_ok = 1;
+	
+	sub print_component {
+		$_ = shift;
+		print "\n*** $_\n";
+	}
+	
+	# Call with 3 paramters :
+	# -msg : What we have to say
+	# -bad : 1 if module not present or not usable
+	# -comment : comments
+	sub print_result {
+	my $msg = shift;
+	my $bad = shift;
+	my $comment = shift;
+
+	$all_ok = 0 if ($bad);
+	if ($args{'v'} or $bad) {
+		print "        $msg";
+		print $bad ? " -> BAD MODULE" : " -> OK";
+		print "\n";
+	}
+	print "\t\t$comment\n" if defined $comment;
+}
+	
+	sub finished {
+		print "\n\n----------- Results : -----------\n";
+		if ($all_ok) {
+			print "Congratulations, all required perl modules are found and valid.\n";
+		} else {
+			print "Your system cannot run vhffs in its current state.\n";
+			print "Check previous messages to see what fails.\n";
+			print "note : if you run tests with --install-missings, you should be ok\n"
+		}
+	}
+}
+
+check_perl();
+
+# Now process each dependencies block
+foreach (@components) {
+	print_component ("$_");
+	
+	my @d = @{ $dep{$_} };
+	while (@d) {
+		my $module = shift @d;
+		my $version = shift @d;
+		my $ret = check_module($module, $version);
+
+		if ((!$ret) and ( $args{'install'} ) ) {
+			install_module ($module, $version);
+		}
+	}
+}
+
+finished();
+
+# ----------------------------- functions --------------------------------------
+sub usage {
+	print << '.';
+
+This program helps to detect perl modules and their versions
+to be sure we can run VHFFS on this computer.
+
+Options :
+  --install         Will install missing dependencies (*not recommmended*)
+  --install-cmd     Specify a command for installing perl modules (see below)
+  --verbose         Print all perl modules checked, not only the missings.
+  --verify          A list of vhffs component to verify deps
+
+  Supported vhffs components are :
+    . api (default)
+    . irc
+    . jabber
+    . listengine
+    . panel
+    . all (all of the above)
+                    
+	
+
+Installing dependencies :
+=========================
+Installing dependencies will be done with CPAN commands, if you are using
+the --install argument.
+
+You can add the --install-cmd="cmd", that let you specify a external program
+for installing missing dependencies, this is recommended since you can use
+your regular package management to take care of dependencies. This program will
+be called with the missing perl module as argument, or ir the string passed
+contain a '%s', will replace the "%s" with the module name ebcore calling it.
+
+Example :
+---------
+
+On Gentoo with g-cpan : 
+ ./vhffs-test-dependencies --verify=irc --install --install-cmd="g-cpan -i %s"
+
+On any Linux, using perl CPAN :
+ ./vhffs-test-dependencies --verify=all --install
+
+
+.
+exit();
+}
+
+# Should we verify a particular version of perl ?
+sub check_perl {
+	print_component ('perl');
+	eval {require 5};
+	print_result( "version : $]", 0);
+}
+
+sub check_module {
+	my $module = shift;
+	my $version = shift;
+
+	eval "use $module $version ()";
+	if ($@) {
+		my $errstr = $@;
+		$errstr =~ s/\n(.*)$//s;
+		print_result("module : $module $version", 1, $errstr);
+		return 0;
+	} else {
+		# TODO : Check version number
+		my $msg = "module : $module";
+		$msg .= " >=$version" if $version;
+		print_result($msg, 0);
+		return 1;
+	}
+}
+
+sub install_module {
+	my $module = shift;
+	my $version = shift;
+	
+	print "About to install $module\n";
+	
+	if ($args{'install-cmd'}) {
+		my $cmd = $args{'install-cmd'};
+		if( $cmd =~ /\%s/) {
+			$cmd =~ s/\%s/$module/g;
+		} else {
+			$cmd .= " $module";	
+		}
+		
+		# We now got the command 
+		print 'Command to execute :<' . $cmd . ">\n";
+		return scalar `$cmd 1>&2`;
+	} else {
+		# Regular CPAN install
+		my $ok = 1;
+		{
+			$ok = eval { require CPAN::MyConfig } || eval { require CPAN::Config };
+		}
+		
+        if (! $ok) {
+			print << 'FIN';
+Error while runnig CPAN access. Please configure your CPAN or setup your $HOME.
+Run `perl -MCPAN -e shell` to configure CPAN
+FIN
+ 			exit(1);
+		}
+		$ok = eval { require CPAN; CPAN::Shell->install($module) };
+		return $ok unless $@;
+
+		print << 'FIN';
+We got problem while installing your $module.
+Error string was :
+$@
+FIN
+		exit (1);
+	}
+}
+
+

Added: trunk/vhffs-tests/Makefile.am
===================================================================
--- trunk/vhffs-tests/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tests/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1 @@
+SUBDIRS = src
\ No newline at end of file

Added: trunk/vhffs-tests/src/Makefile.am
===================================================================
--- trunk/vhffs-tests/src/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tests/src/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,5 @@
+TESTS_ENVIRONMENT = @PERL@ -I . -I ../../vhffs-api/src/
+TESTS = Object.pl Group.pl User.pl Stats.pl Services/Svn.pl \
+	Services/Cvs.pl Services/Httpd.pl Services/DNS.pl Services/Mail.pl \
+	Services/Mailing.pl Services/Mysql.pl Services/Postgres.pl \
+	Functions.pl Services/Repository.pl

Modified: trunk/vhffs-tests/src/Vhffs/Tests/Main.pm
===================================================================
--- trunk/vhffs-tests/src/Vhffs/Tests/Main.pm	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tests/src/Vhffs/Tests/Main.pm	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 # Copyright (c) vhffs project and its contributors
 # All rights reserved.
 #
@@ -41,7 +41,7 @@
 
 use constant
 {
-    VHFFSCONFPATH => "vhffs-tests/conf/vhffs.conf"
+    VHFFSCONFPATH => "../conf/vhffs.conf"
 };
 
 

Added: trunk/vhffs-tools/Makefile.am
===================================================================
--- trunk/vhffs-tools/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,2 @@
+SUBDIRS = src
+DIST_SUBDIRS = src mans

Added: trunk/vhffs-tools/src/Makefile.am
===================================================================
--- trunk/vhffs-tools/src/Makefile.am	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/Makefile.am	2007-04-15 22:37:14 UTC (rev 563)
@@ -0,0 +1,27 @@
+toolsdir = @TOOLSDIR@
+tools_SCRIPTS = \
+	vhffs-blankmysql \
+	vhffs-checkinstall \
+	vhffs-dumpmysql \
+	vhffs-groupdel \
+	vhffs-groupinfo \
+	vhffs-makeadmin \
+	vhffs-moderate \
+	vhffs-passwd \
+	vhffs-quota \
+	vhffs-userdel \
+	vhffs-userinfo \
+	vhffs-usermod \
+	vhffs-webdir
+	
+# Define the substitution we need to point perl script at correct location
+do_sed = $(SED) --in-place \
+	-e 's,%PERL%,$(PERL),g' \
+	-e 's,'%VHFFS_LIB_DIR%',$(VHFFS_LIBDIR),g'
+
+# Because automake, exec-hook is executed before install-scripts
+# so install-data is after. Here we use a data-hook
+install-data-hook :
+	for f in $(tools_SCRIPTS) ; do \
+		$(do_sed) $(DESTDIR)$(toolsdir)/$$f; \
+	done
\ No newline at end of file

Modified: trunk/vhffs-tools/src/vhffs-blankmysql
===================================================================
--- trunk/vhffs-tools/src/vhffs-blankmysql	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-blankmysql	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 ##############################################################################
 # This binary blank all databases password for MySQL database
@@ -6,7 +6,7 @@
 # Use as it : blank_mysql
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Functions;

Modified: trunk/vhffs-tools/src/vhffs-checkinstall
===================================================================
--- trunk/vhffs-tools/src/vhffs-checkinstall	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-checkinstall	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,9 +1,9 @@
-#!/usr/bin/perl
+#!%PERL%
 
 #Wrote by soda <god@xxxxxxxxx>
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 
 my @DEPS = qw(HTML::Template Digest::MD5 CGI Locale::gettext Config::General DBI Email::Valid Crypt::PasswdMD5 GD::Text::Wrap GD MIME::Lite XML::RSS CGI::Session Encode utf8);
 my $dep;

Modified: trunk/vhffs-tools/src/vhffs-dumpmysql
===================================================================
--- trunk/vhffs-tools/src/vhffs-dumpmysql	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-dumpmysql	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 PAS FINI
 
@@ -9,7 +9,7 @@
 # Use as it : dump_mysql database_name
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Functions;

Modified: trunk/vhffs-tools/src/vhffs-groupdel
===================================================================
--- trunk/vhffs-tools/src/vhffs-groupdel	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-groupdel	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Group;
 use Vhffs::Main;
 use Vhffs::Constants;

Modified: trunk/vhffs-tools/src/vhffs-groupinfo
===================================================================
--- trunk/vhffs-tools/src/vhffs-groupinfo	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-groupinfo	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Group;
 use Vhffs::Main;
 

Modified: trunk/vhffs-tools/src/vhffs-makeadmin
===================================================================
--- trunk/vhffs-tools/src/vhffs-makeadmin	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-makeadmin	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Constants;

Modified: trunk/vhffs-tools/src/vhffs-moderate
===================================================================
--- trunk/vhffs-tools/src/vhffs-moderate	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-moderate	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%PERL% -w
 
 use POSIX qw(locale_h);
 use locale;
@@ -6,7 +6,7 @@
 use Locale::gettext;
 use Data::Dumper;
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Group;
 use Vhffs::Main;

Modified: trunk/vhffs-tools/src/vhffs-passwd
===================================================================
--- trunk/vhffs-tools/src/vhffs-passwd	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-passwd	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 

Modified: trunk/vhffs-tools/src/vhffs-quota
===================================================================
--- trunk/vhffs-tools/src/vhffs-quota	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-quota	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 
 #This is a part of VHFFS distribution
@@ -6,7 +6,7 @@
 
 
 #Use some VHFFS modules, it can be useful
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Group;
 

Modified: trunk/vhffs-tools/src/vhffs-userdel
===================================================================
--- trunk/vhffs-tools/src/vhffs-userdel	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-userdel	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Constants;

Modified: trunk/vhffs-tools/src/vhffs-userinfo
===================================================================
--- trunk/vhffs-tools/src/vhffs-userinfo	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-userinfo	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Functions;

Modified: trunk/vhffs-tools/src/vhffs-usermod
===================================================================
--- trunk/vhffs-tools/src/vhffs-usermod	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-usermod	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,6 +1,6 @@
-#!/usr/bin/perl
+#!%PERL%
 
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::User;
 use Vhffs::Main;
 use Vhffs::Constants;

Modified: trunk/vhffs-tools/src/vhffs-webdir
===================================================================
--- trunk/vhffs-tools/src/vhffs-webdir	2007-04-15 22:23:05 UTC (rev 562)
+++ trunk/vhffs-tools/src/vhffs-webdir	2007-04-15 22:37:14 UTC (rev 563)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%PERL%
 
 ##############################################################################
 # This binary change directory to the specified website passed trough argument
@@ -6,7 +6,7 @@
 # Use as it : webdir toto.tuxfamily.org
 
 use strict;
-use lib "/usr/share/vhffs/api/";
+use lib '%VHFFS_LIB_DIR%';
 use Vhffs::Main;
 use Vhffs::Constants;
 use Vhffs::Functions;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/