comparison: mrtg/mrtg.spec
mrtg/mrtg.spec
- changeset 140
- d51e263e607b
- parent 135
- cd68ee26852b
- child 176
- 7ed48a3146ba
equal
deleted
inserted
replaced
30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: PLUS |
31 Class: PLUS |
32 Group: Monitoring |
32 Group: Monitoring |
33 License: GPL |
33 License: GPL |
34 Version: 2.16.2 |
34 Version: 2.16.2 |
35 Release: 20090404 |
35 Release: 20090405 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz |
38 Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz |
39 Source1: mrtg.cfg |
39 Source1: mrtg.cfg |
40 Source2: rc.mrtg |
40 Source2: rc.mrtg |
63 |
63 |
64 %prep |
64 %prep |
65 %setup -q |
65 %setup -q |
66 %{l_shtool} subst \ |
66 %{l_shtool} subst \ |
67 -e 's;mrtg2";mrtg";g' \ |
67 -e 's;mrtg2";mrtg";g' \ |
|
68 -e "s;/usr\(/bin/perl\);%{l_prefix}\1;" \ |
68 bin/* |
69 bin/* |
69 |
70 |
70 %build |
71 %build |
71 CC="%{l_cc}" \ |
72 CC="%{l_cc}" \ |
72 CFLAGS="%{l_cflags -O}" \ |
73 CFLAGS="%{l_cflags -O}" \ |
114 %files -f files |
115 %files -f files |
115 |
116 |
116 %clean |
117 %clean |
117 rm -rf $RPM_BUILD_ROOT |
118 rm -rf $RPM_BUILD_ROOT |
118 |
119 |
|
120 %preun |
|
121 # remove log files before erasing |
|
122 [ $1 -eq 0 ] || exit 0 |
|
123 rm -f $RPM_INSTALL_PREFIX/var/mrtg/.log* >/dev/null 2>&1 || true |
|
124 |
