2007-07-17 02:23:31 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# tinyhttpd
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-04-03 10:55:29 +02:00
|
|
|
TINYHTTPD_VERSION = 0.1.0
|
|
|
|
TINYHTTPD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tinyhttpd/
|
|
|
|
|
|
|
|
define TINYHTTPD_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TINYHTTPD_INSTALL_TARGET_CMDS
|
2012-04-03 22:51:05 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/httpd $(TARGET_DIR)/usr/sbin/tinyhttpd
|
2012-04-03 10:55:29 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S85tinyhttpd
|
2007-07-17 02:23:31 +02:00
|
|
|
mkdir -p $(TARGET_DIR)/var/www
|
2012-04-03 10:55:29 +02:00
|
|
|
endef
|
2007-07-17 02:23:31 +02:00
|
|
|
|
2012-04-03 10:55:29 +02:00
|
|
|
define TINYHTTPD_CLEAN_CMDS
|
2012-04-03 22:51:05 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/tinyhttpd
|
2012-04-03 10:55:29 +02:00
|
|
|
rm -f $(TARGET_DIR)/etc/init.d/S85tinyhttpd
|
|
|
|
endef
|
2007-07-17 02:23:31 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|