# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # . # ./patch-Makefile # ./smbftpd.txt # echo c - . mkdir -p . > /dev/null 2>&1 echo x - ./patch-Makefile sed 's/^X//' >./patch-Makefile << '5a51f24cf2b106560c645bdcfd0499f4' X--- Makefile.orig 2008-04-03 22:00:40.000000000 +0400 X+++ Makefile 2010-08-31 15:30:23.000000000 +0400 X@@ -21,7 +21,7 @@ X CFLAGS += -I./include X X CONFIGDIR = $(PREFIX)/etc/smbftpd X-CONFIGS = smbftpd.conf smbftpd_share.conf smbftpd_mysql.conf smbftpd_pgsql.conf X+CONFIGS = smbftpd.conf.sample smbftpd_share.conf.sample smbftpd_mysql.conf.sample smbftpd_pgsql.conf.sample X X YFLAGS = X X@@ -126,15 +126,3 @@ X install -c -m 400 cert/conf/ssl.key/server.key $(CONFIGDIR)/ssl.key/;\ X fi; X X- @if [ "$(OSTYPE)" = "FreeBSD" ]; then \ X- echo "install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/"; \ X- [ -d $(PREFIX)/etc/rc.d ] || install -d $(PREFIX)/etc/rc.d; \ X- install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/; \ X- elif [ "$(OSTYPE)" = "linux" ]; then \ X- if [ ! -f /etc/pam.d/ftpd ]; then \ X- echo "install install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd"; \ X- install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd; \ X- fi; \ X- fi; X- X- 5a51f24cf2b106560c645bdcfd0499f4 echo x - ./smbftpd.txt sed 's/^X//' >./smbftpd.txt << 'cd3c8859eb6aa7476b71403719b1b418' X--- Makefile.orig 2010-08-31 15:18:57.000000000 +0400 X+++ Makefile 2010-08-31 15:35:30.000000000 +0400 X@@ -51,4 +51,10 @@ X BROKEN= fails to build with new utmpx X .endif X X+post-patch: X+ @${MV} ${WRKSRC}/conf/smbftpd.conf ${WRKSRC}/conf/smbftpd.conf.sample X+ @${MV} ${WRKSRC}/conf/smbftpd_mysql.conf ${WRKSRC}/conf/smbftpd_mysql.conf.sample X+ @${MV} ${WRKSRC}/conf/smbftpd_pgsql.conf ${WRKSRC}/conf/smbftpd_pgsql.conf.sample X+ @${MV} ${WRKSRC}/conf/smbftpd_share.conf ${WRKSRC}/conf/smbftpd_share.conf.sample X+ X .include cd3c8859eb6aa7476b71403719b1b418 exit