[vhffs-dev] [svn] commit: r180 - in /trunk: Makefile vhffs-install.sh |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Author: soda
Date: Thu Apr 13 21:37:43 2006
New Revision: 180
Log:
Real Makefile to install vhffs.
Thanks to F. Bayle
Removed:
trunk/vhffs-install.sh
Modified:
trunk/Makefile
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Apr 13 21:37:43 2006
@@ -1,288 +1,250 @@
#!/usr/bin/make
-# This is a part of VHFFS platform
-# This is VHFFS installer
-# Use it as root as : sh Makefile
-
-# Informations : http://www.vhffs.org
-
-CURRENTDIR=`pwd`
-APIDIR="/usr/share/perl5/Vhffs/"
-PANELDIR="${DESDTIR}/usr/share/vhffs/panel/"
-TEMPLATESDIR="${DESDTIR}/usr/share/vhffs/templates/"
-DOCDIR="${DESDTIR}/usr/share/doc/vhffs/"
-BACKENDDIR="${DESDTIR}/usr/share/vhffs/backend/"
-CONFDIR="${DESDTIR}/etc/vhffs/"
-INTLDIR="${DESDTIR}/usr/share/vhffs/intl/"
-BOTSDIR="${DESDTIR}/usr/lib/vhffs/bots/"
-LEDIR="${DESDTIR}/usr/lib/vhffs/listengine/"
-TOOLSDIR="${DESDTIR}/usr/bin/"
-JABBERDIR="${DESDTIR}/usr/share/vhffs/jabber/"
-LEARCHIVES="${DESDTIR}/usr/share/vhffs/listengine/archives"
-
-
-DEPS_MODULES="HTML::Template Data::Dumper Config::General LockFile::Simple Locale::gettext DBI Digest::MD5 Crypt::PasswdMD5 Date::Simple CGI::Session XML::RSS"
-DEPS_DEB="libconfig-general-perl libappconfig-perl libcrypt-passwdmd5-perl libdbd-pg-perl libxml-parser-perl libxml-rss-perl libmime-lite-perl libdate-simple-perl libcgi-session-perl libapahe-htpasswd-perl liblocale-gettext-perl libhtml-template-perl libemail-valid-perl"
-
-parse_opts ()
-{
- getopt -n vhffs-install.sh
-}
-
-
-choose_method ()
-{
- echo "Choose an install method"
- echo "1 - Debian style"
- echo "2 - Standard style"
- echo "----------------"
- echo "Your choice" :
-
- read STYLE
-
- if [ ${STYLE} = 1 ]; then
- echo "Debian style"
- METHOD="debian"
- else
- if [ ${STYLE} = 2 ]; then
- echo "Other"
- METHOD="standard"
- else
- echo "Unknow method"
- exit 1
- fi
- fi
-}
-
-
-install_deps ()
-{
- if [ -eq "${METHOD}" "standard" ]; then
- echo "Please answer yes to all questions"
- read
- for v in "${DEPS_MODULES}"; do
- cpan install $v
- done
- fi
-
- if [ ${METHOD} = "debian" ]; then
- echo "Debian packages will be installed, be sure that /etc/apt/sources.conf if OK and press enter"
- read
- for v in "${DEPS_DEBIAN}"; do
- apt-get install --assume-yes $v
- done
- fi
-
-}
-
-
-install ()
-{
- echo -n "Will install VHFFS in /"
- echo ${DESTDIR}
-
-
- echo -n "Install main VHFFS API ... "
- rm -rf "${DESTDIR}/${APIDIR}" 1>/dev/null 2>&1
-
- mkdir -p "${DESTDIR}/${APIDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-api" ]; then
- echo "vhffs-api module not found in sources"
- else
- cp -r vhffs-api/src/Vhffs/* "${DESTDIR}/${APIDIR}/"
- find "${DESTDIR}/${APIDIR}/" -type f | xargs chmod 644
- fi
- echo "done"
-
-
-
-
- echo -n "Install main VHFFS Panel ... "
- rm -rf "${DESTDIR}/${PANELDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${PANELDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-panel" ]; then
- echo "vhffs-panel module not found in sources"
- else
- cp -r vhffs-panel/* "${DESTDIR}/${PANELDIR}/"
- rm -fr "${DESTDIR}/${PANELDIR}/templates"
- find "${DESTDIR}/${PANELDIR}/" -type f | xargs chmod 755
- find "${DESTDIR}/${PANELDIR}/themes" -type f | xargs chmod 644
- fi
- echo "done"
-
-
-
- echo -n "Install main VHFFS Templates ... "
- rm -rf "${DESTDIR}/${TEMPLATESDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${TEMPLATESDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-panel/templates" ]; then
- echo "vhffs-templates module not found in sources"
- else
- cp -r vhffs-panel/templates/* "${DESTDIR}/${TEMPLATESDIR}/"
- find "${DESTDIR}/${TEMPLATESDIR}/" -type f | xargs chmod 644
- fi
- echo "done"
-
-
- echo -n "Install VHFFS backend files ... "
- rm -rf "${DESTDIR}/${BACKENDDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${BACKENDDIR}/tools"
- if [ ! -d "${CURRENTDIR}/vhffs-backend/src/pgsql" ]; then
- echo "vhffs-backend module not found in sources"
- else
- cp -r vhffs-backend/src/pgsql/*.sql "${DESTDIR}/${BACKENDDIR}/"
- cp -r vhffs-backend/tools/* "${DESTDIR}/${BACKENDDIR}/tools/"
- find "${DESTDIR}/${BACKENDDIR}/" -type f | xargs chmod 644
- find "${DESTDIR}/${BACKENDDIR}/tools" -type f | xargs chmod 755
- fi
- echo "done"
-
-
-
- echo -n "Install VHFFS doc ... "
- rm -rf "${DESTDIR}/${DOCDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${DOCDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-doc" ]; then
- echo "vhffs-doc module not found in sources"
- else
- cp -r vhffs-doc/* "${DESTDIR}/${DOCDIR}/"
- find "${DESTDIR}/${DOCDIR}/" -type f | xargs chmod 644
- fi
- echo "done"
-
-
- echo -n "Install VHFFS bots ... "
- rm -rf "${DESTDIR}/${BOTSDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${BOTSDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-robots/src/" ]; then
- echo "vhffs-robots module not found in sources"
- else
- for v in `ls ${CURRENTDIR}/vhffs-robots/src/`; do
- if [ -f "${CURRENTDIR}/vhffs-robots/src/$v" ]; then
- cp ${CURRENTDIR}/vhffs-robots/src/$v "${DESTDIR}/${BOTSDIR}/"
- chmod 775 ${DESTDIR}/${BOTSDIR}/$v
- fi
- done
- fi
- echo "done"
-
-
-
- echo -n "Install VHFFS jabber driver ... "
- rm -rf "${DESTDIR}/${JABBERDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${JABBERDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-jabber/" ]; then
- echo "vhffs-jabber module not found in sources"
- else
- cp -f vhffs-jabber/vhffspipe.pl "${DESTDIR}/${JABBERDIR}/"
- cp -f vhffs-jabber/README "${DESTDIR}/${JABBERDIR}/"
- chmod 755 "${DESTDIR}/${JABBERDIR}/vhffspipe.pl"
- chmod 644 "${DESTDIR}/${JABBERDIR}/README"
- echo "done"
- fi
-
- echo -n "Install VHFFS intl ... "
- rm -rf "${DESTDIR}/${INTLDIR}" 1>/dev/null 2>&1
- mkdir -p "${DESTDIR}/${INTLDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-intl/" ]; then
- echo "vhffs-intl module not found in sources"
- else
- cp -r vhffs-intl/result/* "${DESTDIR}/${INTLDIR}/"
- find "${DESTDIR}/${INTLDIR}/" -type f | xargs chmod 644
- echo "done"
- fi
-
- echo -n "Install VHFFS listengine ... "
- mkdir -p "${DESTDIR}/${LEDIR}"
- mkdir -p "${DESTDIR}/${LEARCHIVES}"
- mkdir -p "${DESTDIR}/${LEARCHIVES}/web"
- mkdir -p "${DESTDIR}/${LEARCHIVES}/templates"
-
- if [ ! -d "${CURRENTDIR}/vhffs-listengine/src" ]; then
- echo "vhffs-listengine module not found in sources"
- else
- cp -r vhffs-listengine/src/listengine.pl "${DESTDIR}/${LEDIR}/listengine"
- chmod 755 "${DESTDIR}/${LEDIR}/listengine"
- echo "done"
- fi
-
-
- if [ ! -d "${CURRENTDIR}/vhffs-listengine/src/archives" ]; then
- echo "vhffs-listengine archives module not found in sources"
- else
- cp vhffs-listengine/src/archives/show_msg.pl "${DESTDIR}/${LEARCHIVES}/web/"
- cp vhffs-listengine/src/archives/archives.pl "${DESTDIR}/${LEARCHIVES}/web/"
- cp -r vhffs-listengine/src/archives/css "${DESTDIR}/${LEARCHIVES}/web/"
- chmod -R 755 "${DESTDIR}/${LEARCHIVES}/web/"
-
- cp -r vhffs-listengine/src/archives/templates/* "${DESTDIR}/${LEARCHIVES}/templates/"
- echo "done"
- fi
-
-
-
- echo -n "Install VHFFS config file ... "
- mkdir -p "${DESTDIR}/${CONFDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-backend/conf" ]; then
- echo "vhffs-conf module not found in sources"
- else
- if [ -f "${DESTDIR}/${CONFDIR}/vhffs.conf" ]; then
- echo "VHFFS config file already exists"
- else
- cp -f vhffs-backend/conf/vhffs.conf "${DESTDIR}/${CONFDIR}/"
- chmod 755 "${DESTDIR}/${CONFDIR}/vhffs.conf"
- echo "done"
- fi
- fi
-
- echo -n "Install VHFFS shells ... "
- if [ ! -d "${CURRENTDIR}/vhffs-shells/" ]; then
- echo "could not find shells module"
- else
- if [ ! -d "${DESTDIR}/bin/" ]; then
- mkdir -p "${DESTDIR}/bin/"
- mkdir -p "${DESTDIR}/usr/share/man/man1"
- fi
- cd "${CURRENTDIR}/vhffs-shells"
- make clean 1>/dev/null 2>/dev/null
- make 1>/dev/null 2>/dev/null
- cp tuxshell "${DESTDIR}/bin/"
- cp tuxshell.1 "${DESTDIR}/usr/share/man/man1/"
- rm tuxshell 2>/dev/null
- if [ -f "${DESTDIR}/usr/share/man/man1/tuxshell.1.gz" ]; then
- rm -f "${DESTDIR}/usr/share/man/man1/tuxshell.1.gz"
- fi
- gzip "${DESTDIR}/usr/share/man/man1/tuxshell.1"
- echo "/bin/tuxshell" >> "${DESTDIR}/etc/shells"
- fi
-
- echo "done"
-
-
-
-
- echo -n "Install VHFFS tools ... "
- mkdir -p "${DESTDIR}/${TOOLSDIR}"
- if [ ! -d "${CURRENTDIR}/vhffs-tools/src" ]; then
- echo "vhffs-tools module not found in sources"
- else
- for v in `ls ${CURRENTDIR}/vhffs-tools/src`; do
- cp ${CURRENTDIR}/vhffs-tools/src/$v ${DESTDIR}/${TOOLSDIR}
- chmod 775 ${DESTDIR}/${TOOLSDIR}/$v
- done
- echo "done"
- fi
-
- echo ""
- echo "*********************************"
- echo ""
- echo "VHFFS is now probably installed."
- echo "You can check your installation with vhffs-checkinstall."
- echo "For help: http://vhffs.org or post on vhffs@xxxxxxxxx."
-}
-
-parse_opts
-exit
-install_deps
-
-exit 0
+APIDIR=$(DESTDIR)/usr/share/perl5/Vhffs/
+PANELDIR=$(DESTDIR)/usr/share/vhffs/panel/
+TEMPLATESDIR=$(DESTDIR)/usr/share/vhffs/templates/
+DOCDIR=$(DESTDIR)/usr/share/doc/vhffs/
+BACKENDDIR=$(DESTDIR)/usr/share/vhffs/backend/
+CONFDIR=$(DESTDIR)/etc/vhffs/
+INTLDIR=$(DESTDIR)/usr/share/vhffs/intl/
+BOTSDIR=$(DESTDIR)/usr/lib/vhffs/bots/
+LEDIR=$(DESTDIR)/usr/lib/vhffs/listengine/
+TOOLSDIR=$(DESTDIR)/usr/bin/
+JABBERDIR=$(DESTDIR)/usr/share/vhffs/jabber/
+LEWEB=$(DESTDIR)/usr/share/vhffs/listengine/
+
+
+install-debian: debian-deps install
+
+debian-deps:
+ /usr/bin/apt-get install libxml-rss-perl liblocale-gettext-perl \
+ libconfig-general-perl libhtml-template-perl\
+ libcrypt-passwdmd5-perl libgd-text-perl\
+ libmime-lite-perl libcgi-session-perl
+
+test-deps:
+ echo "foreach ( 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) ){\
+ \$$found = 0;\
+ \$$dep = \$$_;\
+ \$$dep =~ s/::/\//g;\
+ \$$dep .=\".pm\";\
+ foreach \$$dir ( @INC )\
+ {\
+ \$$file = \$$dir . \"/\" . \$$dep; \$$found = 1 if( -f \$$file );\
+ }\
+ if( \$$found == 0 )\
+ {\
+ print \"\n\n\tError, \$$_ perl-module is not installed\n\";\
+ exit( 1 );\
+ }\
+ }\
+ print \"\n\n\n\n\n\n\t\tGood all perl-deps are installed\n\"; exit( 0 );" | perl
+
+
+install: install-api install-panel install-listengine install-tools install-intl install-conf install-backend install-doc
+
+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/LICENCE* $(DOCDIR)/
+ install -m 644 vhffs-doc/config/apache/* $(DOCDIR)/config/apache/
+
+install-conf:
+ install -d -m 755 $(CONFDIR)
+ install -m 644 vhffs-backend/conf/vhffs.conf $(CONFDIR)/
+
+install-backend:
+ install -d -m 755 $(BACKENDDIR)
+ 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)/vhffs-initdb
+ install -m 755 vhffs-backend/tools/vhffs-migratedb $(BACKENDDIR)/vhffs-migratedb
+
+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-listengine-web:
+ install -d -m 755 $(LEWEB)
+ install -d -m 755 $(LEWEB)/archives
+ install -d -m 755 $(LEWEB)/templates
+ install -m 755 vhffs-listengine/src/archives/archives.pl $(LEWEB)/archives/
+ install -m 755 vhffs-listengine/src/archives/show_msg.pl $(LEWEB)/archives/
+ install -m 644 vhffs-listengine/src/archives/templates/*.tmpl $(LEWEB)/templates
+ ln -fs $(PANELDIR)/themes $(LEWEB)/archives/themes
+
+install-listengine: install-listengine-web
+ install -d -m 755 $(LEDIR)
+ install -m 755 vhffs-listengine/src/listengine.pl $(LEDIR)/listengine
+
+
+
+
+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/largefile
+ 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)/largefile
+ 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/largefile/*.tmpl $(TEMPLATESDIR)/admin/largefile/
+ 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/largefile/*.tmpl $(TEMPLATESDIR)/largefile/
+ 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/largefile $(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)/largefile
+ 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 755 vhffs-panel/*.pl $(PANELDIR)/
+ install -m 755 vhffs-panel/*.js $(PANELDIR)/
+ install -m 755 vhffs-panel/*.ico $(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/largefile/*.pl $(PANELDIR)/admin/largefile/
+ 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/largefile/*.pl $(PANELDIR)/largefile/
+ 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
+ #default theme
+ install -d -m 755 $(PANELDIR)/themes/default
+ install -d -m 755 $(PANELDIR)/themes/default/images
+ install -m 644 vhffs-panel/themes/default/*.css $(PANELDIR)/themes/default/
+ install -m 644 vhffs-panel/themes/default/images/*.png $(PANELDIR)/themes/default/images
+
+