42 %option with_mib_smux no |
42 %option with_mib_smux no |
43 %option with_mib_tables no |
43 %option with_mib_tables no |
44 %option with_mib_sendmail no |
44 %option with_mib_sendmail no |
45 |
45 |
46 # list of sources |
46 # list of sources |
47 Source0: http://switch.dl.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz |
47 Source0: http://switch.dl.sourceforge.net/net-snmp/%{version}/net-snmp-%{version}.tar.gz |
48 Source1: rc.snmp |
48 Source1: rc.snmp |
49 Source2: fsl.snmp |
49 Source2: fsl.snmp |
50 Source3: snmpd.conf |
50 Source3: snmpd.conf |
51 Source4: snmptrapd.conf |
51 Source4: snmptrapd.conf |
52 Patch0: snmp.patch |
52 Patch0: snmp.patch |
91 # provide a default PID file location |
91 # provide a default PID file location |
92 %{l_shtool} subst %{l_value -s -a} \ |
92 %{l_shtool} subst %{l_value -s -a} \ |
93 agent/snmpd.c \ |
93 agent/snmpd.c \ |
94 apps/snmptrapd.c |
94 apps/snmptrapd.c |
95 |
95 |
96 # adjust package for RPM support in Host MIB |
|
97 # (because OpenPKG RPM is a little bit different) |
|
98 %{l_shtool} subst \ |
|
99 -e 's;/usr/include/rpm;%{l_prefix}/include/rpm;g' \ |
|
100 -e 's;-lpopt\([^a-z]\);-lrpmpopt\1;g' \ |
|
101 -e 's;db-3\.1;rpmdb;g' \ |
|
102 -e 's;-lz\([^a-z]\);-lrpz\1;g' \ |
|
103 -e 's;-lrpm\([^a-z]\);-lrpm -lrpmio\1;g' \ |
|
104 -e 's;-lrpmio\([^a-z]\);-lrpmio -lrpmpopt -lrpmbz2 -lrpmz\1;g' \ |
|
105 configure |
|
106 |
|
107 # adjust package for not requiring --enable-shared for --with-perl-modules |
96 # adjust package for not requiring --enable-shared for --with-perl-modules |
108 # (because it technically working also with static libraries on most platforms) |
97 # (because it technically working also with static libraries on most platforms) |
109 %{l_shtool} subst \ |
98 %{l_shtool} subst \ |
110 -e 's/if test "x$enable_shared" != "xyes"; then/if false; then/g' \ |
99 -e 's/if test "x$enable_shared" != "xyes"; then/if false; then/g' \ |
|
100 configure |
|
101 |
|
102 # remove incorrectly escaped shell construct quoting |
|
103 %{l_shtool} subst \ |
|
104 -e 's;x\$OSTYPE;x;' \ |
|
105 -e 's;\(PERLPROG -e.*system\)([^)][^)]*;\1(echo;' \ |
111 configure |
106 configure |
112 |
107 |
113 # adjust package to install Perl packages into RPM_BUILD_ROOT |
108 # adjust package to install Perl packages into RPM_BUILD_ROOT |
114 %{l_shtool} subst \ |
109 %{l_shtool} subst \ |
115 -e "s;perl Makefile.PL;perl Makefile.PL PERL=$perl FULLPERL=$perl PREFIX=${RPM_BUILD_ROOT}%{l_prefix} INSTALLDIRS=vendor;g" \ |
110 -e "s;perl Makefile.PL;perl Makefile.PL PERL=$perl FULLPERL=$perl PREFIX=${RPM_BUILD_ROOT}%{l_prefix} INSTALLDIRS=vendor;g" \ |