[vhffs-dev] [svn] commit: r151 - /trunk/Makefile |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Author: soda
Date: Tue Jan 31 12:08:55 2006
New Revision: 151
Log:
try a new installer
Modified:
trunk/Makefile
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Tue Jan 31 12:08:55 2006
@@ -20,6 +20,56 @@
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"
+
+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
+
+echo "plop"
+
+install_deps ()
+{
+ if [ ${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_deps
+
+exit
echo -n "Will install VHFFS in /"
echo ${DESTDIR}