2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-07-17 02:23:31 +02:00
|
|
|
#
|
|
|
|
# tinyhttpd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-04-03 10:55:29 +02:00
|
|
|
TINYHTTPD_VERSION = 0.1.0
|
2012-08-26 01:52:48 +02:00
|
|
|
TINYHTTPD_SITE = http://downloads.sourceforge.net/project/tinyhttpd/tinyhttpd%20source/tinyhttpd%20$(TINYHTTPD_VERSION)
|
2014-06-26 21:21:17 +02:00
|
|
|
TINYHTTPD_LICENSE = GPL
|
|
|
|
TINYHTTPD_LICENSE_FILES = README
|
2012-04-03 10:55:29 +02:00
|
|
|
|
|
|
|
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
|
2014-11-30 15:18:13 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/var/www
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TINYHTTPD_INSTALL_INIT_SYSV
|
2012-04-03 10:55:29 +02:00
|
|
|
$(INSTALL) -m 0755 -D package/tinyhttpd/S85tinyhttpd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S85tinyhttpd
|
|
|
|
endef
|
2007-07-17 02:23:31 +02:00
|
|
|
|
2015-05-23 12:08:37 +02:00
|
|
|
define TINYHTTPD_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/tinyhttpd/tinyhttpd.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/tinyhttpd.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -sf ../../../../usr/lib/systemd/system/tinyhttpd.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/tinyhttpd.service
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|