~ubuntu-branches/ubuntu/precise/netams/precise

« back to all changes in this revision

Viewing changes to debian/patches/01_configure.diff

  • Committer: Bazaar Package Importer
  • Author(s): Alexander GQ Gerasiov
  • Date: 2009-11-26 02:08:19 UTC
  • Revision ID: james.westby@ubuntu.com-20091126020819-mfn4urmlr1id955h
Tags: 3.4.3+dfsg1-3
debian/copyright: add more details about sources of some part of the
code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
4
Forwarded: not-needed
 
5
 
 
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
 
10
@@ -157,12 +157,12 @@
 
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
 
24
 
 
25
 #ipq
 
26
 locate_file "libipq.a" && v1=$var && locate_file "libnetfilter_queue_libipq.a" && v3=$var && locate_file "libipq.h" && v2=$var
 
27
@@ -269,7 +269,7 @@
 
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"
 
36
@@ -305,7 +305,7 @@
 
37
 
 
38
 #radius
 
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
 
45
@@ -316,7 +316,7 @@
 
46
 
 
47
 #PAM
 
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