1
Description: Modification to configure script to enforce FSHS, turn off some
2
extensions (Oracle, Radius, PAM).
3
Author: Alexander GQ Gerasiov <gq@debian.org>
6
Index: netams/configure.sh
7
===================================================================
8
--- netams.orig/configure.sh 2009-11-16 02:26:01.000000000 +0300
9
+++ netams/configure.sh 2009-11-16 02:34:09.000000000 +0300
11
echo "STARTUP_SCRIPT=netams.init.d" >> $makefile
12
echo "PATH_TO_ETC=/etc" >> $makefile
13
echo "PATH_TO_WWW=/var/www/netams" >> $makefile
14
-echo "PATH_TO_CONFIG=/etc" >> $makefile
15
+echo "PATH_TO_CONFIG=/var/lib/netams" >> $makefile
16
echo "PATH_TO_LOG=/var/log/netams.log" >> $makefile
17
echo "PATH_TO_SCRIPTS=/etc/init.d" >> $makefile
18
-echo "DAEMONDIR=/usr/local/sbin" >> $makefile
19
-echo "SBINDIR=/usr/local/sbin" >> $makefile
20
-echo "MANDIR=/usr/local/man" >> $makefile
21
+echo "DAEMONDIR=/usr/sbin" >> $makefile
22
+echo "SBINDIR=/usr/sbin" >> $makefile
23
+echo "MANDIR=/usr/share/man" >> $makefile
26
locate_file "libipq.a" && v1=$var && locate_file "libnetfilter_queue_libipq.a" && v3=$var && locate_file "libipq.h" && v2=$var
28
# Oracle moves oci.h around the world, this
29
# is include paths for 8i/9i. YMMV.
30
locate_file "libclntsh.so" && v1=$var
31
-if [ "X$v1" != "X" ]; then
32
+if [ "a" != "a" -a "X$v1" != "X" ]; then
33
use_oracle=`echo $CONFIGURE_ARGS | awk " /--no-oracle/ { print $1 } " | wc -l`
34
if [ $use_oracle -eq 0 ]; then
35
echo "Will have ORACLE support"
39
locate_file "openssl/md5.h" && v1=$var
40
-if [ "X$v1" != "X" ]; then
41
+if [ "a" != "a" -a "X$v1" != "X" ]; then
42
echo "Will have RADIUS support"
43
echo "DEFINE += -DUSE_LIBRADIUS" >> $makefile
44
echo "NLIB += libradius" >> $makefile
48
locate_file "security/pam_appl.h" && v1=$var && locate_file "libpam.so" && v2=$var
49
-if [ "X$v1" != "X" -a "X$v2" != "X" ]; then
50
+if [ "a" != "a" -a "X$v1" != "X" -a "X$v2" != "X" ]; then
51
echo "Will have PAM support (experimental)"
52
echo "DEFINE += -DHAVE_PAM" >> $makefile
53
echo "LIB += -lpam -L$v2" >> $makefile