dhcpd/dhcpd.spec

changeset 20
8adc5213fd55
parent 13
cb59d6afeb61
child 354
4ca17af53013
equal deleted inserted replaced
0:837a88b44852 1:a24d87bc66d6
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: BASE 31 Class: BASE
32 Group: DHCP 32 Group: DHCP
33 License: ISC/BSD 33 License: ISC/BSD
34 Version: 4.1.0 34 Version: 4.1.0
35 Release: 20081220 35 Release: 20090105
36 36
37 # package options 37 # package options
38 %option with_fsl yes 38 %option with_fsl yes
39 39
40 # list of sources 40 # list of sources
73 %{l_shtool} subst \ 73 %{l_shtool} subst \
74 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_PID[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/run/dhcpd.pid";' \ 74 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_PID[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/run/dhcpd.pid";' \
75 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \ 75 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_DB[^"]*\).*;\1 "%{l_prefix}/var/dhcpd/db/dhcpd.leases";' \
76 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \ 76 -e 's;^[^#]*\(#define[^_]*_PATH_DHCPD_CONF[^"]*\).*;\1 "%{l_prefix}/etc/dhcpd/dhcpd.conf";' \
77 includes/site.h 77 includes/site.h
78 %{l_shtool} subst \
79 -e 's;struct option\([, )]\);struct option_dhcpd\1;g' \
80 includes/*.h \
81 client/*.c \
82 common/*.c \
83 server/*.c
78 CC="%{l_cc}" \ 84 CC="%{l_cc}" \
79 CFLAGS="%{l_cflags -O}" \ 85 CFLAGS="%{l_cflags -O}" \
80 CPPFLAGS="%{l_cppflags} -DNOMINUM" \ 86 CPPFLAGS="%{l_cppflags} -DNOMINUM" \
81 LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \ 87 LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
82 LIBS="%{l_fsl_libs}" \ 88 LIBS="%{l_fsl_libs}" \
83 ./configure \ 89 ./configure \
84 --prefix=%{l_prefix} \ 90 --prefix=%{l_prefix} \
85 --mandir=%{l_prefix}/man \ 91 --mandir=%{l_prefix}/man \
86 --sysconfdir=%{l_prefix}/etc/dhcpd \ 92 --sysconfdir=%{l_prefix}/etc/dhcpd \
87 --localstatedir=%{l_prefix}/var/dhcpd \ 93 --localstatedir=%{l_prefix}/var/dhcpd \
94 --disable-dhcpv6 \
88 --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \ 95 --with-srv-lease-file=%{l_prefix}/var/dhcpd/db/dhcpd.leases \
89 --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \ 96 --with-cli-lease-file=%{l_prefix}/var/dhcpd/db/dhclient.leases \
90 --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \ 97 --with-srv-pid-file=%{l_prefix}/var/dhcpd/run/dhcpd.pid \
91 --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \ 98 --with-cli-pid-file=%{l_prefix}/var/dhcpd/run/dhclient.pid \
92 --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid 99 --with-relay-pid-file=%{l_prefix}/var/dhcpd/run/dhrelay.pid

mercurial