snmp/snmp.spec

changeset 377
67e813202d53
parent 327
02bcb113e039
child 384
590d931d793c
equal deleted inserted replaced
2:5b162b187579 3:81477f39aa20
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: Network 32 Group: Network
33 License: BSD 33 License: BSD
34 Version: 5.6.1 34 Version: 5.7
35 Release: 20110106 35 Release: 20110914
36 36
37 # package options 37 # package options
38 %option with_fsl yes 38 %option with_fsl yes
39 %option with_perl no 39 %option with_perl no
40 %option with_shared no 40 %option with_shared no
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" \

mercurial