diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/vsftpd |
Initial import
Diffstat (limited to 'package/vsftpd')
-rw-r--r-- | package/vsftpd/Config.in | 9 | ||||
-rw-r--r-- | package/vsftpd/Makefile | 33 | ||||
-rw-r--r-- | package/vsftpd/files/vsftpd.conf | 17 | ||||
-rw-r--r-- | package/vsftpd/files/vsftpd.init | 26 | ||||
-rw-r--r-- | package/vsftpd/ipkg/vsftpd.conffiles | 1 | ||||
-rw-r--r-- | package/vsftpd/ipkg/vsftpd.control | 5 | ||||
-rw-r--r-- | package/vsftpd/ipkg/vsftpd.postinst | 3 | ||||
-rw-r--r-- | package/vsftpd/patches/patch-Makefile | 59 |
8 files changed, 153 insertions, 0 deletions
diff --git a/package/vsftpd/Config.in b/package/vsftpd/Config.in new file mode 100644 index 000000000..1b5f6108c --- /dev/null +++ b/package/vsftpd/Config.in @@ -0,0 +1,9 @@ +config ADK_PACKAGE_VSFTPD + prompt "vsftpd............................ Fast and secure FTP server" + tristate + default n + help + A fast and secure FTP server + + http://vsftpd.beasts.org/ + diff --git a/package/vsftpd/Makefile b/package/vsftpd/Makefile new file mode 100644 index 000000000..02918cfa6 --- /dev/null +++ b/package/vsftpd/Makefile @@ -0,0 +1,33 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= vsftpd +PKG_VERSION:= 2.1.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 7890b54e7ffa6106ffbdfda53f47fa41 + +MASTER_SITES:= ftp://vsftpd.beasts.org/users/cevans/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,VSFTPD,vsftpd,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +BUILD_STYLE:= auto +XAKE_FLAGS+= ${TARGET_CONFIGURE_OPTS} +ALL_TARGET:= vsftpd +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_VSFTPD}/etc/ + ${INSTALL_DATA} ./files/vsftpd.conf ${IDIR_VSFTPD}/etc/vsftpd.conf + ${INSTALL_DIR} ${IDIR_VSFTPD}/etc/init.d + ${INSTALL_BIN} ./files/vsftpd.init \ + ${IDIR_VSFTPD}/etc/init.d/vsftpd + ${INSTALL_DIR} ${IDIR_VSFTPD}/usr/sbin/ + ${INSTALL_BIN} ${WRKINST}/usr/sbin/vsftpd ${IDIR_VSFTPD}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/vsftpd/files/vsftpd.conf b/package/vsftpd/files/vsftpd.conf new file mode 100644 index 000000000..1868be6f8 --- /dev/null +++ b/package/vsftpd/files/vsftpd.conf @@ -0,0 +1,17 @@ +background=YES +listen=YES +anonymous_enable=NO +local_enable=YES +write_enable=YES +local_umask=022 +check_shell=NO +#dirmessage_enable=YES +ftpd_banner=Welcome to a FTP service on a OpenADK system. +session_support=NO +syslog_enable=YES +#userlist_enable=YES +#userlist_deny=NO +#userlist_file=/etc/vsftpd.users +#xferlog_enable=YES +#xferlog_file=/var/log/vsftpd.log +#xferlog_std_format=YES diff --git a/package/vsftpd/files/vsftpd.init b/package/vsftpd/files/vsftpd.init new file mode 100644 index 000000000..1215888ce --- /dev/null +++ b/package/vsftpd/files/vsftpd.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 70 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${vsftpd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + [ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd + vsftpd + ;; +stop) + killall vsftpd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + ;; +esac +exit $? diff --git a/package/vsftpd/ipkg/vsftpd.conffiles b/package/vsftpd/ipkg/vsftpd.conffiles new file mode 100644 index 000000000..45632cf31 --- /dev/null +++ b/package/vsftpd/ipkg/vsftpd.conffiles @@ -0,0 +1 @@ +/etc/vsftpd.conf diff --git a/package/vsftpd/ipkg/vsftpd.control b/package/vsftpd/ipkg/vsftpd.control new file mode 100644 index 000000000..6fe53ecba --- /dev/null +++ b/package/vsftpd/ipkg/vsftpd.control @@ -0,0 +1,5 @@ +Package: vsftpd +Priority: optional +Section: net +Description: a fast and secure FTP server +Depends: diff --git a/package/vsftpd/ipkg/vsftpd.postinst b/package/vsftpd/ipkg/vsftpd.postinst new file mode 100644 index 000000000..c64e98223 --- /dev/null +++ b/package/vsftpd/ipkg/vsftpd.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf vsftpd vsftpd NO diff --git a/package/vsftpd/patches/patch-Makefile b/package/vsftpd/patches/patch-Makefile new file mode 100644 index 000000000..fac3a012e --- /dev/null +++ b/package/vsftpd/patches/patch-Makefile @@ -0,0 +1,59 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- vsftpd-2.0.7.orig/Makefile 2008-02-12 04:52:15.000000000 +0100 ++++ vsftpd-2.0.7/Makefile 2008-08-31 21:53:34.000000000 +0200 +@@ -5,8 +5,8 @@ IFLAGS = -idirafter dummyinc + #CFLAGS = -g + CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion + +-LIBS = `./vsf_findlibs.sh` +-LINK = -Wl,-s ++LIBS = -lcrypt -lnsl ++LINK = + + OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \ + tunables.o ftpdataio.o secbuf.o ls.o \ +@@ -17,6 +17,8 @@ OBJS = main.o utility.o prelogin.o ftpcm + ssl.o sysutil.o sysdeputil.o + + ++DESTDIR = ++ + .c.o: + $(CC) -c $*.c $(CFLAGS) $(IFLAGS) + +@@ -24,21 +26,20 @@ vsftpd: $(OBJS) + $(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS) $(LDFLAGS) + + install: +- if [ -x /usr/local/sbin ]; then \ +- $(INSTALL) -m 755 vsftpd /usr/local/sbin/vsftpd; \ +- else \ +- $(INSTALL) -m 755 vsftpd /usr/sbin/vsftpd; fi +- if [ -x /usr/local/man ]; then \ +- $(INSTALL) -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \ +- elif [ -x /usr/share/man ]; then \ +- $(INSTALL) -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \ +- else \ +- $(INSTALL) -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \ +- $(INSTALL) -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi +- if [ -x /etc/xinetd.d ]; then \ +- $(INSTALL) -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi ++ mkdir -p $(DESTDIR)/usr/sbin ++ $(INSTALL) -m 755 vsftpd $(DESTDIR)/usr/sbin/ ++ mkdir -p $(DESTDIR)/usr/share/man/man8 ++ $(INSTALL) -m 644 vsftpd.8 $(DESTDIR)/usr/share/man/man8/ ++ mkdir -p $(DESTDIR)/usr/share/man/man5 ++ $(INSTALL) -m 644 vsftpd.conf.5 $(DESTDIR)/usr/share/man/man5/ ++ mkdir -p $(DESTDIR)/etc/xinetd.d ++ $(INSTALL) -m 644 xinetd.d/vsftpd $(DESTDIR)/etc/xinetd.d/ ++ ++uninstall: ++ rm -f $(DESTDIR)/usr/sbin/vsftpd ++ rm -f $(DESTDIR)/usr/share/man/man8/vsftpd.8 ++ rm -f $(DESTDIR)/usr/share/man/man5/vsftpd.conf.5 ++ rm -f $(DESTDIR)/etc/xinetd.d/vsftpd + + clean: + rm -f *.o *.swp vsftpd |