File: build_httpds.sh

package info (click to toggle)
libapache-asp-perl 2.63-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,120 kB
  • sloc: perl: 6,044; php: 409; sh: 62; lisp: 22; makefile: 10
file content (78 lines) | stat: -rwxr-xr-x 1,376 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash

getdir () {
  for file in $1*
  do
    if [ -d $file ]
    then 
      GETDIR=$file
      echo "Found install for $1* at ./$file"
      return 0
    fi
  done
  echo "exit build, no directory found for $1* at:" `pwd`
  exit
}

# FIND SOURCE IN LOCAL DIR
echo "======================================================"
getdir apache_
APACHE=$GETDIR
getdir mod_ssl-
MODSSL=$GETDIR
getdir mod_perl-
MODPERL=$GETDIR
echo "======================================================"
echo
sleep 1

# SSL
SSL_BASE=/usr/local/ssl
export SSL_BASE
cd $MODSSL
echo
echo "Configuring mod_ssl with OpenSSL at $SSL_BASE =========================="
echo
sleep 1
./configure \
    --with-apache=../$APACHE

# PERL
cd ../$MODPERL
echo
echo "Building mod_perl ============================"
echo
sleep 1
perl Makefile.PL \
    APACHE_SRC=../$APACHE/src \
    NO_HTTPD=1 \
    USE_APACI=1 \
    PREP_HTTPD=1 \
    EVERYTHING=1

make
#make test
make install

# APACHE
cd ../$APACHE
echo
echo "Building apache =============================="
echo
sleep 1;
./configure \
    --prefix=/usr/local/apache \
    --activate-module=src/modules/perl/libperl.a \
    --enable-module=ssl \
    --enable-module=proxy \
    --enable-module=so \
    --enable-module=rewrite \
    --disable-rule=EXPAT

#    --activate-module=src/modules/php4/libphp4.a \
#make certificate
#make clean
make
make install