3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=1.1.3_beta2
8 PKG_MD5SUM
:=ba1611c7eb959f9c6f93e12b97d70b82
10 PKG_SOURCE_URL
:= @SF
/$(PKG_NAME
)
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,WIFIDOG
,wifidog
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
27 ac_cv_func_malloc_0_nonnull
=yes \
28 ac_cv_func_memcmp_working
=yes \
29 ac_cv_func_setvbuf_reversed
=no \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
51 touch
$(PKG_BUILD_DIR
)/.configured
53 $(PKG_BUILD_DIR
)/.built
:
54 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 $(TARGET_CONFIGURE_OPTS
)
56 mkdir
-p
$(PKG_INSTALL_DIR
)
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 touch
$(PKG_BUILD_DIR
)/.built
63 install -m0755
-d
$(IDIR_WIFIDOG
)/etc
/init.d
64 install -m0755 .
/files
/$(PKG_NAME
).init
$(IDIR_WIFIDOG
)/etc
/init.d
/S65wifidog
65 install -m0644 .
/files
/wifidog.conf
$(IDIR_WIFIDOG
)/etc
/
66 install -m0755
-d
$(IDIR_WIFIDOG
)/usr
/bin
67 install -m0755
-d
$(IDIR_WIFIDOG
)/usr
/lib
68 install -m0755
$(PKG_BUILD_DIR
)/scripts
/init.d
/wifidog
$(IDIR_WIFIDOG
)/usr
/bin
/wifidog-init
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/wifidog
$(IDIR_WIFIDOG
)/usr
/bin
/
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/wdctl
$(IDIR_WIFIDOG
)/usr
/bin
/
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libhttpd.so
* $(IDIR_WIFIDOG
)/usr
/lib
/
72 $(RSTRIP
) $(IDIR_WIFIDOG
)
73 $(IPKG_BUILD
) $(IDIR_WIFIDOG
) $(PACKAGE_DIR
)