diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2006-01-20 17:15:06 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2006-01-20 17:15:06 +0000 |
commit | aa95a7ea427a7cfdd53054bf400ed36c3a1a568c (patch) | |
tree | b67c0e648502b498250233feb691c2e050c72df6 /rules/pureftpd.make | |
parent | e73b972fd2eab0cec83213fc8d9b9b10e8685a51 (diff) | |
download | ptxdist-aa95a7ea427a7cfdd53054bf400ed36c3a1a568c.tar.gz ptxdist-aa95a7ea427a7cfdd53054bf400ed36c3a1a568c.tar.xz |
pure-ftpd autostart added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.9-trunk@4349 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/pureftpd.make')
-rw-r--r-- | rules/pureftpd.make | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rules/pureftpd.make b/rules/pureftpd.make index a79f92f8c..d63d5732e 100644 --- a/rules/pureftpd.make +++ b/rules/pureftpd.make @@ -2,7 +2,7 @@ # $Id: template 2922 2005-07-11 19:17:53Z rsc $ # # Copyright (C) 2005 by Robert Schwebel -# +# # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions @@ -158,7 +158,18 @@ $(STATEDIR)/pureftpd.targetinstall: $(pureftpd_targetinstall_deps_default) @$(call install_fixup,DESCRIPTION,missing) @$(call install_copy, 0, 0, 0755, $(PUREFTPD_DIR)/src/pure-ftpd, /usr/sbin/pure-ftpd) - @$(call install_copy, 0, 0, 0775, $(PTXDIST_TOPDIR)/projects/generic/etc/init.d/pure-ftpd, /etc/init.d/pure-ftpd, n) +ifdef PTXCONF_ROOTFS_ETC_INITD_PUREFTPD +ifneq ($(call remove_quotes,$(PTXCONF_ROOTFS_ETC_INITD_PUREFTPD_USER_FILE)),) + @$(call install_copy, 0, 0, 0755, $(PTXCONF_ROOTFS_ETC_INITD_PUREFTPD_USER_FILE), /etc/init.d/pure-ftpd, n) +else + @$(call install_copy, 0, 0, 0755, $(PTXDIST_TOPDIR)/projects/generic/etc/init.d/pure-ftpd, /etc/init.d/pure-ftpd, n) +endif +endif + +ifneq ($(PTXCONF_ROOTFS_ETC_INITD_PUREFTPD_LINK),"") + @$(call install_copy, 0, 0, 0755, /etc/rc.d) + @$(call install_link, ../init.d/pure-ftpd, /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_PUREFTPD_LINK)) +endif ifdef PTXCONF_PUREFTPD_UPLOADSCRIPT @$(call install_copy, 0, 0, 0755, $(PUREFTPD_DIR)/src/pure-uploadscript, /usr/sbin/pure-uploadscript, n) |