summaryrefslogtreecommitdiff
path: root/vsftpd
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2006-11-26 18:12:18 +0100
committerJuergen Daubert <jue@jue.li>2006-11-26 18:12:18 +0100
commit64f1376ec255da58c7b8879668b8dce547978844 (patch)
tree5b1e98eca4616b38d9c192fce56375214dfe1677 /vsftpd
parent4b7aa11b89a31680c5477f702d0e2923602b8600 (diff)
downloadopt-64f1376ec255da58c7b8879668b8dce547978844.tar.gz
opt-64f1376ec255da58c7b8879668b8dce547978844.tar.xz
vsftpd: added patch for glibc 2.5
Diffstat (limited to 'vsftpd')
-rw-r--r--vsftpd/.md5sum1
-rw-r--r--vsftpd/Pkgfile7
-rw-r--r--vsftpd/vsftpd-2.0.5-syscall.patch29
3 files changed, 34 insertions, 3 deletions
diff --git a/vsftpd/.md5sum b/vsftpd/.md5sum
index e239db404..ef0f5df1e 100644
--- a/vsftpd/.md5sum
+++ b/vsftpd/.md5sum
@@ -1,3 +1,4 @@
7a0ece0af8aefad4313270a8786e041e vsftpd
+668dc128803434f149894834742fc543 vsftpd-2.0.5-syscall.patch
146062e8b2f93af43ff6c2c770feea94 vsftpd-2.0.5.tar.gz
3376ee576fefef23d07b79ac1995710d vsftpd-config.patch
diff --git a/vsftpd/Pkgfile b/vsftpd/Pkgfile
index d311813d2..7c58b70fd 100644
--- a/vsftpd/Pkgfile
+++ b/vsftpd/Pkgfile
@@ -5,13 +5,14 @@
name=vsftpd
version=2.0.5
-release=1
+release=2
source=(ftp://vsftpd.beasts.org/users/cevans/$name-$version.tar.gz \
- $name-config.patch vsftpd)
+ $name-config.patch $name-$version-syscall.patch vsftpd)
build () {
cd $name-$version
- patch -p1 < $SRC/$name-config.patch
+ patch -p1 -i $SRC/$name-$version-syscall.patch
+ patch -p1 -i $SRC/$name-config.patch
make
make DESTDIR=$PKG install
diff --git a/vsftpd/vsftpd-2.0.5-syscall.patch b/vsftpd/vsftpd-2.0.5-syscall.patch
new file mode 100644
index 000000000..494499059
--- /dev/null
+++ b/vsftpd/vsftpd-2.0.5-syscall.patch
@@ -0,0 +1,29 @@
+# See http://www.mail-archive.com/lfs-dev@linuxfromscratch.org/msg08600.html
+
+diff -pNur vsftpd-2.0.5.orig/sysdeputil.c vsftpd-2.0.5/sysdeputil.c
+--- vsftpd-2.0.5.orig/sysdeputil.c 2006-07-02 15:14:10.000000000 -0700
++++ vsftpd-2.0.5/sysdeputil.c 2006-10-19 23:41:58.000000000 -0700
+@@ -155,14 +155,15 @@
+ #include <sys/capability.h>
+
+ #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP)
+-#include <linux/unistd.h>
+ #include <linux/capability.h>
+ #include <errno.h>
+-#include <syscall.h>
+-_syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
+-/* Gross HACK to avoid warnings - linux headers overlap glibc headers */
+-#undef __NFDBITS
+-#undef __FDMASK
++#include <sys/syscall.h>
++#include <unistd.h>
++int capset(cap_user_header_t header,
++ cap_user_data_t data)
++{
++ return syscall(SYS_capset, header, data);
++}
+ #endif /* VSF_SYSDEP_HAVE_CAPABILITIES */
+
+ #if defined(VSF_SYSDEP_HAVE_LINUX_SENDFILE) || \
+
+

Generated by cgit