webalizer/webalizer.spec

changeset 171
b72f2be1f619
parent 154
dfe80a536491
child 175
66c4ec7f657e
equal deleted inserted replaced
8:860f94cc2674 9:02283594dab0
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: PLUS 36 Class: PLUS
37 Group: Logfile 37 Group: Logfile
38 License: GPL 38 License: GPL
39 Version: %{V_here} 39 Version: %{V_here}
40 Release: 20090408 40 Release: 20090414
41 41
42 # package options 42 # package options
43 %option with_dns no 43 %option with_dns no
44 %option with_geoip no 44 %option with_geoip no
45 %option with_gwidth 512
45 46
46 # list of sources 47 # list of sources
47 Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz 48 Source0: ftp://ftp.mrunix.net/pub/webalizer/webalizer-%{V_real}-src.tgz
48 Source1: ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz 49 Source1: ftp://ftp.mrunix.net/pub/webalizer/geodb/webalizer-geodb-%{V_geodb}.tgz
49 Source2: ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz 50 Source2: ftp://ftp.mrunix.net/pub/webalizer/webalizer-flags.tgz
50 Source3: rc.webalizer 51 Source3: rc.webalizer
52 Patch0: webalizer.patch
51 53
52 # build information 54 # build information
53 Prefix: %{l_prefix} 55 Prefix: %{l_prefix}
54 BuildRoot: %{l_buildroot} 56 BuildRoot: %{l_buildroot}
55 BuildPreReq: OpenPKG, openpkg >= 20040130 57 BuildPreReq: OpenPKG, openpkg >= 20040130
83 %setup -q -n webalizer-%{V_real} 85 %setup -q -n webalizer-%{V_real}
84 ( cd webalizer-%{V_real} 86 ( cd webalizer-%{V_real}
85 %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf - 87 %{l_gzip} -d -c %{SOURCE1} | %{l_tar} xf -
86 %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf - 88 %{l_gzip} -d -c %{SOURCE2} | %{l_tar} xf -
87 ) || exit $? 89 ) || exit $?
90 %patch -p0
91 %{l_shtool} subst \
92 -e "s;@l_gwidth@;%{with_gwidth};g" \
93 graphs.c \
94 output.c
88 95
89 %build 96 %build
90 CC="%{l_cc}" \ 97 CC="%{l_cc}" \
91 CFLAGS="%{l_cflags -O}" \ 98 CFLAGS="%{l_cflags -O}" \
92 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \ 99 CPPFLAGS="%{l_cppflags} -DHAVE_DB_185_H" \

mercurial