~ubuntu-branches/ubuntu/quantal/netams/quantal

« back to all changes in this revision

Viewing changes to configure.sh

  • 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:
157
157
echo "STARTUP_SCRIPT=netams.init.d" >> $makefile
158
158
echo "PATH_TO_ETC=/etc" >> $makefile
159
159
echo "PATH_TO_WWW=/var/www/netams" >> $makefile
160
 
echo "PATH_TO_CONFIG=/etc" >> $makefile
 
160
echo "PATH_TO_CONFIG=/var/lib/netams" >> $makefile
161
161
echo "PATH_TO_LOG=/var/log/netams.log" >> $makefile
162
162
echo "PATH_TO_SCRIPTS=/etc/init.d" >> $makefile
163
 
echo "DAEMONDIR=/usr/local/sbin"  >> $makefile
164
 
echo "SBINDIR=/usr/local/sbin"  >> $makefile
165
 
echo "MANDIR=/usr/local/man"  >> $makefile
 
163
echo "DAEMONDIR=/usr/sbin"  >> $makefile
 
164
echo "SBINDIR=/usr/sbin"        >> $makefile
 
165
echo "MANDIR=/usr/share/man"  >> $makefile
166
166
 
167
167
#ipq
168
168
locate_file "libipq.a" && v1=$var && locate_file "libnetfilter_queue_libipq.a" && v3=$var && locate_file "libipq.h" && v2=$var
246
246
 
247
247
#postgres
248
248
locate_file "libpq.so" && v1=$var && locate_file "libpq-fe.h" && v2=$var
249
 
if [ "X$v1" != "X" -a "X$v2" != "X" ]; then
 
249
if [ 0 -eq 1 -a "X$v1" != "X" -a "X$v2" != "X" ]; then
250
250
        echo "Will have POSTGRESQL support"
251
251
        echo "  [ $v1   $v2 ]"
252
252
        echo "DEFINE += -DUSE_POSTGRES -I$v2" >> $makefile
269
269
# Oracle moves oci.h around the world, this
270
270
# is include paths for 8i/9i. YMMV.
271
271
locate_file "libclntsh.so" && v1=$var
272
 
if [ "X$v1" != "X" ]; then
 
272
if [ "a" != "a" -a "X$v1" != "X" ]; then
273
273
        use_oracle=`echo $CONFIGURE_ARGS | awk " /--no-oracle/ { print $1 } " | wc -l`
274
274
        if [ $use_oracle -eq 0 ]; then
275
275
                echo "Will have ORACLE support"
305
305
 
306
306
#radius
307
307
locate_file "openssl/md5.h" && v1=$var
308
 
if [ "X$v1" != "X" ]; then
 
308
if [ "a" != "a" -a "X$v1" != "X" ]; then
309
309
        echo "Will have RADIUS support"
310
310
        echo "DEFINE += -DUSE_LIBRADIUS" >> $makefile
311
311
        echo "NLIB += libradius" >> $makefile
316
316
 
317
317
#PAM
318
318
locate_file "security/pam_appl.h" && v1=$var && locate_file "libpam.so" && v2=$var
319
 
if [ "X$v1" != "X" -a "X$v2" != "X" ]; then
 
319
if [ "a" != "a" -a "X$v1" != "X" -a "X$v2" != "X" ]; then
320
320
        echo "Will have PAM support (experimental)"
321
321
        echo "DEFINE += -DHAVE_PAM" >> $makefile
322
322
        echo "LIB += -lpam -L$v2" >> $makefile