mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
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:
29
www-servers/apache/apache-2.2.17.bep
Normal file
29
www-servers/apache/apache-2.2.17.bep
Normal 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."
|
||||
48
www-servers/apache/patches/apache-2.2.17.patch
Normal file
48
www-servers/apache/patches/apache-2.2.17.patch
Normal 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");
|
||||
Reference in New Issue
Block a user