# Alternate port for Sendmail
SENDMAIL_PORT="25"
+# Apache httpd web server support
+USE_HTTPD="yes"
+
# Alternate port for Apache
HTTPD_PORT="80"
-APACHE_USER="www"
+HTTPD_USER="www"
+
+# Lighttpd web server support
+USE_LIGHTTPD="yes"
+
+# Define to httpd (Apache) or lighttpd
+DEFAULT_WEB_SERVER="lighttpd"
+
+# Webkit support
+USE_WEBKIT="no"
+
+# Gnash support
+USE_GNASH="no"
# Samba support (default yes)
USE_SAMBA="yes"
ipkg ${LIBNOTIFY}
ipkg ${LIBVPX} "--enable-shared"
- ipkg -m acnb -t -j ${WEBKIT} "\
- --libexecdir=/usr/lib/WebKitGTK \
- --with-gstreamer=0.10 \
- --enable-introspection \
- --with-gtk=2.0 \
- --disable-geolocation \
- --disable-gtk-doc"
- ipkg ${VALA}
- NOCOLOR=1 ipkg ${MIDORI}
+ if [ "x${USE_WEBKIT}" = "xyes" ]; then
+ ipkg -m acnb -t -j ${WEBKIT} "\
+ --libexecdir=/usr/lib/WebKitGTK \
+ --with-gstreamer=0.10 \
+ --enable-introspection \
+ --with-gtk=2.0 \
+ --disable-geolocation \
+ --disable-gtk-doc"
+ ipkg ${VALA}
+ NOCOLOR=1 ipkg ${MIDORI}
+ fi
ipkg -m noac -l "${FIREFOX}-xulrunner" ${FIREFOX}
ipkg -m noac -l "${FIREFOX}-browser" ${FIREFOX}
ipkg -m acnb ${VLC} "--enable-mozilla --enable-qt4 --enable-ncurses"
ipkg ${SDL}
ipkg -m noac ${AGG}
- ipkg ${GNASH}
+ if [ "x${USE_GNASH}" = "xyes" ]; then
+ ipkg ${GNASH}
+ fi
fi
ipkg ${LIBGAMIN} "--libexecdir=/usr/sbin"
ipkg -m acnb ${LIBFM}
ipkg ${PCMANFM}
-ipkg -s apache ${HTTPD} # Apache
-ipkg ${LIGHTTPD}
+if [ "x${USE_HTTPD}" = "xyes" ]; then
+ ipkg -s apache ${HTTPD}
+fi
+if [ "x${USE_LIGHTTPD}" = "xyes" ]; then
+ ipkg ${LIGHTTPD}
+fi
ipkg ${PHP}
if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
install -v -m740 ${SCRDIR}/bootscripts/apache /etc/rc.d/init.d
# script-name start stop
- bootscript_add_rc3 apache 70 20
+ if [ "x${DEFAULT_WEB_SERVER}" == "xhttpd" ]; then
+ bootscript_add_rc3 apache 70 20
+ fi
}
install -v -m740 ${SCRDIR}/bootscripts/lighttpd /etc/rc.d/init.d
# script-name start stop
- bootscript_add_rc3 lighttpd 70 20
+ if [ "x${DEFAULT_WEB_SERVER}" == "xlighttpd" ]; then
+ bootscript_add_rc3 lighttpd 70 20
+ fi
}
fi
cp ${LFS_TMP}/${PACKAGE}/php.ini-production /etc/php.ini
- # To enable PHP support in the Apache web server, a new AddType directive
- # must be added to the httpd.conf file.
- if ! grep -q "application/x-httpd-php" /etc/httpd/httpd.conf; then
- echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf
- fi
+ if [ "x${USE_HTTPD}" = "xyes" ]; then
+ # To enable PHP support in the Apache web server, a new AddType
+ # directive must be added to the httpd.conf file.
+ if ! grep -q "application/x-httpd-php" /etc/httpd/httpd.conf; then
+ echo "AddType application/x-httpd-php .php" >> /etc/httpd/httpd.conf
+ fi
- # Est-ce nécessaire?
- #cgi.discard_path = 1
+ # Est-ce nécessaire?
+ #cgi.discard_path = 1
- if ! grep -q "DirectoryIndex" /etc/httpd/httpd.conf | grep "index.php"; then
- sed -i -e "s!\(^\s*DirectoryIndex index.html.*\)!\1 index.php!g" \
- /etc/httpd/httpd.conf
+ if ! grep -q "DirectoryIndex" /etc/httpd/httpd.conf | grep "index.php"; then
+ sed -i -e "s!\(^\s*DirectoryIndex index.html.*\)!\1 index.php!g" \
+ /etc/httpd/httpd.conf
+ fi
fi
}
#########################################
# Apache
#########################################
- READ_VALID="no"
-
- while [ "${READ_VALID}" = "no" ]; do
- echo "Do you want to generate SSL self-signed"
- echo -n "certificate for Apache? (y/n): "
- read USE_SSL
-
- if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
- READ_VALID="yes"
- else
- echo "Error, answer y or n"
- fi
- done
-
- if [ "${USE_SSL}" = "y" ]; then
- /etc/httpd/generate-ssl-certs
+ if [ "x${USE_HTTPD}" = "xyes" ]; then
+ READ_VALID="no"
+
+ while [ "${READ_VALID}" = "no" ]; do
+ echo "Do you want to generate SSL self-signed"
+ echo -n "certificate for Apache? (y/n): "
+ read USE_SSL
+
+ if [ "${USE_SSL}" = "y" -o "${USE_SSL}" = "n" ]; then
+ READ_VALID="yes"
+ else
+ echo "Error, answer y or n"
+ fi
+ done
+
+ if [ "${USE_SSL}" = "y" ]; then
+ /etc/httpd/generate-ssl-certs
+ fi
fi
#########################################