diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/axtls/patches |
Initial import
Diffstat (limited to 'package/axtls/patches')
-rw-r--r-- | package/axtls/patches/001-opt_flags.patch | 33 | ||||
-rw-r--r-- | package/axtls/patches/patch-httpd_main_c | 21 |
2 files changed, 54 insertions, 0 deletions
diff --git a/package/axtls/patches/001-opt_flags.patch b/package/axtls/patches/001-opt_flags.patch new file mode 100644 index 000000000..a27b3a449 --- /dev/null +++ b/package/axtls/patches/001-opt_flags.patch @@ -0,0 +1,33 @@ +diff -ruN axTLS-0.95-old/config/makefile.conf axTLS-0.95-new/config/makefile.conf +--- axTLS-0.95-old/config/makefile.conf 2006-02-28 02:50:28.000000000 +0100 ++++ axTLS-0.95-new/config/makefile.conf 2006-05-18 22:24:02.000000000 +0200 +@@ -87,20 +87,23 @@ + endif + + ifdef CONFIG_DEBUG +-CFLAGS += -g ++OPT_CFLAGS = -g + else +-LDFLAGS += -s ++OPT_LDFLAGS = -s + ifdef CONFIG_PLATFORM_SOLARIS +-CFLAGS += -O ++OPT_CFLAGS = -O + else +-CFLAGS += -O3 ++OPT_CFLAGS = -O3 + endif + + endif # CONFIG_DEBUG + endif # WIN32 + +-CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS))) +-LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS))) ++EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS))) ++EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS))) ++ ++CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS) ++LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS) + + endif # not 'clean' + diff --git a/package/axtls/patches/patch-httpd_main_c b/package/axtls/patches/patch-httpd_main_c new file mode 100644 index 000000000..b4017803e --- /dev/null +++ b/package/axtls/patches/patch-httpd_main_c @@ -0,0 +1,21 @@ +$Id$ +--- axTLS.orig/httpd/main.c 2007-01-31 22:35:53.000000000 +0100 ++++ axTLS/httpd/main.c 2007-02-10 12:15:20.000000000 +0100 +@@ -98,11 +98,12 @@ int main(int argc, char *argv[]) + WSADATA wsaData; + WSAStartup(wVersionRequested,&wsaData); + #else +- if (getuid() == 0) /* change our uid if we are root */ +- { +- setgid(32767); +- setuid(32767); +- } ++ /* we can't bind to port 80/443 if we are nobody ?! */ ++ //if (getuid() == 0) /* change our uid if we are root */ ++ //{ ++ // setgid(32767); ++ // setuid(32767); ++ //} + + signal(SIGQUIT, die); + signal(SIGPIPE, SIG_IGN); |