[BusyBox-cvs] busybox/networking httpd.c,NONE,1.1 Config.in,1.5,1.6 Makefile.in,1.11,1.12

Glenn McGrath bug1 at busybox.net
Sun Jan 5 04:02:00 UTC 2003


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv8938/networking

Modified Files:
	Config.in Makefile.in 
Added Files:
	httpd.c 
Log Message:
New applet: httpd, by Glenn Engel


--- NEW FILE: httpd.c ---
/*
 * httpd implementation for busybox
 *
 * Copyright (C) 2002 Glenn Engel <glenne at engel.org>
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
[...1310 lines suppressed...]
    char *dir = (char *) malloc(256);
    if (dir == 0) perror_exit("out of memory for getpwd");
    if (getcwd(dir, 256) == 0) perror_exit("getcwd failed");
    if (daemon(0, 1) < 0) perror_exit("daemon");
    chdir(dir);
    free(dir);
  }

  miniHttpd(server);
  
  return 0;
}

#ifdef HTTPD_STANDALONE
int main(int argc, char *argv[])
{ 
  return httpd_main(argc, argv);
}

#endif

Index: Config.in
===================================================================
RCS file: /var/cvs/busybox/networking/Config.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Config.in	13 Dec 2002 02:43:50 -0000	1.5
+++ Config.in	5 Jan 2003 04:01:56 -0000	1.6
@@ -29,6 +29,20 @@
 	help
 	  Please submit a patch to add help text for this item.
 
+config CONFIG_HTTPD
+	bool "httpd"
+	default n
+	help
+	  Serve web pages via an HTTP server.
+
+config CONFIG_FEATURE_HTTPD_BASIC_AUTH
+	bool "  Enable Basic Authentication and IP address checking"
+	default n
+	depends on CONFIG_HTTPD
+	help
+	  Utilizes /etc/httpd.conf for security settings allowing 
+          ip address filtering and basic authentication on a per url basis.
+
 config CONFIG_IFCONFIG
 	bool "ifconfig"
 	default n

Index: Makefile.in
===================================================================
RCS file: /var/cvs/busybox/networking/Makefile.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile.in	13 Dec 2002 02:43:50 -0000	1.11
+++ Makefile.in	5 Jan 2003 04:01:56 -0000	1.12
@@ -26,6 +26,7 @@
 NETWORKING-$(CONFIG_FTPGET)	+= ftpgetput.o
 NETWORKING-$(CONFIG_FTPPUT)	+= ftpgetput.o
 NETWORKING-$(CONFIG_HOSTNAME)	+= hostname.o
+NETWORKING-$(CONFIG_HTTPD)	+= httpd.o
 NETWORKING-$(CONFIG_IFCONFIG)	+= ifconfig.o
 NETWORKING-$(CONFIG_IFUPDOWN)	+= ifupdown.o
 NETWORKING-$(CONFIG_IP)			+= ip.o




More information about the busybox-cvs mailing list