dhcpd/dhcpd.spec

changeset 740
e7caf02f98eb
parent 686
8402f4294f85
equal deleted inserted replaced
6:45f96c8868ca 7:d858c482698b
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version 24 # package version
25 %define V_opkg 4.2.3 25 %define V_opkg 4.2.4
26 %define V_dist 4.2.3 26 %define V_dist 4.2.4
27 27
28 # package information 28 # package information
29 Name: dhcpd 29 Name: dhcpd
30 Summary: DHCP Daemon 30 Summary: DHCP Daemon
31 URL: http://www.isc.org/products/DHCP/ 31 URL: http://www.isc.org/products/DHCP/
34 Distribution: OpenPKG Community 34 Distribution: OpenPKG Community
35 Class: BASE 35 Class: BASE
36 Group: DHCP 36 Group: DHCP
37 License: ISC/BSD 37 License: ISC/BSD
38 Version: %{V_opkg} 38 Version: %{V_opkg}
39 Release: 20111211 39 Release: 20120800
40 40
41 # package options 41 # package options
42 %option with_fsl yes 42 %option with_fsl yes
43 43
44 # list of sources 44 # list of sources
47 Source2: rc.dhcpd 47 Source2: rc.dhcpd
48 Source3: fsl.dhcpd 48 Source3: fsl.dhcpd
49 Patch0: dhcpd.patch 49 Patch0: dhcpd.patch
50 50
51 # build information 51 # build information
52 BuildPreReq: OpenPKG, openpkg >= 20100101 52 BuildPreReq: OpenPKG, openpkg >= 20100101, make
53 PreReq: OpenPKG, openpkg >= 20100101 53 PreReq: OpenPKG, openpkg >= 20100101
54 BuildPreReq: openssl 54 BuildPreReq: openssl
55 PreReq: openssl 55 PreReq: openssl
56 %if "%{with_fsl}" == "yes" 56 %if "%{with_fsl}" == "yes"
57 BuildPreReq: fsl 57 BuildPreReq: fsl
77 %{l_shtool} subst \ 77 %{l_shtool} subst \
78 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_PID[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/run/dhcpd.pid";' \ 78 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_PID[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/run/dhcpd.pid";' \
79 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \ 79 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \
80 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \ 80 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \
81 includes/site.h 81 includes/site.h
82 confopts=''
83 case "%{l_platform -t}" in
84 *-sunos5.11 )
85 confopts='--enable-use-sockets --enable-ipv4-pktinfo'
86 ;;
87 esac
82 CC="%{l_cc}" \ 88 CC="%{l_cc}" \
83 CFLAGS="%{l_cflags -O}" \ 89 CFLAGS="%{l_cflags -O}" \
84 CPPFLAGS="%{l_cppflags} -DNOMINUM" \ 90 CPPFLAGS="%{l_cppflags} -DNOMINUM" \
85 LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \ 91 LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
86 LIBS="%{l_fsl_libs}" \ 92 LIBS="%{l_fsl_libs}" \
87 ./configure \ 93 ./configure \
88 --prefix=%{l_prefix} \ 94 --prefix=%{l_prefix} \
89 --mandir=%{l_prefix}/man \ 95 --mandir=%{l_prefix}/man \
90 --sysconfdir=%{l_prefix}/etc/dhcpd \ 96 --sysconfdir=%{l_prefix}/etc/dhcpd \
91 --localstatedir=%{l_prefix}/var/dhcpd \ 97 --localstatedir=%{l_prefix}/var/dhcpd \
98 $confopts \
92 --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \ 99 --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \
93 --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \ 100 --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \
94 --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \ 101 --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \
95 --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \ 102 --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \
96 --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid \ 103 --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid
97 --disable-dhcpv6
98 104
99 # build program 105 # build program
100 %{l_make} %{l_mflags} 106 %{l_make} %{l_mflags -O}
101 107
102 %install 108 %install
103 # install program 109 # install program
104 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 110 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
105 111

mercurial