# HG changeset patch # User Michael Schloh von Bennewitz # Date 1347901585 -7200 # Node ID 7d33a70799f387d0dad745bc623c01957875e726 # Parent 8402f4294f859ac4476cf68c817aa1fbd783c131 Update version, use parallel make, enable IPv6, and correct Solaris DLPI flaw. diff -r 8402f4294f85 -r 7d33a70799f3 dhcpd/dhcpd.spec --- a/dhcpd/dhcpd.spec Mon Sep 17 19:05:03 2012 +0200 +++ b/dhcpd/dhcpd.spec Mon Sep 17 19:06:25 2012 +0200 @@ -22,8 +22,8 @@ ## # package version -%define V_opkg 4.2.3 -%define V_dist 4.2.3 +%define V_opkg 4.2.4 +%define V_dist 4.2.4 # package information Name: dhcpd @@ -36,7 +36,7 @@ Group: DHCP License: ISC/BSD Version: %{V_opkg} -Release: 20111211 +Release: 20120800 # package options %option with_fsl yes @@ -49,7 +49,7 @@ Patch0: dhcpd.patch # build information -BuildPreReq: OpenPKG, openpkg >= 20100101 +BuildPreReq: OpenPKG, openpkg >= 20100101, make PreReq: OpenPKG, openpkg >= 20100101 BuildPreReq: openssl PreReq: openssl @@ -79,6 +79,12 @@ -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \ -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \ includes/site.h + confopts='' + case "%{l_platform -t}" in + *-sunos5.11 ) + confopts='--enable-use-sockets --enable-ipv4-pktinfo' + ;; + esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags} -DNOMINUM" \ @@ -89,15 +95,15 @@ --mandir=%{l_prefix}/man \ --sysconfdir=%{l_prefix}/etc/dhcpd \ --localstatedir=%{l_prefix}/var/dhcpd \ + $confopts \ --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \ --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \ --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \ --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \ - --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid \ - --disable-dhcpv6 + --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid # build program - %{l_make} %{l_mflags} + %{l_make} %{l_mflags -O} %install # install program