summaryrefslogtreecommitdiffstats
path: root/rules/thttpd.make
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-01-22 10:34:07 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-01-22 10:34:07 +0000
commit746f262c08a8c86dadac93ab7ff64e2af0cec225 (patch)
tree6a3e50338a9d0d64b47cc7c3a8266b51e4696dba /rules/thttpd.make
parentf8bfce534ce25f43db18623b769ab92938414c71 (diff)
downloadptxdist-746f262c08a8c86dadac93ab7ff64e2af0cec225.tar.gz
ptxdist-746f262c08a8c86dadac93ab7ff64e2af0cec225.tar.xz
autoinstall for thttpd
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.9-trunk@4354 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/thttpd.make')
-rw-r--r--rules/thttpd.make10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/thttpd.make b/rules/thttpd.make
index b7f135b57..0facf7d20 100644
--- a/rules/thttpd.make
+++ b/rules/thttpd.make
@@ -115,7 +115,17 @@ $(STATEDIR)/thttpd.targetinstall: $(thttpd_targetinstall_deps_default)
@$(call install_fixup,DESCRIPTION,missing)
@$(call install_copy, 0, 0, 0755, $(THTTPD_DIR)/thttpd, /usr/sbin/thttpd)
+ifdef PTXCONF_ROOTFS_ETC_INITD_THTTPD
+ifneq ($(call remove_quotes,$(PTXCONF_ROOTFS_ETC_INITD_THTTPD_USER_FILE)),)
+ @$(call install_copy, 0, 0, 0755, $(PTXCONF_ROOTFS_ETC_INITD_THTTPD_USER_FILE), /etc/init.d/thttpd, n)
+else
@$(call install_copy, 0, 0, 0755, $(PTXDIST_TOPDIR)/projects/generic/etc/init.d/thttpd, /etc/init.d/thttpd, n)
+endif
+endif
+ifneq ($(PTXCONF_ROOTFS_ETC_INITD_THTTPD_LINK),"")
+ @$(call install_copy, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, ../init.d/thttpd, /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_THTTPD_LINK))
+endif
@$(call install_finish)
@$(call touch, $@)