aboutsummaryrefslogtreecommitdiff
path: root/ftp/smbftpd/files
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2008-06-25 02:52:33 +0000
committerBeech Rintoul <beech@FreeBSD.org>2008-06-25 02:52:33 +0000
commit4056323dea918ecd83d7d41ab9f81360bd175fe9 (patch)
tree1049862905665b9a13211d785c0450314010f411 /ftp/smbftpd/files
parentb6dbbfe76598ebeb01cd5dfa11d1879771cb6c2c (diff)
downloadports-4056323dea918ecd83d7d41ab9f81360bd175fe9.tar.gz
ports-4056323dea918ecd83d7d41ab9f81360bd175fe9.zip
Notes
Diffstat (limited to 'ftp/smbftpd/files')
-rw-r--r--ftp/smbftpd/files/patch-Makefile18
-rw-r--r--ftp/smbftpd/files/smbftpd.sh.in30
2 files changed, 48 insertions, 0 deletions
diff --git a/ftp/smbftpd/files/patch-Makefile b/ftp/smbftpd/files/patch-Makefile
new file mode 100644
index 000000000000..903b96b9ef8e
--- /dev/null
+++ b/ftp/smbftpd/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig 2008-05-17 11:33:53.160728999 +0800
++++ Makefile 2008-05-17 11:34:04.012697489 +0800
+@@ -126,15 +126,3 @@
+ install -c -m 400 cert/conf/ssl.key/server.key $(CONFIGDIR)/ssl.key/;\
+ fi;
+
+- @if [ "$(OSTYPE)" = "FreeBSD" ]; then \
+- echo "install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/"; \
+- [ -d $(PREFIX)/etc/rc.d ] || install -d $(PREFIX)/etc/rc.d; \
+- install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/; \
+- elif [ "$(OSTYPE)" = "linux" ]; then \
+- if [ ! -f /etc/pam.d/ftpd ]; then \
+- echo "install install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd"; \
+- install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd; \
+- fi; \
+- fi;
+-
+-
diff --git a/ftp/smbftpd/files/smbftpd.sh.in b/ftp/smbftpd/files/smbftpd.sh.in
new file mode 100644
index 000000000000..568929663327
--- /dev/null
+++ b/ftp/smbftpd/files/smbftpd.sh.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# PROVIDE: smbftpd
+# REQUIRE: NETWORKING SERVERS
+# BEFORE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable pure-ftpd:
+#
+# smbftpd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=smbftpd
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+command=%%PREFIX%%/sbin/smbftpd
+smbftpd_config=${smbftpd_config:-"%%PREFIX%%/etc/smbftpd/smbftpd.conf"}
+required_files=${smbftpd_config}
+pidfile=/var/run/smbftpd.pid
+procname=smbftpd
+
+smbftpd_enable=${smbftpd_enable:-"NO"}
+command_args="-D -s ${smbftpd_config}"
+
+run_rc_command "$1"