From b70981b68efcce5256eb11c6cd26ae123b10b6ea Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jul 2009 08:01:31 +0000 Subject: moved extra/* to main/ and fixed misc build issues --- main/vsftpd/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ main/vsftpd/vsftpd-enable-ssl.patch | 11 +++++++++++ main/vsftpd/vsftpd.confd | 9 +++++++++ main/vsftpd/vsftpd.initd | 25 +++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 main/vsftpd/APKBUILD create mode 100644 main/vsftpd/vsftpd-enable-ssl.patch create mode 100644 main/vsftpd/vsftpd.confd create mode 100644 main/vsftpd/vsftpd.initd (limited to 'main/vsftpd') diff --git a/main/vsftpd/APKBUILD b/main/vsftpd/APKBUILD new file mode 100644 index 000000000..fef929cad --- /dev/null +++ b/main/vsftpd/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Carlo Landmeter +pkgname=vsftpd +pkgver=2.1.0 +pkgrel=1 +pkgdesc="Very secure ftpd" +url="http://vsftpd.beasts.org" +license="GPL" +depends="openssl" +makedepends="openssl-dev !libcap-dev" +subpackages="$pkgname-doc" +source="ftp://vsftpd.beasts.org/users/cevans/vsftpd-${pkgver}.tar.gz +vsftpd-enable-ssl.patch +vsftpd.initd +vsftpd.confd" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + #Enable SSL support + patch -p0 -i "$srcdir"/vsftpd-enable-ssl.patch || return 1 + + make || return 1 + + install -m755 -D vsftpd "$pkgdir"/usr/sbin/vsftpd + install -m644 -D vsftpd.8 "$pkgdir"/usr/share/man/man8/vsftpd.8 + install -m644 -D vsftpd.conf.5 "$pkgdir"/usr/share/man/man5/vsftpd.conf.5 + install -m644 -D vsftpd.conf "$pkgdir"/etc/vsftpd.conf + install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + mkdir -p "$pkgdir"/usr/share/empty +} + +md5sums="7890b54e7ffa6106ffbdfda53f47fa41 vsftpd-2.1.0.tar.gz +f3cbaf364cd3c46a2a03b00de9d7e184 vsftpd-enable-ssl.patch +7edf5990c9f5dda983e918c55c92078e vsftpd.initd +431dfe7403323e247a88b97beade5d78 vsftpd.confd" diff --git a/main/vsftpd/vsftpd-enable-ssl.patch b/main/vsftpd/vsftpd-enable-ssl.patch new file mode 100644 index 000000000..22161907c --- /dev/null +++ b/main/vsftpd/vsftpd-enable-ssl.patch @@ -0,0 +1,11 @@ +--- builddefs.h.orig Sun Mar 1 15:18:09 2009 ++++ builddefs.h Sun Mar 1 15:15:24 2009 +@@ -3,7 +3,7 @@ + + #undef VSF_BUILD_TCPWRAPPERS + #define VSF_BUILD_PAM +-#undef VSF_BUILD_SSL ++#define VSF_BUILD_SSL + + #endif /* VSF_BUILDDEFS_H */ + diff --git a/main/vsftpd/vsftpd.confd b/main/vsftpd/vsftpd.confd new file mode 100644 index 000000000..0abb80c6e --- /dev/null +++ b/main/vsftpd/vsftpd.confd @@ -0,0 +1,9 @@ +# Sample conf.d file for alpine linux + +# +# Specify daemon $OPTS here. +# + +OPTS="" +USER="nobody" +GROUP="nobody" diff --git a/main/vsftpd/vsftpd.initd b/main/vsftpd/vsftpd.initd new file mode 100644 index 000000000..9e8b124b0 --- /dev/null +++ b/main/vsftpd/vsftpd.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +NAME=vsftpd +DAEMON=/usr/sbin/$NAME + +depend() { + need net +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile /var/run/${NAME}.pid \ + --exec ${DAEMON} -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --quiet \ + --exec ${DAEMON} \ + --pidfile /var/run/${NAME}.pid \ + eend $? +} + -- cgit v1.2.3