Update version, use parallel make, enable IPv6, and correct Solaris DLPI flaw.

Mon, 17 Sep 2012 19:06:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:06:25 +0200
changeset 687
7d33a70799f3
parent 686
8402f4294f85
child 688
2223e646d8d9

Update version, use parallel make, enable IPv6, and correct Solaris DLPI flaw.

dhcpd/dhcpd.spec file | annotate | diff | comparison | revisions
     1.1 --- a/dhcpd/dhcpd.spec	Mon Sep 17 19:05:03 2012 +0200
     1.2 +++ b/dhcpd/dhcpd.spec	Mon Sep 17 19:06:25 2012 +0200
     1.3 @@ -22,8 +22,8 @@
     1.4  ##
     1.5  
     1.6  #   package version
     1.7 -%define       V_opkg 4.2.3
     1.8 -%define       V_dist 4.2.3
     1.9 +%define       V_opkg 4.2.4
    1.10 +%define       V_dist 4.2.4
    1.11  
    1.12  #   package information
    1.13  Name:         dhcpd
    1.14 @@ -36,7 +36,7 @@
    1.15  Group:        DHCP
    1.16  License:      ISC/BSD
    1.17  Version:      %{V_opkg}
    1.18 -Release:      20111211
    1.19 +Release:      20120800
    1.20  
    1.21  #   package options
    1.22  %option       with_fsl  yes
    1.23 @@ -49,7 +49,7 @@
    1.24  Patch0:       dhcpd.patch
    1.25  
    1.26  #   build information
    1.27 -BuildPreReq:  OpenPKG, openpkg >= 20100101
    1.28 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.29  PreReq:       OpenPKG, openpkg >= 20100101
    1.30  BuildPreReq:  openssl
    1.31  PreReq:       openssl
    1.32 @@ -79,6 +79,12 @@
    1.33          -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \
    1.34          -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \
    1.35          includes/site.h
    1.36 +    confopts=''
    1.37 +    case "%{l_platform -t}" in
    1.38 +        *-sunos5.11 )
    1.39 +            confopts='--enable-use-sockets --enable-ipv4-pktinfo'
    1.40 +            ;;
    1.41 +    esac
    1.42      CC="%{l_cc}" \
    1.43      CFLAGS="%{l_cflags -O}" \
    1.44      CPPFLAGS="%{l_cppflags} -DNOMINUM" \
    1.45 @@ -89,15 +95,15 @@
    1.46          --mandir=%{l_prefix}/man \
    1.47          --sysconfdir=%{l_prefix}/etc/dhcpd \
    1.48          --localstatedir=%{l_prefix}/var/dhcpd \
    1.49 +        $confopts \
    1.50          --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \
    1.51          --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \
    1.52          --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \
    1.53          --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \
    1.54 -        --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid \
    1.55 -        --disable-dhcpv6
    1.56 +        --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid
    1.57  
    1.58      #   build program
    1.59 -    %{l_make} %{l_mflags}
    1.60 +    %{l_make} %{l_mflags -O}
    1.61  
    1.62  %install
    1.63      #   install program

mercurial