Initial .bep and patch files for apache httpd, patch is based on Kaliber's previous patch. TODO: fix directories being used

using finddir, and figure out user name issue.
This commit is contained in:
Scott McCreary
2011-02-04 19:40:43 +00:00
parent be13fe0b9a
commit be1792a3af
2 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
DESCRIPTION="The Apache Web Server."
HOMEPAGE="http://httpd.apache.org"
SRC_URI="http://apache.osuosl.org//httpd/httpd-2.2.17.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-libs/apr >= 1.4 2
dev-libs/apr-utils >= 1.3.9"
CHECKSUM_MD5="66d8e107f85acc039fd5e624e85728a9"
BUILD {
cd httpd-2.2.17
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd httpd-2.2.17
make install
}
TEST {
cd httpd-2.2.17
make test
}
LICENSE="Apache v2"
COPYRIGHT="2009 The Apache Software Foundation."

View File

@@ -0,0 +1,48 @@
diff -urN httpd-2.2.17/server/mpm_common.c httpd-2.2.17-haiku/server/mpm_common.c
--- httpd-2.2.17/server/mpm_common.c 2010-10-07 16:56:54.055836672 +0000
+++ httpd-2.2.17-haiku/server/mpm_common.c 2011-02-05 10:58:12.295436288 +0000
@@ -950,7 +950,7 @@
static const char *dash_k_arg;
-static int send_signal(pid_t pid, int sig)
+static int _send_signal(pid_t pid, int sig)
{
if (kill(pid, sig) < 0) {
ap_log_error(APLOG_MARK, APLOG_STARTUP, errno, NULL,
@@ -1007,7 +1007,7 @@
printf("%s\n", status);
}
else {
- send_signal(otherpid, SIGTERM);
+ _send_signal(otherpid, SIGTERM);
}
return 1;
}
@@ -1017,7 +1017,7 @@
printf("httpd not running, trying to start\n");
}
else {
- *exit_status = send_signal(otherpid, SIGHUP);
+ *exit_status = _send_signal(otherpid, SIGHUP);
return 1;
}
}
@@ -1027,7 +1027,7 @@
printf("httpd not running, trying to start\n");
}
else {
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL);
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL);
return 1;
}
}
@@ -1038,7 +1038,7 @@
printf("%s\n", status);
}
else {
- *exit_status = send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
+ *exit_status = _send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
}
#else
printf("httpd MPM \"" MPM_NAME "\" does not support graceful-stop\n");