3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=ddf53f0f484184390e8c2a1bd0853667
10 PKG_SOURCE_URL
:=http
://www.packetfactory.net
/libnet
/dist/deprecated
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/Libnet-
$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,LIBNET
,libnet
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(PKG_BUILD_DIR
)/.configured
:
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
33 $(TARGET_CONFIGURE_OPTS
) \
34 CFLAGS
="$(TARGET_CFLAGS)" \
35 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
36 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
37 ac_libnet_have_pf_packet
=yes \
38 ac_cv_lbl_unaligned_fail
=no \
39 ac_cv_libnet_endianess
=$(ENDIAN
) \
41 --target
=$(GNU_TARGET_NAME
) \
42 --host
=$(GNU_TARGET_NAME
) \
43 --build
=$(GNU_HOST_NAME
) \
49 --datadir=/usr
/share \
50 --includedir=/usr
/include \
51 --infodir=/usr
/share
/info \
53 --libexecdir
=/usr
/lib \
54 --localstatedir
=/var \
55 --mandir=/usr
/share
/man \
59 $(DISABLE_LARGEFILE
) \
62 --with-pf_packet
=yes \
66 $(PKG_BUILD_DIR
)/.built
:
67 rm -rf
$(PKG_INSTALL_DIR
)
68 mkdir
-p
$(PKG_INSTALL_DIR
)
69 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
70 $(TARGET_CONFIGURE_OPTS
) \
71 CFLAGS
="$(TARGET_CFLAGS)" \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
77 install -m0755
-d
$(IDIR_LIBNET
)/usr
/lib
78 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libnet.so.
* $(IDIR_LIBNET
)/usr
/lib
/
79 $(RSTRIP
) $(IDIR_LIBNET
)
80 $(IPKG_BUILD
) $(IDIR_LIBNET
) $(PACKAGE_DIR
)
82 $(STAGING_DIR
)/usr
/lib
/libnet.so
: $(PKG_BUILD_DIR
)/.built
83 mkdir
-p
$(STAGING_DIR
)/usr
/bin
84 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/libnet-config
$(STAGING_DIR
)/usr
/bin
/
85 mkdir
-p
$(STAGING_DIR
)/usr
/include
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/libnet
* $(STAGING_DIR
)/usr
/include/
87 mkdir
-p
$(STAGING_DIR
)/usr
/lib
88 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libnet.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
91 install-dev
: $(STAGING_DIR
)/usr
/lib
/libnet.so
95 $(STAGING_DIR
)/usr
/bin
/libnet-config \
96 $(STAGING_DIR
)/usr
/include/libnet
* \
97 $(STAGING_DIR
)/usr
/lib
/libnet.
{a
,so
*} \
99 compile-targets
: install-dev
100 clean-targets
: uninstall-dev