mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -18,26 +18,24 @@ define THTTPD_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/extras/syslogtocern $(TARGET_DIR)/usr/bin/syslogtocern
|
||||
$(INSTALL) -D -m 0755 $(@D)/scripts/thttpd_wrapper $(TARGET_DIR)/usr/sbin/thttpd_wrapper
|
||||
$(SED) 's:/usr/local/sbin:/usr/sbin:g' -e \
|
||||
's:/usr/local/www:/var/www:g' $(TARGET_DIR)/usr/sbin/thttpd_wrapper
|
||||
's:/usr/local/www/thttpd_config:/etc/thttpd.conf:g' \
|
||||
$(TARGET_DIR)/usr/sbin/thttpd_wrapper
|
||||
$(INSTALL) -d $(TARGET_DIR)/var/www/data
|
||||
$(INSTALL) -d $(TARGET_DIR)/var/www/logs
|
||||
echo "dir=/var/www/data" > $(TARGET_DIR)/var/www/thttpd_config
|
||||
echo 'cgipat=**.cgi' >> $(TARGET_DIR)/var/www/thttpd_config
|
||||
echo "logfile=/var/www/logs/thttpd_log" >> $(TARGET_DIR)/var/www/thttpd_config
|
||||
echo "pidfile=/var/run/thttpd.pid" >> $(TARGET_DIR)/var/www/thttpd_config
|
||||
echo "dir=/var/www/data" > $(TARGET_DIR)/etc/thttpd.conf
|
||||
echo 'cgipat=**.cgi' >> $(TARGET_DIR)/etc/thttpd.conf
|
||||
echo "logfile=/var/www/logs/thttpd_log" >> $(TARGET_DIR)/etc/thttpd.conf
|
||||
echo "pidfile=/var/run/thttpd.pid" >> $(TARGET_DIR)/etc/thttpd.conf
|
||||
endef
|
||||
|
||||
define THTTPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 $(@D)/scripts/thttpd.sh $(TARGET_DIR)/etc/init.d/S90thttpd
|
||||
$(SED) 's:/usr/local/sbin:/usr/sbin:g' $(TARGET_DIR)/etc/init.d/S90thttpd
|
||||
$(INSTALL) -D -m 0755 package/thttpd/S90thttpd \
|
||||
$(TARGET_DIR)/etc/init.d/S90thttpd
|
||||
endef
|
||||
|
||||
define THTTPD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/thttpd/thttpd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/thttpd.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/
|
||||
ln -fs ../../../../usr/lib/systemd/system/thttpd.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/thttpd.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user