You are not logged in.
Apache13 won't compile saying wrong md5sum. Changing md5 to the package downloaded gives modssl is for 1.3.41 only.
Offline
apache13 is orphaned. You can adopt it and make it work.
Offline
If I had any idea on how to make it work I would not have posted here.
Offline
There was nothing on TV ...:P
PKGBUILD
# $Id: PKGBUILD 3122 2009-09-28 08:40:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=apache13
pkgver=1.3.42
_modsslver=2.8.31-1.3.41
pkgrel=4
pkgdesc="apache web server with mod_ssl $_modsslver"
arch=(i686 x86_64)
url="http://httpd.apache.org/"
license=("GPL")
depends=(expat openssl db)
#
# ###############################################
_wwwroot=srv/www/$pkgname
_modules=(access actions alias asis auth auth_anon auth_db auth_dbm auth_digest autoindex cern_meta cgi define digest dir \
env expires headers imap include info log_agent log_config log_forensic log_referer mime mime_magic \
mmap_static negotiation proxy rewrite setenvif so speling ssl status unique_id userdir usertrack vhost_alias)
_modules_so=(actions asis auth_anon auth_db auth_dbm auth_digest autoindex cern_meta cgi digest \
expires imap info log_agent log_forensic log_referer mime mime_magic \
mmap_static negotiation proxy rewrite speling ssl status unique_id userdir usertrack vhost_alias)
_httpdgroup=httpd
_httpduser=httpd
# ###############################################
#
backup=(etc/apache13/httpd.conf \
$_wwwroot/html/index.html \
etc/conf.d/httpd \
etc/apache13/access.conf \
etc/apache13/srm.conf)
install=apache13.install
source=(http://apache.rinet.ru/dist/httpd/apache_$pkgver.tar.gz \
http://www.modssl.org/source/mod_ssl-$_modsslver.tar.gz \
httpd.conf.d \
httpd \
httpd-1.3-getline.patch \
ssl_util_ssl.c.patch)
md5sums=('b76695ec68f9f8b512c9415fc69c1019'
'4d55fc5c7cbf38820b44edf767f571c4'
'62dba8077401cb5515ecb79fe29c2a52'
'd1ef3cfb1ef44cf280f05609b08e856c'
'cb760e24244a631f8595efc788b83058'
'9720548b88dccbc8a60d553f26402dbf')
build() {
cd $startdir/src/mod_ssl-$_modsslver
sed -i s#1.3.41#1.3.42#g $srcdir/mod_ssl-$_modsslver/pkg.sslmod/libssl.version || return 1
./configure --prefix=/usr --with-apache=$startdir/src/apache_$pkgver
cd $startdir/src/apache_$pkgver
_config=""
for _mod in ${_modules[@]}; do
_config="$_config --enable-module=$_mod"
done
for _mod in ${_modules_so[@]}; do
_config="$_config --enable-shared=$_mod"
done
./configure --prefix=/usr \
--sysconfdir=/etc/$pkgname/ \
--cgidir=/$_wwwroot/cgi-bin \
--htdocsdir=/$_wwwroot/htdocs \
--iconsdir=/$_wwwroot/icons \
--logfiledir=/var/log/$pkgname \
--mandir=/usr/share/man \
--proxycachedir=/var/cache/$pkgname \
--libexecdir=/usr/lib/$pkgname \
--runtimedir=/var/run/$pkgname \
--server-gid=$_httpduser --server-uid=$_httpdgroup \
--bindir=/usr/bin --sbindir=/usr/sbin \
$_config
patch -Np1 < $srcdir/httpd-1.3-getline.patch || return 1
patch -Np2 < $srcdir/ssl_util_ssl.c.patch || return 1
sed -i s#ndbm.h#gdbm/ndbm.h#g $srcdir/apache_$pkgver/src/modules/ssl/mod_ssl.h || return 1
sed -i s#ndbm.h#gdbm/ndbm.h#g $srcdir/apache_$pkgver/src/modules/standard/mod_auth_dbm.c || return 1
sed -i s#ndbm.h#gdbm/ndbm.h#g $srcdir/apache_$pkgver/src/modules/standard/mod_rewrite.h || return 1
make || return 1
make root=$startdir/pkg install
install -D -m644 ../httpd.conf.d $startdir/pkg/etc/conf.d/apache13
install -D -m755 ../httpd $startdir/pkg/etc/rc.d/apache13
sed -i 's|HTTPD=/usr/sbin/httpd|HTTPD=/usr/sbin/httpd13|' $startdir/pkg/usr/sbin/apachectl
sed -i 's|AddModule mod_auth_dbm.c|#AddModule mod_auth_dbm.c|' $startdir/pkg/etc/apache13/httpd.conf
sed -i 's|LoadModule dbm_auth_module lib/apache13/mod_auth_dbm.so|#LoadModule dbm_auth_module lib/apache13/mod_auth_dbm.so|' $startdir/pkg/etc/apache13/httpd.conf
rm -f $startdir/pkg/usr/include/fnmatch.h
cd $startdir/pkg/etc/apache13
rm -f ./ssl.crt/*.0
rm -f ./ssl.crt/*.crt
rm -f ./ssl.csr/*.csr
rm -f ./ssl.key/*.key
rm -f ./ssl.prm/*.prm
cd $startdir/pkg/usr/share/man/man1/
mv dbmmanage.1 dbmmanage13.1
mv htdigest.1 htdigest13.1
mv htpasswd.1 htpasswd13.1
cd $startdir/pkg/usr/share/man/man8/
mv ab.8 ab13.8
mv apachectl.8 apachectl13.8
mv apxs.8 apxs13.8
mv httpd.8 httpd13.8
mv logresolve.8 logresolve13.8
mv rotatelogs.8 rotatelogs13.8
cd $startdir/pkg/usr/sbin/
mv ab ab13
mv apachectl apachectl13
mv apxs apxs13
mv httpd httpd13
mv logresolve logresolve13
mv rotatelogs rotatelogs13
}
ssl_util_ssl.c.patch
--- src/apache_1.3.42/src/modules/ssl/ssl_util_ssl.c 2006-05-08 09:15:38.000000000 +0200
+++ ssl_util_ssl.c 2010-05-23 21:37:29.119569787 +0200
@@ -324,7 +324,7 @@
{
X509_EXTENSION *ext;
int ext_nid;
- STACK *sk;
+ _STACK *sk;
BOOL is_sgc;
int idx;
int i;
@@ -333,7 +333,7 @@
idx = X509_get_ext_by_NID(cert, NID_ext_key_usage, -1);
if (idx >= 0) {
ext = X509_get_ext(cert, idx);
- if ((sk = (STACK *)X509V3_EXT_d2i(ext)) != NULL) {
+ if ((sk = (_STACK *)X509V3_EXT_d2i(ext)) != NULL) {
for (i = 0; i < sk_num(sk); i++) {
ext_nid = OBJ_obj2nid((ASN1_OBJECT *)sk_value(sk, i));
if (ext_nid == NID_ms_sgc || ext_nid == NID_ns_sgc) {
Offline
Thanks but ssl_util_ssl.c.patch doesn't pass md5sums check... I think the forum cut it short.
Offline
The patch is complete...
makepkg -g
and you get the new md5sum for your PKGBUILD-file or: http://rapidshare.com/files/391140389/a … src.tar.gz
Last edited by yannsen (2010-05-24 18:15:10)
Offline
Thanks a lot, it works.
Offline
Can someone update the package to include this?
Offline
Can someone update the package to include this?
Done.
Offline
I think it is not a good idea to use the apache in version 1.3 because it is no longer maintained, so you/we have to update the neko package to apache version 2.2...
Offline