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 |