webalizer/webalizer.spec

changeset 154
dfe80a536491
parent 151
d176107091ef
child 156
3831ba5c7ba7
     1.1 --- a/webalizer/webalizer.spec	Thu Apr 09 13:29:40 2009 +0200
     1.2 +++ b/webalizer/webalizer.spec	Thu Apr 09 14:59:46 2009 +0200
     1.3 @@ -40,7 +40,8 @@
     1.4  Release:      20090408
     1.5  
     1.6  #   package options
     1.7 -%option       with_dns  no
     1.8 +%option       with_dns    no
     1.9 +%option       with_geoip  no
    1.10  
    1.11  #   list of sources
    1.12  Source0:      ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz
    1.13 @@ -59,6 +60,10 @@
    1.14  BuildPreReq:  db::with_compat = yes
    1.15  PreReq:       db::with_compat = yes
    1.16  %endif
    1.17 +%if "%{with_geoip}" == "yes"
    1.18 +BuildPreReq:  geoip
    1.19 +PreReq:       geoip
    1.20 +%endif
    1.21  AutoReq:      no
    1.22  AutoReqProv:  no
    1.23  
    1.24 @@ -93,6 +98,9 @@
    1.25  %if "%{with_dns}" == "yes"
    1.26          --enable-dns \
    1.27  %endif
    1.28 +%if "%{with_geoip}" == "yes"
    1.29 +        --enable-geoip \
    1.30 +%endif
    1.31          --enable-bz2 \
    1.32          --with-bz2lib=%{l_prefix}/lib \
    1.33          --with-bz2=%{l_prefix}/include \

mercurial